Home
last modified time | relevance | path

Searched refs:ARG_NUM_LIMIT (Results 1 – 6 of 6) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/impl/
DSimpleFormatterImpl.java36 private static final int ARG_NUM_LIMIT = 0x100; field in SimpleFormatterImpl
37 private static final char LEN1_CHAR = (char)(ARG_NUM_LIMIT + 1);
38 private static final char LEN2_CHAR = (char)(ARG_NUM_LIMIT + 2);
39 private static final char LEN3_CHAR = (char)(ARG_NUM_LIMIT + 3);
49 private static final int MAX_SEGMENT_LENGTH = SEGMENT_LENGTH_ARGUMENT_CHAR - ARG_NUM_LIMIT;
114 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
132 if (argNumber >= ARG_NUM_LIMIT) { in compileToStringMinMaxArguments()
161 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
269 if (n < ARG_NUM_LIMIT) { in formatAndReplace()
278 i += n - ARG_NUM_LIMIT; in formatAndReplace()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSimpleFormatterImpl.java34 private static final int ARG_NUM_LIMIT = 0x100; field in SimpleFormatterImpl
35 private static final char LEN1_CHAR = (char)(ARG_NUM_LIMIT + 1);
36 private static final char LEN2_CHAR = (char)(ARG_NUM_LIMIT + 2);
37 private static final char LEN3_CHAR = (char)(ARG_NUM_LIMIT + 3);
47 private static final int MAX_SEGMENT_LENGTH = SEGMENT_LENGTH_ARGUMENT_CHAR - ARG_NUM_LIMIT;
112 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
130 if (argNumber >= ARG_NUM_LIMIT) { in compileToStringMinMaxArguments()
159 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
267 if (n < ARG_NUM_LIMIT) { in formatAndReplace()
276 i += n - ARG_NUM_LIMIT; in formatAndReplace()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DSimpleModifier.java28 private static final int ARG_NUM_LIMIT = 0x100; field in SimpleModifier
46 prefixLength = compiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier()
54 prefixLength = compiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier()
61 suffixLength = compiledPattern.charAt(suffixOffset) - ARG_NUM_LIMIT; in SimpleModifier()
186 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
190 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
199 if (infixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
203 infixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
215 suffixLength = compiledPattern.charAt(offset) - ARG_NUM_LIMIT; in formatTwoArgPattern()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DSimpleModifier.java26 private static final int ARG_NUM_LIMIT = 0x100; field in SimpleModifier
44 prefixLength = compiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier()
52 prefixLength = compiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier()
59 suffixLength = compiledPattern.charAt(suffixOffset) - ARG_NUM_LIMIT; in SimpleModifier()
184 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
188 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
197 if (infixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
201 infixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
213 suffixLength = compiledPattern.charAt(offset) - ARG_NUM_LIMIT; in formatTwoArgPattern()
/external/icu/icu4c/source/common/
Dsimpleformatter.cpp26 const int32_t ARG_NUM_LIMIT = 0x100; variable
36 const int32_t MAX_SEGMENT_LENGTH = SEGMENT_LENGTH_PLACEHOLDER_CHAR - ARG_NUM_LIMIT;
101 (UChar)(ARG_NUM_LIMIT + textLength)); in applyPatternMinMaxArguments()
119 if (argNumber >= ARG_NUM_LIMIT) { in applyPatternMinMaxArguments()
147 (UChar)(ARG_NUM_LIMIT + textLength)); in applyPatternMinMaxArguments()
227 if (n < ARG_NUM_LIMIT) { in formatAndReplace()
236 i += n - ARG_NUM_LIMIT; in formatAndReplace()
254 int32_t segmentLength = compiledPattern[i++] - ARG_NUM_LIMIT; in getTextWithNoArguments()
277 if (n < ARG_NUM_LIMIT) { in format()
306 int32_t length = n - ARG_NUM_LIMIT; in format()
/external/icu/icu4c/source/i18n/
Dnumber_modifiers.cpp20 const int32_t ARG_NUM_LIMIT = 0x100; variable
128 fPrefixLength = fCompiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier()
137 fPrefixLength = fCompiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier()
146 fSuffixLength = fCompiledPattern.charAt(fSuffixOffset) - ARG_NUM_LIMIT; in SimpleModifier()
247 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
251 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
260 if (infixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
264 infixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
276 suffixLength = compiledPattern.charAt(offset) - ARG_NUM_LIMIT; in formatTwoArgPattern()