/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | SimplePatternFormatter.java | 146 int argNumber; in compileToStringMinMaxPlaceholders() local 148 0 <= (argNumber = pattern.charAt(i) - '0') && argNumber <= 9 && in compileToStringMinMaxPlaceholders() 156 argNumber = -1; in compileToStringMinMaxPlaceholders() 158 argNumber = c - '0'; in compileToStringMinMaxPlaceholders() 160 argNumber = argNumber * 10 + (c - '0'); in compileToStringMinMaxPlaceholders() 161 if (argNumber >= ARG_NUM_LIMIT) { in compileToStringMinMaxPlaceholders() 166 if (argNumber < 0 || c != '}') { in compileToStringMinMaxPlaceholders() 173 if (argNumber > maxArg) { in compileToStringMinMaxPlaceholders() 174 maxArg = argNumber; in compileToStringMinMaxPlaceholders() 176 sb.append((char)argNumber); in compileToStringMinMaxPlaceholders()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | SimplePatternFormatter.java | 144 int argNumber; in compileToStringMinMaxPlaceholders() local 146 0 <= (argNumber = pattern.charAt(i) - '0') && argNumber <= 9 && in compileToStringMinMaxPlaceholders() 154 argNumber = -1; in compileToStringMinMaxPlaceholders() 156 argNumber = c - '0'; in compileToStringMinMaxPlaceholders() 158 argNumber = argNumber * 10 + (c - '0'); in compileToStringMinMaxPlaceholders() 159 if (argNumber >= ARG_NUM_LIMIT) { in compileToStringMinMaxPlaceholders() 164 if (argNumber < 0 || c != '}') { in compileToStringMinMaxPlaceholders() 171 if (argNumber > maxArg) { in compileToStringMinMaxPlaceholders() 172 maxArg = argNumber; in compileToStringMinMaxPlaceholders() 174 sb.append((char)argNumber); in compileToStringMinMaxPlaceholders()
|
/external/icu/icu4c/source/common/ |
D | simplepatternformatter.cpp | 103 int32_t argNumber; in compileMinMaxPlaceholders() local 105 0 <= (argNumber = patternBuffer[i] - DIGIT_ZERO) && argNumber <= 9 && in compileMinMaxPlaceholders() 112 argNumber = -1; in compileMinMaxPlaceholders() 114 argNumber = c - DIGIT_ZERO; in compileMinMaxPlaceholders() 117 argNumber = argNumber * 10 + (c - DIGIT_ZERO); in compileMinMaxPlaceholders() 118 if (argNumber >= ARG_NUM_LIMIT) { in compileMinMaxPlaceholders() 123 if (argNumber < 0 || c != CLOSE_BRACE) { in compileMinMaxPlaceholders() 128 if (argNumber > maxArg) { in compileMinMaxPlaceholders() 129 maxArg = argNumber; in compileMinMaxPlaceholders() 131 compiledPattern.append((UChar)argNumber); in compileMinMaxPlaceholders()
|
/external/messageformat/java/com/ibm/icu/simple/ |
D | MessageFormat.java | 502 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument 506 part.getValue() == argNumber; // ARG_NUMBER in argNameMatches() 552 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in setFormatsByArgumentIndex() local 553 if (argNumber < newFormats.length) { in setFormatsByArgumentIndex() 554 setCustomArgStartFormat(partIndex, newFormats[argNumber]); in setFormatsByArgumentIndex() 677 int argNumber = MessagePattern.validateArgumentName(argumentName); in setFormatByArgumentName() local 678 if (argNumber < MessagePattern.ARG_NAME_NOT_NUMBER) { in setFormatByArgumentName() 682 if (argNameMatches(partIndex + 1, argumentName, argNumber)) { in setFormatByArgumentName() 750 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in getFormatsByArgumentIndex() local 751 while (argNumber >= list.size()) { in getFormatsByArgumentIndex() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | msgfmt.cpp | 570 …MessageFormat::argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber) { in argNameMatches() argument 574 part.getValue() == argNumber; // ARG_NUMBER in argNameMatches() 703 int32_t argNumber = MessagePattern::validateArgumentName(formatName); in adoptFormat() local 704 if (argNumber < UMSGPAT_ARG_NAME_NOT_NUMBER) { in adoptFormat() 711 if (argNameMatches(partIndex + 1, formatName, argNumber)) { in adoptFormat() 759 int32_t argNumber = MessagePattern::validateArgumentName(formatName); in getFormat() local 760 if (argNumber < UMSGPAT_ARG_NAME_NOT_NUMBER) { in getFormat() 765 if (argNameMatches(partIndex + 1, formatName, argNumber)) { in getFormat() 781 int32_t argNumber = MessagePattern::validateArgumentName(formatName); in setFormat() local 782 if (argNumber < UMSGPAT_ARG_NAME_NOT_NUMBER) { in setFormat() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | MessageFormat.java | 545 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument 549 part.getValue() == argNumber; // ARG_NUMBER in argNameMatches() 595 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in setFormatsByArgumentIndex() local 596 if (argNumber < newFormats.length) { in setFormatsByArgumentIndex() 597 setCustomArgStartFormat(partIndex, newFormats[argNumber]); in setFormatsByArgumentIndex() 720 int argNumber = MessagePattern.validateArgumentName(argumentName); in setFormatByArgumentName() local 721 if (argNumber < MessagePattern.ARG_NAME_NOT_NUMBER) { in setFormatByArgumentName() 725 if (argNameMatches(partIndex + 1, argumentName, argNumber)) { in setFormatByArgumentName() 793 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in getFormatsByArgumentIndex() local 794 while (argNumber >= list.size()) { in getFormatsByArgumentIndex() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | MessageFormat.java | 534 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument 538 part.getValue() == argNumber; // ARG_NUMBER in argNameMatches() 583 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in setFormatsByArgumentIndex() local 584 if (argNumber < newFormats.length) { in setFormatsByArgumentIndex() 585 setCustomArgStartFormat(partIndex, newFormats[argNumber]); in setFormatsByArgumentIndex() 704 int argNumber = MessagePattern.validateArgumentName(argumentName); in setFormatByArgumentName() local 705 if (argNumber < MessagePattern.ARG_NAME_NOT_NUMBER) { in setFormatByArgumentName() 709 if (argNameMatches(partIndex + 1, argumentName, argNumber)) { in setFormatByArgumentName() 775 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in getFormatsByArgumentIndex() local 776 while (argNumber >= list.size()) { in getFormatsByArgumentIndex() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | msgfmt.h | 988 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);
|