Lines Matching refs:affix
1824 int32_t DecimalFormat::compareSimpleAffix(const UnicodeString& affix, in compareSimpleAffix() argument
1828 for (int32_t i=0; i<affix.length(); ) { in compareSimpleAffix()
1829 UChar32 c = affix.char32At(i); in compareSimpleAffix()
1844 if (i == affix.length()) { in compareSimpleAffix()
1847 c = affix.char32At(i); in compareSimpleAffix()
1855 i = skipRuleWhiteSpace(affix, i); in compareSimpleAffix()
1937 const UnicodeString* affix = NULL; in compareComplexAffix() local
1983 affix = &getConstSymbol(DecimalFormatSymbols::kPercentSymbol); in compareComplexAffix()
1986 affix = &getConstSymbol(DecimalFormatSymbols::kPerMillSymbol); in compareComplexAffix()
1989 affix = &getConstSymbol(DecimalFormatSymbols::kPlusSignSymbol); in compareComplexAffix()
1992 affix = &getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol); in compareComplexAffix()
1999 if (affix != NULL) { in compareComplexAffix()
2000 pos = match(text, pos, *affix); in compareComplexAffix()
2576 UnicodeString& affix, in expandAffix() argument
2580 expandAffix(pattern, affix, number, NULL, doFormat); in expandAffix()
2615 UnicodeString& affix, in expandAffix() argument
2619 affix.remove(); in expandAffix()
2626 int beginIdx = affix.length(); in expandAffix()
2643 affix += currencyUChars; in expandAffix()
2644 addAttribute(attrBuffer, "currency", beginIdx, affix.length()); in expandAffix()
2681 affix.append(kCurrencySign); in expandAffix()
2688 fCurrencyChoice->format(number, affix, pos); in expandAffix()
2692 affix += currencyUChars; in expandAffix()
2693 addAttribute(attrBuffer, "currency", beginIdx, affix.length()); in expandAffix()
2698 affix += UnicodeString(s, len); in expandAffix()
2699 addAttribute(attrBuffer, "currency", beginIdx, affix.length()); in expandAffix()
2703 affix += getConstSymbol(DecimalFormatSymbols::kIntlCurrencySymbol); in expandAffix()
2705 affix += getConstSymbol(DecimalFormatSymbols::kCurrencySymbol); in expandAffix()
2707 addAttribute(attrBuffer, "currency", beginIdx, affix.length()); in expandAffix()
2712 affix += getConstSymbol(DecimalFormatSymbols::kPercentSymbol); in expandAffix()
2713 addAttribute(attrBuffer, "percent", beginIdx, affix.length()); in expandAffix()
2716 affix += getConstSymbol(DecimalFormatSymbols::kPerMillSymbol); in expandAffix()
2717 addAttribute(attrBuffer, "permille", beginIdx, affix.length()); in expandAffix()
2720 affix += getConstSymbol(DecimalFormatSymbols::kPlusSignSymbol); in expandAffix()
2721 addAttribute(attrBuffer, "sign", beginIdx, affix.length()); in expandAffix()
2724 affix += getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol); in expandAffix()
2725 addAttribute(attrBuffer, "sign", beginIdx, affix.length()); in expandAffix()
2728 affix.append(c); in expandAffix()
2733 affix.append(c); in expandAffix()
2768 const UnicodeString* affix; in appendAffix() local
2770 affix = isNegative ? &fNegativePrefix : &fPositivePrefix; in appendAffix()
2772 affix = isNegative ? &fNegativeSuffix : &fPositiveSuffix; in appendAffix()
2777 buf.append(*affix); in appendAffix()
2779 int offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kCurrencySymbol)); in appendAffix()
2785 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kIntlCurrencySymbol)); in appendAffix()
2791 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol)); in appendAffix()
2797 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kPercentSymbol)); in appendAffix()
2803 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kPerMillSymbol)); in appendAffix()
2809 return affix->length(); in appendAffix()
2889 const UnicodeString& affix, in appendAffixPattern() argument
2893 needQuote = affix.indexOf(getConstSymbol(DecimalFormatSymbols::kZeroDigitSymbol)) >= 0 in appendAffixPattern()
2894 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol)) >= 0 in appendAffixPattern()
2895 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol)) >= 0 in appendAffixPattern()
2896 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPercentSymbol)) >= 0 in appendAffixPattern()
2897 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPerMillSymbol)) >= 0 in appendAffixPattern()
2898 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kDigitSymbol)) >= 0 in appendAffixPattern()
2899 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPatternSeparatorSymbol)) >= 0 in appendAffixPattern()
2900 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPlusSignSymbol)) >= 0 in appendAffixPattern()
2901 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol)) >= 0 in appendAffixPattern()
2902 || affix.indexOf(kCurrencySign) >= 0; in appendAffixPattern()
2905 needQuote = affix.indexOf(kPatternZeroDigit) >= 0 in appendAffixPattern()
2906 || affix.indexOf(kPatternGroupingSeparator) >= 0 in appendAffixPattern()
2907 || affix.indexOf(kPatternDecimalSeparator) >= 0 in appendAffixPattern()
2908 || affix.indexOf(kPatternPercent) >= 0 in appendAffixPattern()
2909 || affix.indexOf(kPatternPerMill) >= 0 in appendAffixPattern()
2910 || affix.indexOf(kPatternDigit) >= 0 in appendAffixPattern()
2911 || affix.indexOf(kPatternSeparator) >= 0 in appendAffixPattern()
2912 || affix.indexOf(kPatternExponent) >= 0 in appendAffixPattern()
2913 || affix.indexOf(kPatternPlus) >= 0 in appendAffixPattern()
2914 || affix.indexOf(kPatternMinus) >= 0 in appendAffixPattern()
2915 || affix.indexOf(kCurrencySign) >= 0; in appendAffixPattern()
2919 if (affix.indexOf((UChar)0x0027 /*'\''*/) < 0) in appendAffixPattern()
2920 appendTo += affix; in appendAffixPattern()
2922 for (int32_t j = 0; j < affix.length(); ) { in appendAffixPattern()
2923 UChar32 c = affix.char32At(j); in appendAffixPattern()
3279 UnicodeString* affix = &prefix; in applyPattern() local
3405 affix = &suffix; in applyPattern()
3434 affix->append(kQuote); // Encode currency in applyPattern()
3439 affix->append(kCurrencySign); in applyPattern()
3451 affix->append(kQuote); // Encode quote in applyPattern()
3480 affix->append(kQuote); // Encode percent/perMill in applyPattern()
3481 affix->append(kPatternPercent); // Use unlocalized pattern char in applyPattern()
3494 affix->append(kQuote); // Encode percent/perMill in applyPattern()
3495 affix->append(kPatternPerMill); // Use unlocalized pattern char in applyPattern()
3513 affix->append(kQuote); // Encode minus in applyPattern()
3514 affix->append(kPatternMinus); in applyPattern()
3518 affix->append(kQuote); // Encode plus in applyPattern()
3519 affix->append(kPatternPlus); in applyPattern()
3526 affix->append(ch); in applyPattern()
3537 affix->append(kQuote); // Encode quote in applyPattern()
3544 affix->append(ch); in applyPattern()