Lines Matching refs:num
260 sal_Int16 curr = 0, num = 0, end = 0, shift = 0; in NativeToAscii_numberMaker() local
263 if (num > 0) in NativeToAscii_numberMaker()
265 num = curr % 10; in NativeToAscii_numberMaker()
268 if (prev > curr && num == 0) num = 1; // One may be omitted in informal format in NativeToAscii_numberMaker()
277 dst[count] = NUMBER_ZERO + (end == prev ? num : 0); in NativeToAscii_numberMaker()
298 dst[count] = NUMBER_ZERO + (end == prev ? num : 0); in NativeToAscii_numberMaker()
532 sal_Int16 num = -1; in getNativeNumberString() local
540 num = natnum1[langnum]; in getNativeNumberString()
543 num = natnum2[langnum]; in getNativeNumberString()
546 num = NumberChar_FullWidth; in getNativeNumberString()
564 num = NumberChar_Hangul_ko; in getNativeNumberString()
577 if (number || num >= 0) { in getNativeNumberString()
596 else if (num == NumberChar_he) in getNativeNumberString()
600 … return AsciiToNativeChar(aNumberString, 0, aNumberString.getLength(), offset, useOffset, num); in getNativeNumberString()
742 static sal_Bool natNumIn(sal_Int16 num, sal_Int16 natnum[], sal_Int16 len) in natNumIn() argument
745 if (natnum[i] == num) in natNumIn()
757 sal_Int16 num = sal::static_int_cast<sal_Int16>( number.indexOf(aAttr.Format) ); in convertFromXmlAttributes() local
760 if (num == NumberChar_FullWidth) in convertFromXmlAttributes()
762 else if (num == NumberChar_Hangul_ko) in convertFromXmlAttributes()
764 else if (natNumIn(num, natnum1, sizeof_natnum1)) in convertFromXmlAttributes()
766 else if (natNumIn(num, natnum2, sizeof_natnum2)) in convertFromXmlAttributes()
769 if (num == NumberChar_Hangul_ko) in convertFromXmlAttributes()
771 else if (num == NumberChar_he) in convertFromXmlAttributes()
773 else if (natNumIn(num, natnum1, sizeof_natnum1)) in convertFromXmlAttributes()
775 else if (natNumIn(num, natnum2, sizeof_natnum2)) in convertFromXmlAttributes()
778 if (num == NumberChar_FullWidth) in convertFromXmlAttributes()
780 else if (num == NumberChar_Hangul_ko) in convertFromXmlAttributes()
782 else if (natNumIn(num, natnum1, sizeof_natnum1)) in convertFromXmlAttributes()
784 else if (natNumIn(num, natnum2, sizeof_natnum2)) in convertFromXmlAttributes()
836 sal_Int16 num = sal::static_int_cast<sal_Int16>(value % 1000); in makeHebrewNumber() local
839 makeHebrewNumber(value / 1000, output, num != 0, useGeresh); in makeHebrewNumber()
842 if (num == 0) { in makeHebrewNumber()
846 for (sal_Int32 j = 0; num > 0 && j < nbOfHebrewNumberChar; j++) { in makeHebrewNumber()
847 if (num - HebrewNumberCharArray[j].value >= 0) { in makeHebrewNumber()
849 if (num == 15 || num == 16) // substitution for 15 and 16 in makeHebrewNumber()
851 num = sal::static_int_cast<sal_Int16>( num - HebrewNumberCharArray[j].value ); in makeHebrewNumber()