Lines Matching refs:affix
685 AffixesForCurrency* affix = new AffixesForCurrency( in setupCurrencyAffixes() local
687 fAffixesForCurrency->put(*pluralCount, affix, status); in setupCurrencyAffixes()
714 AffixesForCurrency* affix = new AffixesForCurrency( in setupCurrencyAffixes() local
716 fPluralAffixesForCurrency->put(*pluralCount, affix, status); in setupCurrencyAffixes()
3162 UnicodeString& DecimalFormat::trimMarksFromAffix(const UnicodeString& affix, UnicodeString& trimmed…
3164 int32_t affixLen = affix.length();
3168 UChar c = affix.charAt(affixPos);
3178 return (trimLen > 0)? trimmedAffix.setTo(trimBuf, trimLen): trimmedAffix.setTo(affix);
3191 int32_t DecimalFormat::compareSimpleAffix(const UnicodeString& affix,
3199 trimMarksFromAffix(affix, trimmedAffix);
3426 const UnicodeString* affix = NULL;
3479 affix = &getConstSymbol(DecimalFormatSymbols::kPercentSymbol);
3482 affix = &getConstSymbol(DecimalFormatSymbols::kPerMillSymbol);
3485 affix = &getConstSymbol(DecimalFormatSymbols::kPlusSignSymbol);
3488 affix = &getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol);
3495 if (affix != NULL) {
3496 pos = match(text, pos, *affix);
4303 UnicodeString& affix,
4308 affix.remove();
4315 int beginIdx = affix.length();
4351 affix += UnicodeString(s, len);
4352 handler.addAttribute(kCurrencyField, beginIdx, affix.length());
4354 affix.append(currencyUChars, -1);
4355 handler.addAttribute(kCurrencyField, beginIdx, affix.length());
4394 affix.append(kCurrencySign);
4401 fCurrencyChoice->format(number, affix, pos);
4405 affix.append(currencyUChars, -1);
4406 handler.addAttribute(kCurrencyField, beginIdx, affix.length());
4411 affix += UnicodeString(s, len);
4412 handler.addAttribute(kCurrencyField, beginIdx, affix.length());
4416 affix += getConstSymbol(DecimalFormatSymbols::kIntlCurrencySymbol);
4418 affix += getConstSymbol(DecimalFormatSymbols::kCurrencySymbol);
4420 handler.addAttribute(kCurrencyField, beginIdx, affix.length());
4425 affix += getConstSymbol(DecimalFormatSymbols::kPercentSymbol);
4426 handler.addAttribute(kPercentField, beginIdx, affix.length());
4429 affix += getConstSymbol(DecimalFormatSymbols::kPerMillSymbol);
4430 handler.addAttribute(kPermillField, beginIdx, affix.length());
4433 affix += getConstSymbol(DecimalFormatSymbols::kPlusSignSymbol);
4434 handler.addAttribute(kSignField, beginIdx, affix.length());
4437 affix += getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol);
4438 handler.addAttribute(kSignField, beginIdx, affix.length());
4441 affix.append(c);
4446 affix.append(c);
4478 const UnicodeString* affix;
4496 affix = isNegative ? &oneSet->negPrefixForCurrency :
4499 affix = isNegative ? &oneSet->negSuffixForCurrency :
4504 affix = isNegative ? &fNegativePrefix : &fPositivePrefix;
4506 affix = isNegative ? &fNegativeSuffix : &fPositiveSuffix;
4512 buf.append(*affix);
4515 … int32_t offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kCurrencySymbol));
4521 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kIntlCurrencySymbol));
4527 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol));
4533 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kPercentSymbol));
4539 offset = (int) (*affix).indexOf(getConstSymbol(DecimalFormatSymbols::kPerMillSymbol));
4545 return affix->length();
4625 const UnicodeString& affix,
4629 needQuote = affix.indexOf(getConstSymbol(DecimalFormatSymbols::kZeroDigitSymbol)) >= 0
4630 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol)) >= 0
4631 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol)) >= 0
4632 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPercentSymbol)) >= 0
4633 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPerMillSymbol)) >= 0
4634 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kDigitSymbol)) >= 0
4635 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPatternSeparatorSymbol)) >= 0
4636 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kPlusSignSymbol)) >= 0
4637 || affix.indexOf(getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol)) >= 0
4638 || affix.indexOf(kCurrencySign) >= 0;
4641 needQuote = affix.indexOf(kPatternZeroDigit) >= 0
4642 || affix.indexOf(kPatternGroupingSeparator) >= 0
4643 || affix.indexOf(kPatternDecimalSeparator) >= 0
4644 || affix.indexOf(kPatternPercent) >= 0
4645 || affix.indexOf(kPatternPerMill) >= 0
4646 || affix.indexOf(kPatternDigit) >= 0
4647 || affix.indexOf(kPatternSeparator) >= 0
4648 || affix.indexOf(kPatternExponent) >= 0
4649 || affix.indexOf(kPatternPlus) >= 0
4650 || affix.indexOf(kPatternMinus) >= 0
4651 || affix.indexOf(kCurrencySign) >= 0;
4655 if (affix.indexOf((UChar)0x0027 /*'\''*/) < 0)
4656 appendTo += affix;
4658 for (int32_t j = 0; j < affix.length(); ) {
4659 UChar32 c = affix.char32At(j);