Lines Matching refs:nPos

70 ScriptTypeDetector::getScriptDirection( const ::rtl::OUString& Text, sal_Int32 nPos, sal_Int16 defa…  in getScriptDirection()  argument
72 sal_Int16 dir = scriptDirection[unicode::getUnicodeDirection(Text[nPos])]; in getScriptDirection()
78 ScriptTypeDetector::beginOfScriptDirection( const ::rtl::OUString& Text, sal_Int32 nPos, sal_Int16 … in beginOfScriptDirection() argument
80 sal_Int32 cPos = nPos; in beginOfScriptDirection()
88 return cPos == nPos ? -1 : cPos + 1; in beginOfScriptDirection()
92 ScriptTypeDetector::endOfScriptDirection( const ::rtl::OUString& Text, sal_Int32 nPos, sal_Int16 di… in endOfScriptDirection() argument
94 sal_Int32 cPos = nPos; in endOfScriptDirection()
103 return cPos == nPos ? -1 : cPos; in endOfScriptDirection()
107 ScriptTypeDetector::getCTLScriptType( const ::rtl::OUString& Text, sal_Int32 nPos ) throw (::com::s… in getCTLScriptType() argument
117 return unicode::getUnicodeScriptType(Text[nPos], typeList, CTLScriptType::CTL_UNKNOWN); in getCTLScriptType()
122 ScriptTypeDetector::beginOfCTLScriptType( const ::rtl::OUString& Text, sal_Int32 nPos ) throw (::co… in beginOfCTLScriptType() argument
124 if (nPos < 0) in beginOfCTLScriptType()
126 else if (nPos >= Text.getLength()) in beginOfCTLScriptType()
129 sal_Int16 cType = getCTLScriptType(Text, nPos); in beginOfCTLScriptType()
130 for (nPos--; nPos >= 0; nPos--) { in beginOfCTLScriptType()
131 if (cType != getCTLScriptType(Text, nPos)) in beginOfCTLScriptType()
134 return nPos + 1; in beginOfCTLScriptType()
140 ScriptTypeDetector::endOfCTLScriptType( const ::rtl::OUString& Text, sal_Int32 nPos ) throw (::com:… in endOfCTLScriptType() argument
142 if (nPos < 0) in endOfCTLScriptType()
144 else if (nPos >= Text.getLength()) in endOfCTLScriptType()
147 sal_Int16 cType = getCTLScriptType(Text, nPos); in endOfCTLScriptType()
149 for (nPos++; nPos < len; nPos++) { in endOfCTLScriptType()
150 if (cType != getCTLScriptType(Text, nPos)) in endOfCTLScriptType()
153 return nPos; in endOfCTLScriptType()