Lines Matching refs:i
80 for (sal_Int32 i = 0; i < nCount; i++) { in AsciiToNativeChar() local
81 sal_Unicode ch = src[i]; in AsciiToNativeChar()
83 newStr->buffer[i] = NumberChar[number][ ch - NUMBER_ZERO ]; in AsciiToNativeChar()
84 else if (i+1 < nCount && isNumber(src[i+1])) { in AsciiToNativeChar()
85 if (i > 0 && isNumber(src[i-1]) && isSeparator(ch)) in AsciiToNativeChar()
86 newStr->buffer[i] = SeparatorChar[number] ? SeparatorChar[number] : ch; in AsciiToNativeChar()
88 … newStr->buffer[i] = isDecimal(ch) ? (DecimalChar[number] ? DecimalChar[number] : ch) : in AsciiToNativeChar()
92 newStr->buffer[i] = ch; in AsciiToNativeChar()
94 offset[i] = startPos + i; in AsciiToNativeChar()
106 sal_Int16 i; in AsciiToNative_numberMaker() local
108 for (i = 0; i < len; i++, begin++) { in AsciiToNative_numberMaker()
147 for (sal_Int16 i = 1; i <= number->exponentCount; i++) { in AsciiToNative_numberMaker() local
148 … sal_Int32 tmp = len - (i == number->exponentCount ? 0 : number->multiplierExponent[i]); in AsciiToNative_numberMaker()
151 … (i == number->exponentCount ? -1 : i), offset, useOffset, startPos, number, numberChar); in AsciiToNative_numberMaker()
184 sal_Int32 i, len = 0, count = 0; in AsciiToNative() local
190 for (i = 0; i <= nCount; i++) { in AsciiToNative()
191 if (i < nCount && isNumber(str[i])) { in AsciiToNative()
193 newStr->buffer[count] = numberChar[str[i] - NUMBER_ZERO]; in AsciiToNative()
195 offset[count] = i + startPos; in AsciiToNative()
199 srcStr->buffer[len++] = str[i]; in AsciiToNative()
202 if (isSeparator(str[i]) && i < nCount-1 && isNumber(str[i+1])) in AsciiToNative()
210 … end == len ? -1 : 0, offset, useOffset, i - len + startPos, number, numberChar); in AsciiToNative()
218 offset[count] = i - len + startPos; in AsciiToNative()
226 offset[count] = i - len + startPos; in AsciiToNative()
231 if (i < nCount) { in AsciiToNative()
232 …if ((doDecimal = (!doDecimal && isDecimal(str[i]) && i < nCount-1 && isNumber(str[i+1]))) != sal_F… in AsciiToNative()
233 … newStr->buffer[count] = (DecimalChar[number->number] ? DecimalChar[number->number] : str[i]); in AsciiToNative()
234 else if (isMinus(str[i]) && i < nCount-1 && isNumber(str[i+1])) in AsciiToNative()
235 … newStr->buffer[count] = (MinusChar[number->number] ? MinusChar[number->number] : str[i]); in AsciiToNative()
236 else if (isSeparator(str[i]) && i < nCount-1 && isNumber(str[i+1])) in AsciiToNative()
237 … newStr->buffer[count] = (SeparatorChar[number->number] ? SeparatorChar[number->number] : str[i]); in AsciiToNative()
239 newStr->buffer[count] = str[i]; in AsciiToNative()
241 offset[count] = i + startPos; in AsciiToNative()
257 …sal_Int32& i, sal_Int32 nCount, sal_Unicode *dst, sal_Int32& count, Sequence< sal_Int32 >& offset,… in NativeToAscii_numberMaker() argument
261 while (++i < nCount) { in NativeToAscii_numberMaker()
262 if ((curr = sal::static_int_cast<sal_Int16>( numberChar.indexOf(str[i]) )) >= 0) { in NativeToAscii_numberMaker()
266 … } else if ((curr = sal::static_int_cast<sal_Int16>( multiplierChar.indexOf(str[i]) )) >= 0) { in NativeToAscii_numberMaker()
279 offset[count] = i; in NativeToAscii_numberMaker()
291 NativeToAscii_numberMaker(max, curr, str, i, nCount, dst, in NativeToAscii_numberMaker()
300 offset[count] = i - 1; in NativeToAscii_numberMaker()
319 sal_Int32 i; in NativeToAscii() local
328 for ( i = 0; i < nCount; i++) { in NativeToAscii()
329 if ((index = multiplierChar.indexOf(str[i])) >= 0) { in NativeToAscii()
333 offset[count] = i; in NativeToAscii()
339 str, i, nCount, newStr->buffer, count, offset, useOffset, in NativeToAscii()
342 if ((index = numberChar.indexOf(str[i])) >= 0) in NativeToAscii()
344 else if ((index = separatorChar.indexOf(str[i])) >= 0 && in NativeToAscii()
345 (i < nCount-1 && (numberChar.indexOf(str[i+1]) >= 0 || in NativeToAscii()
346 multiplierChar.indexOf(str[i+1]) >= 0))) in NativeToAscii()
348 else if ((index = decimalChar.indexOf(str[i])) >= 0 && in NativeToAscii()
349 (i < nCount-1 && (numberChar.indexOf(str[i+1]) >= 0 || in NativeToAscii()
350 multiplierChar.indexOf(str[i+1]) >= 0))) in NativeToAscii()
354 else if ((index = minusChar.indexOf(str[i])) >= 0 && in NativeToAscii()
355 (i < nCount-1 && (numberChar.indexOf(str[i+1]) >= 0 || in NativeToAscii()
356 multiplierChar.indexOf(str[i+1]) >= 0))) in NativeToAscii()
361 newStr->buffer[count] = str[i]; in NativeToAscii()
363 offset[count] = i; in NativeToAscii()
370 for (i = 0; i < count; i++) in NativeToAscii()
371 offset[i] += startPos; in NativeToAscii()
521 for (sal_Int16 i = 2; i < nbOfLocale; i++) in getLanguageNumber() local
522 if (isLang(natnum1Locales[i])) in getLanguageNumber()
523 return i; in getLanguageNumber()
616 for (sal_Int16 i = 0; i < NumberChar_Count; i++) in getNativeNumberChar() local
618 if (inChar == NumberChar[i][j]) in getNativeNumberChar()
744 for (sal_Int16 i = 0; i < len; i++) in natNumIn() local
745 if (natnum[i] == num) in natNumIn()
753 for (sal_Int16 i = 0; i < NumberChar_Count; i++) in convertFromXmlAttributes() local
754 numberChar[i] = NumberChar[i][1]; in convertFromXmlAttributes()
867 sal_Int32 i, count = 0, len = aNumberString.getLength(); in getHebrewNativeNumberString() local
871 for (i = 0; i < len; i++) { in getHebrewNativeNumberString()
872 sal_Unicode ch = src[i]; in getHebrewNativeNumberString()
884 OUStringBuffer output(count*2 + 2 + len - i); in getHebrewNativeNumberString()
888 if (i < len) in getHebrewNativeNumberString()
889 output.append(aNumberString.copy(i)); in getHebrewNativeNumberString()