Lines Matching refs:nPos
65 cclass_Unicode::toUpper( const OUString& Text, sal_Int32 nPos, sal_Int32 nCount, const Locale& rLoc… in toUpper() argument
67 if (nPos >= len) in toUpper()
69 if (nCount + nPos > len) in toUpper()
70 nCount = len - nPos; in toUpper()
73 return trans->transliterateString2String(Text, nPos, nCount); in toUpper()
77 cclass_Unicode::toLower( const OUString& Text, sal_Int32 nPos, sal_Int32 nCount, const Locale& rLoc… in toLower() argument
79 if (nPos >= len) in toLower()
81 if (nCount + nPos > len) in toLower()
82 nCount = len - nPos; in toLower()
85 return trans->transliterateString2String(Text, nPos, nCount); in toLower()
89 cclass_Unicode::toTitle( const OUString& Text, sal_Int32 nPos, sal_Int32 nCount, const Locale& rLoc… in toTitle() argument
91 if (nPos >= len) in toTitle()
93 if (nCount + nPos > len) in toTitle()
94 nCount = len - nPos; in toTitle()
100 Boundary bdy = brk.getWordBoundary(Text, nPos, rLocale, in toTitle()
102 for (sal_Int32 i = nPos; i < nCount + nPos; i++, out++) { in toTitle()
114 cclass_Unicode::getType( const OUString& Text, sal_Int32 nPos ) throw(RuntimeException) { in getType() argument
115 if ( nPos < 0 || Text.getLength() <= nPos ) return 0; in getType()
116 return (sal_Int16) u_charType(Text.iterateCodePoints(&nPos, 0)); in getType()
120 cclass_Unicode::getCharacterDirection( const OUString& Text, sal_Int32 nPos ) throw(RuntimeExceptio… in getCharacterDirection() argument
121 if ( nPos < 0 || Text.getLength() <= nPos ) return 0; in getCharacterDirection()
122 return (sal_Int16) u_charDirection(Text.iterateCodePoints(&nPos, 0)); in getCharacterDirection()
127 cclass_Unicode::getScript( const OUString& Text, sal_Int32 nPos ) throw(RuntimeException) { in getScript() argument
128 if ( nPos < 0 || Text.getLength() <= nPos ) return 0; in getScript()
132 return (sal_Int16) ublock_getCode(Text.iterateCodePoints(&nPos, 0))-1; in getScript()
137 cclass_Unicode::getCharType( const OUString& Text, sal_Int32* nPos, sal_Int32 increment) { in getCharType() argument
140 sal_uInt32 ch = Text.iterateCodePoints(nPos, increment); in getCharType()
141 if (increment > 0) ch = Text.iterateCodePoints(nPos, 0); in getCharType()
203 cclass_Unicode::getCharacterType( const OUString& Text, sal_Int32 nPos, const Locale& /*rLocale*/ )… in getCharacterType() argument
204 if ( nPos < 0 || Text.getLength() <= nPos ) return 0; in getCharacterType()
205 return getCharType(Text, &nPos, 0); in getCharacterType()
210 cclass_Unicode::getStringType( const OUString& Text, sal_Int32 nPos, sal_Int32 nCount, const Locale… in getStringType() argument
211 if ( nPos < 0 || Text.getLength() <= nPos ) return 0; in getStringType()
213 sal_Int32 result = getCharType(Text, &nPos, 0); in getStringType()
214 for (sal_Int32 i = 1; i < nCount && nPos < Text.getLength(); i++) in getStringType()
215 result |= getCharType(Text, &nPos, 1); in getStringType()
221 sal_Int32 nPos, in parseAnyToken() argument
230 if ( Text.getLength() <= nPos ) in parseAnyToken()
236 parseText( r, Text, nPos ); in parseAnyToken()
245 sal_Int32 nPos, in parsePredefinedToken() argument
254 if ( Text.getLength() <= nPos ) in parsePredefinedToken()
260 parseText( r, Text, nPos, nTokenType ); in parsePredefinedToken()