Lines Matching refs:affix
563 AffixesForCurrency* affix = new AffixesForCurrency( in setupCurrencyAffixes() local
565 fAffixesForCurrency->put(*pluralCount, affix, status); in setupCurrencyAffixes()
592 AffixesForCurrency* affix = new AffixesForCurrency( in setupCurrencyAffixes() local
594 fPluralAffixesForCurrency->put(*pluralCount, affix, status); in setupCurrencyAffixes()
2299 int32_t DecimalFormat::compareSimpleAffix(const UnicodeString& affix, in compareSimpleAffix() argument
2305 UChar32 affixChar = affix.char32At(0); in compareSimpleAffix()
2306 int32_t affixLength = affix.length(); in compareSimpleAffix()
2326 UChar32 c = affix.char32At(i); in compareSimpleAffix()
2344 c = affix.char32At(i); in compareSimpleAffix()
2352 i = skipPatternWhiteSpace(affix, i); in compareSimpleAffix()
2366 i = skipUWhiteSpace(affix, i); in compareSimpleAffix()
2393 i = skipUWhiteSpace(affix, i); in compareSimpleAffix()
2400 UChar32 c = affix.char32At(i); in compareSimpleAffix()
2476 const UnicodeString* affix = NULL; in compareComplexAffix() local
2529 affix = &getConstSymbol(DecimalFormatSymbols::kPercentSymbol); in compareComplexAffix()
2532 affix = &getConstSymbol(DecimalFormatSymbols::kPerMillSymbol); in compareComplexAffix()
2535 affix = &getConstSymbol(DecimalFormatSymbols::kPlusSignSymbol); in compareComplexAffix()
2538 affix = &getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol); in compareComplexAffix()
2545 if (affix != NULL) { in compareComplexAffix()
2546 pos = match(text, pos, *affix); in compareComplexAffix()
3272 UnicodeString& affix, in expandAffix() argument
3277 affix.remove(); in expandAffix()
3284 int beginIdx = affix.length(); in expandAffix()
3320 affix += UnicodeString(s, len); in expandAffix()
3321 handler.addAttribute(kCurrencyField, beginIdx, affix.length()); in expandAffix()
3323 affix.append(currencyUChars, -1); in expandAffix()
3324 handler.addAttribute(kCurrencyField, beginIdx, affix.length()); in expandAffix()
3363 affix.append(kCurrencySign); in expandAffix()
3370 fCurrencyChoice->format(number, affix, pos); in expandAffix()
3374 affix.append(currencyUChars, -1); in expandAffix()
3375 handler.addAttribute(kCurrencyField, beginIdx, affix.length()); in expandAffix()
3380 affix += UnicodeString(s, len); in expandAffix()
3381 handler.addAttribute(kCurrencyField, beginIdx, affix.length()); in expandAffix()
3385 affix += getConstSymbol(DecimalFormatSymbols::kIntlCurrencySymbol); in expandAffix()
3387 affix += getConstSymbol(DecimalFormatSymbols::kCurrencySymbol); in expandAffix()
3389 handler.addAttribute(kCurrencyField, beginIdx, affix.length()); in expandAffix()
3394 affix += getConstSymbol(DecimalFormatSymbols::kPercentSymbol); in expandAffix()
3395 handler.addAttribute(kPercentField, beginIdx, affix.length()); in expandAffix()
3398 affix += getConstSymbol(DecimalFormatSymbols::kPerMillSymbol); in expandAffix()
3399 handler.addAttribute(kPermillField, beginIdx, affix.length()); in expandAffix()
3402 affix += getConstSymbol(DecimalFormatSymbols::kPlusSignSymbol); in expandAffix()
3403 handler.addAttribute(kSignField, beginIdx, affix.length()); in expandAffix()
3406 affix += getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol); in expandAffix()
3407 handler.addAttribute(kSignField, beginIdx, affix.length()); in expandAffix()
3410 affix.append(c); in expandAffix()
3415 affix.append(c); in expandAffix()
3447 const UnicodeString* affix; in appendAffix() local
3457 affix = isNegative ? &oneSet->negPrefixForCurrency : in appendAffix()
3460 affix = isNegative ? &oneSet->negSuffixForCurrency : in appendAffix()
3465 affix = isNegative ? &fNegativePrefix : &fPositivePrefix; in appendAffix()
3467 affix = isNegative ? &fNegativeSuffix : &fPositiveSuffix; in appendAffix()
3473 buf.append(*affix); in appendAffix()
3476 … int32_t offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kCurrencySymbol)); in appendAffix()
3482 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kIntlCurrencySymbol)); in appendAffix()
3488 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol)); in appendAffix()
3494 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kPercentSymbol)); in appendAffix()
3500 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kPerMillSymbol)); in appendAffix()
3506 return affix->length(); in appendAffix()
3586 const UnicodeString& affix, in appendAffixPattern() argument
3590 needQuote = affix.indexOf(getConstSymbol(DecimalFormatSymbols::kZeroDigitSymbol)) >= 0 in appendAffixPattern()
3591 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol)) >= 0 in appendAffixPattern()
3592 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol)) >= 0 in appendAffixPattern()
3593 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPercentSymbol)) >= 0 in appendAffixPattern()
3594 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPerMillSymbol)) >= 0 in appendAffixPattern()
3595 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kDigitSymbol)) >= 0 in appendAffixPattern()
3596 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPatternSeparatorSymbol)) >= 0 in appendAffixPattern()
3597 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPlusSignSymbol)) >= 0 in appendAffixPattern()
3598 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol)) >= 0 in appendAffixPattern()
3599 || affix.indexOf(kCurrencySign) >= 0; in appendAffixPattern()
3602 needQuote = affix.indexOf(kPatternZeroDigit) >= 0 in appendAffixPattern()
3603 || affix.indexOf(kPatternGroupingSeparator) >= 0 in appendAffixPattern()
3604 || affix.indexOf(kPatternDecimalSeparator) >= 0 in appendAffixPattern()
3605 || affix.indexOf(kPatternPercent) >= 0 in appendAffixPattern()
3606 || affix.indexOf(kPatternPerMill) >= 0 in appendAffixPattern()
3607 || affix.indexOf(kPatternDigit) >= 0 in appendAffixPattern()
3608 || affix.indexOf(kPatternSeparator) >= 0 in appendAffixPattern()
3609 || affix.indexOf(kPatternExponent) >= 0 in appendAffixPattern()
3610 || affix.indexOf(kPatternPlus) >= 0 in appendAffixPattern()
3611 || affix.indexOf(kPatternMinus) >= 0 in appendAffixPattern()
3612 || affix.indexOf(kCurrencySign) >= 0; in appendAffixPattern()
3616 if (affix.indexOf((UChar)0x0027 /*'\''*/) < 0) in appendAffixPattern()
3617 appendTo += affix; in appendAffixPattern()
3619 for (int32_t j = 0; j < affix.length(); ) { in appendAffixPattern()
3620 UChar32 c = affix.char32At(j); in appendAffixPattern()
3985 UnicodeString* affix = &prefix; in applyPatternWithoutExpandAffix() local
4111 affix = &suffix; in applyPatternWithoutExpandAffix()
4140 affix->append(kQuote); // Encode currency in applyPatternWithoutExpandAffix()
4145 affix->append(kCurrencySign); in applyPatternWithoutExpandAffix()
4149 affix->append(kCurrencySign); in applyPatternWithoutExpandAffix()
4166 affix->append(kQuote); // Encode quote in applyPatternWithoutExpandAffix()
4195 affix->append(kQuote); // Encode percent/perMill in applyPatternWithoutExpandAffix()
4196 affix->append(kPatternPercent); // Use unlocalized pattern char in applyPatternWithoutExpandAffix()
4209 affix->append(kQuote); // Encode percent/perMill in applyPatternWithoutExpandAffix()
4210 affix->append(kPatternPerMill); // Use unlocalized pattern char in applyPatternWithoutExpandAffix()
4228 affix->append(kQuote); // Encode minus in applyPatternWithoutExpandAffix()
4229 affix->append(kPatternMinus); in applyPatternWithoutExpandAffix()
4233 affix->append(kQuote); // Encode plus in applyPatternWithoutExpandAffix()
4234 affix->append(kPatternPlus); in applyPatternWithoutExpandAffix()
4241 affix->append(ch); in applyPatternWithoutExpandAffix()
4252 affix->append(kQuote); // Encode quote in applyPatternWithoutExpandAffix()
4259 affix->append(ch); in applyPatternWithoutExpandAffix()