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.java41 private static final int ARG_NUM_LIMIT = 0x100; field in SimpleFormatterImpl
42 private static final char LEN1_CHAR = (char)(ARG_NUM_LIMIT + 1);
43 private static final char LEN2_CHAR = (char)(ARG_NUM_LIMIT + 2);
44 private static final char LEN3_CHAR = (char)(ARG_NUM_LIMIT + 3);
54 private static final int MAX_SEGMENT_LENGTH = SEGMENT_LENGTH_ARGUMENT_CHAR - ARG_NUM_LIMIT;
120 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
138 if (argNumber >= ARG_NUM_LIMIT) { in compileToStringMinMaxArguments()
167 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
275 if (n < ARG_NUM_LIMIT) { in formatAndReplace()
284 i += n - ARG_NUM_LIMIT; in formatAndReplace()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSimpleFormatterImpl.java39 private static final int ARG_NUM_LIMIT = 0x100; field in SimpleFormatterImpl
40 private static final char LEN1_CHAR = (char)(ARG_NUM_LIMIT + 1);
41 private static final char LEN2_CHAR = (char)(ARG_NUM_LIMIT + 2);
42 private static final char LEN3_CHAR = (char)(ARG_NUM_LIMIT + 3);
52 private static final int MAX_SEGMENT_LENGTH = SEGMENT_LENGTH_ARGUMENT_CHAR - ARG_NUM_LIMIT;
118 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
136 if (argNumber >= ARG_NUM_LIMIT) { in compileToStringMinMaxArguments()
165 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
273 if (n < ARG_NUM_LIMIT) { in formatAndReplace()
282 i += n - ARG_NUM_LIMIT; in formatAndReplace()
[all …]
/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()
261 if (n > ARG_NUM_LIMIT) { in getTextWithNoArguments()
262 n -= ARG_NUM_LIMIT; in getTextWithNoArguments()
288 if (n < ARG_NUM_LIMIT) { in format()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DSimpleModifier.java27 private static final int ARG_NUM_LIMIT = 0x100; field in SimpleModifier
109 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
113 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
122 if (infixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
126 infixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
138 suffixLength = compiledPattern.charAt(offset) - ARG_NUM_LIMIT; in formatTwoArgPattern()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DSimpleModifier.java25 private static final int ARG_NUM_LIMIT = 0x100; field in SimpleModifier
107 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
111 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
120 if (infixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
124 infixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
136 suffixLength = compiledPattern.charAt(offset) - ARG_NUM_LIMIT; in formatTwoArgPattern()
/external/icu/icu4c/source/i18n/
Dnumber_modifiers.cpp20 const int32_t ARG_NUM_LIMIT = 0x100; variable
127 fPrefixLength = fCompiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier()
136 fPrefixLength = fCompiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier()
145 fSuffixLength = fCompiledPattern.charAt(fSuffixOffset) - ARG_NUM_LIMIT; in SimpleModifier()
245 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
249 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
258 if (infixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
262 infixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
274 suffixLength = compiledPattern.charAt(offset) - ARG_NUM_LIMIT; in formatTwoArgPattern()