Home
last modified time | relevance | path

Searched refs:pluralNumber (Results 1 – 5 of 5) sorted by relevance

/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/messagepattern/
DMessagePatternUtilDemo.java127 String pluralNumber) { in genCode() argument
142 System.out.println(prefix + operator + " formatNumber(" + pluralNumber + ")"); in genCode()
186 String pluralNumber = offset == 0. ? argName : argName + " - " + offset; in genCodeForPlural() local
189 genCodeForNumericVariants(numericVariants, depth++, firstResult, argName, pluralNumber); in genCodeForPlural()
193 "_keyword = PluralRules.select(" + pluralNumber + ")"); in genCodeForPlural()
195 "_keyword", pluralNumber); in genCodeForPlural()
197 genCode(otherVariant.getMessage(), depth, firstResult, pluralNumber); in genCodeForPlural() local
226 String pluralNumber) { in genCodeForNumericVariants() argument
234 genCode(variant.getMessage(), depth, firstResult, pluralNumber); in genCodeForNumericVariants() local
244 String pluralNumber) { in genCodeForKeywordVariants() argument
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java1603 private void format(int msgStart, PluralSelectorContext pluralNumber, in format() argument
1618 if(pluralNumber.forReplaceNumber) { in format()
1620 dest.formatAndAppend(pluralNumber.formatter, in format()
1621 pluralNumber.number, pluralNumber.numberString); in format()
1623 dest.formatAndAppend(getStockNumberFormatter(), pluralNumber.number); in format()
1665 } else if(pluralNumber!=null && pluralNumber.numberArgIndex==(i-2)) { in format()
1666 if(pluralNumber.offset == 0) { in format()
1668 … dest.formatAndAppend(pluralNumber.formatter, pluralNumber.number, pluralNumber.numberString); in format()
1672 dest.formatAndAppend(pluralNumber.formatter, arg); in format()
1758 int msgStart, PluralSelectorContext pluralNumber, in formatComplexSubMessage() argument
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMessageFormat.java1559 private void format(int msgStart, PluralSelectorContext pluralNumber, in format() argument
1574 if(pluralNumber.forReplaceNumber) { in format()
1576 dest.formatAndAppend(pluralNumber.formatter, in format()
1577 pluralNumber.number, pluralNumber.numberString); in format()
1579 dest.formatAndAppend(getStockNumberFormatter(), pluralNumber.number); in format()
1621 } else if(pluralNumber!=null && pluralNumber.numberArgIndex==(i-2)) { in format()
1622 if(pluralNumber.offset == 0) { in format()
1624 … dest.formatAndAppend(pluralNumber.formatter, pluralNumber.number, pluralNumber.numberString); in format()
1628 dest.formatAndAppend(pluralNumber.formatter, arg); in format()
1714 int msgStart, PluralSelectorContext pluralNumber, in formatComplexSubMessage() argument
[all …]
/external/messageformat/java/com/ibm/icu/simple/
DMessageFormat.java1521 private void format(int msgStart, PluralSelectorContext pluralNumber, in format() argument
1536 if(pluralNumber.forReplaceNumber) { in format()
1538 dest.formatAndAppend(pluralNumber.formatter, in format()
1539 pluralNumber.number, pluralNumber.numberString); in format()
1541 dest.formatAndAppend(getStockNumberFormatter(), pluralNumber.number); in format()
1597 } else if(pluralNumber!=null && pluralNumber.numberArgIndex==(i-2)) { in format()
1598 if(pluralNumber.offset == 0) { in format()
1600 … dest.formatAndAppend(pluralNumber.formatter, pluralNumber.number, pluralNumber.numberString); in format()
1604 dest.formatAndAppend(pluralNumber.formatter, arg); in format()
1669 int msgStart, PluralSelectorContext pluralNumber, in formatComplexSubMessage() argument
[all …]
/external/icu/icu4c/source/i18n/
Dmsgfmt.cpp1022 const PluralSelectorContext &pluralNumber = in format() local
1024 if(pluralNumber.forReplaceNumber) { in format()
1026 appendTo.formatAndAppend(pluralNumber.formatter, in format()
1027 pluralNumber.number, pluralNumber.numberString, success); in format()
1030 appendTo.formatAndAppend(nf, pluralNumber.number, success); in format()
1067 const PluralSelectorContext &pluralNumber = in format() local
1069 if(pluralNumber.offset == 0) { in format()
1071 appendTo.formatAndAppend(pluralNumber.formatter, pluralNumber.number, in format()
1072 pluralNumber.numberString, success); in format()
1076 appendTo.formatAndAppend(pluralNumber.formatter, *arg, success); in format()
[all …]