Searched refs:argNumber (Results 1 – 9 of 9) sorted by relevance
/external/icu/icu4c/source/common/ |
D | simpleformatter.cpp | 104 int32_t argNumber; in applyPatternMinMaxArguments() local 106 0 <= (argNumber = patternBuffer[i] - DIGIT_ZERO) && argNumber <= 9 && in applyPatternMinMaxArguments() 113 argNumber = -1; in applyPatternMinMaxArguments() 115 argNumber = c - DIGIT_ZERO; in applyPatternMinMaxArguments() 118 argNumber = argNumber * 10 + (c - DIGIT_ZERO); in applyPatternMinMaxArguments() 119 if (argNumber >= ARG_NUM_LIMIT) { in applyPatternMinMaxArguments() 124 if (argNumber < 0 || c != CLOSE_BRACE) { in applyPatternMinMaxArguments() 129 if (argNumber > maxArg) { in applyPatternMinMaxArguments() 130 maxArg = argNumber; in applyPatternMinMaxArguments() 132 compiledPattern.append((UChar)argNumber); in applyPatternMinMaxArguments()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | SimpleFormatterImpl.java | 123 int argNumber; in compileToStringMinMaxArguments() local 125 0 <= (argNumber = pattern.charAt(i) - '0') && argNumber <= 9 && in compileToStringMinMaxArguments() 133 argNumber = -1; in compileToStringMinMaxArguments() 135 argNumber = c - '0'; in compileToStringMinMaxArguments() 137 argNumber = argNumber * 10 + (c - '0'); in compileToStringMinMaxArguments() 138 if (argNumber >= ARG_NUM_LIMIT) { in compileToStringMinMaxArguments() 143 if (argNumber < 0 || c != '}') { in compileToStringMinMaxArguments() 150 if (argNumber > maxArg) { in compileToStringMinMaxArguments() 151 maxArg = argNumber; in compileToStringMinMaxArguments() 153 sb.append((char)argNumber); in compileToStringMinMaxArguments()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | SimpleFormatterImpl.java | 121 int argNumber; in compileToStringMinMaxArguments() local 123 0 <= (argNumber = pattern.charAt(i) - '0') && argNumber <= 9 && in compileToStringMinMaxArguments() 131 argNumber = -1; in compileToStringMinMaxArguments() 133 argNumber = c - '0'; in compileToStringMinMaxArguments() 135 argNumber = argNumber * 10 + (c - '0'); in compileToStringMinMaxArguments() 136 if (argNumber >= ARG_NUM_LIMIT) { in compileToStringMinMaxArguments() 141 if (argNumber < 0 || c != '}') { in compileToStringMinMaxArguments() 148 if (argNumber > maxArg) { in compileToStringMinMaxArguments() 149 maxArg = argNumber; in compileToStringMinMaxArguments() 151 sb.append((char)argNumber); in compileToStringMinMaxArguments()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | MessageFormat.java | 576 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument 580 part.getValue() == argNumber; // ARG_NUMBER in argNameMatches() 626 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in setFormatsByArgumentIndex() local 627 if (argNumber < newFormats.length) { in setFormatsByArgumentIndex() 628 setCustomArgStartFormat(partIndex, newFormats[argNumber]); in setFormatsByArgumentIndex() 751 int argNumber = MessagePattern.validateArgumentName(argumentName); in setFormatByArgumentName() local 752 if (argNumber < MessagePattern.ARG_NAME_NOT_NUMBER) { in setFormatByArgumentName() 756 if (argNameMatches(partIndex + 1, argumentName, argNumber)) { in setFormatByArgumentName() 824 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in getFormatsByArgumentIndex() local 825 while (argNumber >= list.size()) { in getFormatsByArgumentIndex() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | MessageFormat.java | 537 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument 541 part.getValue() == argNumber; // ARG_NUMBER in argNameMatches() 586 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in setFormatsByArgumentIndex() local 587 if (argNumber < newFormats.length) { in setFormatsByArgumentIndex() 588 setCustomArgStartFormat(partIndex, newFormats[argNumber]); in setFormatsByArgumentIndex() 707 int argNumber = MessagePattern.validateArgumentName(argumentName); in setFormatByArgumentName() local 708 if (argNumber < MessagePattern.ARG_NAME_NOT_NUMBER) { in setFormatByArgumentName() 712 if (argNameMatches(partIndex + 1, argumentName, argNumber)) { in setFormatByArgumentName() 778 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in getFormatsByArgumentIndex() local 779 while (argNumber >= list.size()) { in getFormatsByArgumentIndex() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | msgfmt.cpp | 573 …MessageFormat::argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber) { in argNameMatches() argument 577 part.getValue() == argNumber; // ARG_NUMBER in argNameMatches() 706 int32_t argNumber = MessagePattern::validateArgumentName(formatName); in adoptFormat() local 707 if (argNumber < UMSGPAT_ARG_NAME_NOT_NUMBER) { in adoptFormat() 714 if (argNameMatches(partIndex + 1, formatName, argNumber)) { in adoptFormat() 762 int32_t argNumber = MessagePattern::validateArgumentName(formatName); in getFormat() local 763 if (argNumber < UMSGPAT_ARG_NAME_NOT_NUMBER) { in getFormat() 768 if (argNameMatches(partIndex + 1, formatName, argNumber)) { in getFormat() 784 int32_t argNumber = MessagePattern::validateArgumentName(formatName); in setFormat() local 785 if (argNumber < UMSGPAT_ARG_NAME_NOT_NUMBER) { in setFormat() [all …]
|
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/ |
D | MessageFormat.java.patch | 4 * argNumber = '0' | ('1'..'9' ('0'..'9')*)
|
/external/icu/icu4c/source/i18n/unicode/ |
D | msgfmt.h | 1010 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);
|
/external/icu/libicu/cts_headers/unicode/ |
D | msgfmt.h | 1010 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);
|