xub_StrLen to sal_Int32 and minor optimizations

Change-Id: Ie8703ee0ff6c428ed00ffb88749540588e608b43
xub_StrLen to sal_Int32 in SwIndex and some related

Change-Id: I66735635a88844c30a7fa1c886d2c1df34008f4f