Home
last modified time | relevance | path

Searched refs:argNumber (Results 1 – 16 of 16) sorted by relevance

/third_party/icu/icu4c/source/common/
Dsimpleformatter.cpp104 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()
/third_party/skia/third_party/externals/icu/source/common/
Dsimpleformatter.cpp104 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()
/third_party/node/deps/icu-small/source/common/
Dsimpleformatter.cpp104 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()
/third_party/flutter/skia/third_party/externals/icu/source/common/
Dsimpleformatter.cpp104 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()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSimpleFormatterImpl.java121 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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DSimpleFormatterImpl.java123 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()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dmsgfmt.cpp573 …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 …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java576 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 …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DMessageFormat.java565 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument
569 part.getValue() == argNumber; // ARG_NUMBER in argNameMatches()
614 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in setFormatsByArgumentIndex() local
615 if (argNumber < newFormats.length) { in setFormatsByArgumentIndex()
616 setCustomArgStartFormat(partIndex, newFormats[argNumber]); in setFormatsByArgumentIndex()
735 int argNumber = MessagePattern.validateArgumentName(argumentName); in setFormatByArgumentName() local
736 if (argNumber < MessagePattern.ARG_NAME_NOT_NUMBER) { in setFormatByArgumentName()
740 if (argNameMatches(partIndex + 1, argumentName, argNumber)) { in setFormatByArgumentName()
806 int argNumber = msgPattern.getPart(partIndex + 1).getValue(); in getFormatsByArgumentIndex() local
807 while (argNumber >= list.size()) { in getFormatsByArgumentIndex()
[all …]
/third_party/icu/icu4c/source/i18n/
Dmsgfmt.cpp573 …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 …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dmsgfmt.cpp573 …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 …]
/third_party/node/deps/icu-small/source/i18n/
Dmsgfmt.cpp573 …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 …]
/third_party/icu/icu4c/source/i18n/unicode/
Dmsgfmt.h1010 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);
/third_party/node/deps/icu-small/source/i18n/unicode/
Dmsgfmt.h1010 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dmsgfmt.h1010 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);
/third_party/flutter/skia/third_party/externals/icu/source/i18n/unicode/
Dmsgfmt.h993 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);