Home
last modified time | relevance | path

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

/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/messagepattern/
DMessagePatternUtilDemo.java129 String pluralNumber) { in genCode() argument
144 System.out.println(prefix + operator + " formatNumber(" + pluralNumber + ")"); in genCode()
188 String pluralNumber = offset == 0. ? argName : argName + " - " + offset; in genCodeForPlural() local
191 genCodeForNumericVariants(numericVariants, depth++, firstResult, argName, pluralNumber); in genCodeForPlural()
195 "_keyword = PluralRules.select(" + pluralNumber + ")"); in genCodeForPlural()
197 "_keyword", pluralNumber); in genCodeForPlural()
199 genCode(otherVariant.getMessage(), depth, firstResult, pluralNumber); in genCodeForPlural() local
228 String pluralNumber) { in genCodeForNumericVariants() argument
236 genCode(variant.getMessage(), depth, firstResult, pluralNumber); in genCodeForNumericVariants() local
246 String pluralNumber) { in genCodeForKeywordVariants() argument
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java1638 private void format(int msgStart, PluralSelectorContext pluralNumber, in format() argument
1653 if(pluralNumber.forReplaceNumber) { in format()
1655 dest.formatAndAppend(pluralNumber.formatter, in format()
1656 pluralNumber.number, pluralNumber.numberString); in format()
1658 dest.formatAndAppend(getStockNumberFormatter(), pluralNumber.number); in format()
1700 } else if(pluralNumber!=null && pluralNumber.numberArgIndex==(i-2)) { in format()
1701 if(pluralNumber.offset == 0) { in format()
1703 … dest.formatAndAppend(pluralNumber.formatter, pluralNumber.number, pluralNumber.numberString); in format()
1707 dest.formatAndAppend(pluralNumber.formatter, arg); in format()
1793 int msgStart, PluralSelectorContext pluralNumber, in formatComplexSubMessage() argument
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMessageFormat.java1566 private void format(int msgStart, PluralSelectorContext pluralNumber, in format() argument
1581 if(pluralNumber.forReplaceNumber) { in format()
1583 dest.formatAndAppend(pluralNumber.formatter, in format()
1584 pluralNumber.number, pluralNumber.numberString); in format()
1586 dest.formatAndAppend(getStockNumberFormatter(), pluralNumber.number); in format()
1628 } else if(pluralNumber!=null && pluralNumber.numberArgIndex==(i-2)) { in format()
1629 if(pluralNumber.offset == 0) { in format()
1631 … dest.formatAndAppend(pluralNumber.formatter, pluralNumber.number, pluralNumber.numberString); in format()
1635 dest.formatAndAppend(pluralNumber.formatter, arg); in format()
1721 int msgStart, PluralSelectorContext pluralNumber, in formatComplexSubMessage() argument
[all …]
/external/icu/icu4c/source/i18n/
Dmsgfmt.cpp1030 const PluralSelectorContext &pluralNumber = in format() local
1032 if(pluralNumber.forReplaceNumber) { in format()
1034 appendTo.formatAndAppend(pluralNumber.formatter, in format()
1035 pluralNumber.number, pluralNumber.numberString, success); in format()
1038 appendTo.formatAndAppend(nf, pluralNumber.number, success); in format()
1075 const PluralSelectorContext &pluralNumber = in format() local
1077 if(pluralNumber.offset == 0) { in format()
1079 appendTo.formatAndAppend(pluralNumber.formatter, pluralNumber.number, in format()
1080 pluralNumber.numberString, success); in format()
1084 appendTo.formatAndAppend(pluralNumber.formatter, *arg, success); in format()
[all …]