/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | SimpleFormatterImpl.java | 184 public static int getArgumentLimit(String compiledPattern) { in getArgumentLimit() argument 185 return compiledPattern.charAt(0); in getArgumentLimit() 193 public static String formatCompiledPattern(String compiledPattern, CharSequence... values) { in formatCompiledPattern() argument 194 return formatAndAppend(compiledPattern, new StringBuilder(), null, values).toString(); in formatCompiledPattern() 211 String compiledPattern = compileToStringMinMaxArguments(pattern, sb, min, max); in formatRawPattern() local 213 return formatAndAppend(compiledPattern, sb, null, values).toString(); in formatRawPattern() 232 String compiledPattern, StringBuilder appendTo, int[] offsets, CharSequence... values) { in formatAndAppend() argument 234 if (valuesLength < getArgumentLimit(compiledPattern)) { in formatAndAppend() 237 return format(compiledPattern, values, appendTo, null, true, offsets); in formatAndAppend() 257 String compiledPattern, StringBuilder result, int[] offsets, CharSequence... values) { in formatAndReplace() argument [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | SimpleFormatterImpl.java | 186 public static int getArgumentLimit(String compiledPattern) { in getArgumentLimit() argument 187 return compiledPattern.charAt(0); in getArgumentLimit() 195 public static String formatCompiledPattern(String compiledPattern, CharSequence... values) { in formatCompiledPattern() argument 196 return formatAndAppend(compiledPattern, new StringBuilder(), null, values).toString(); in formatCompiledPattern() 213 String compiledPattern = compileToStringMinMaxArguments(pattern, sb, min, max); in formatRawPattern() local 215 return formatAndAppend(compiledPattern, sb, null, values).toString(); in formatRawPattern() 234 String compiledPattern, StringBuilder appendTo, int[] offsets, CharSequence... values) { in formatAndAppend() argument 236 if (valuesLength < getArgumentLimit(compiledPattern)) { in formatAndAppend() 239 return format(compiledPattern, values, appendTo, null, true, offsets); in formatAndAppend() 259 String compiledPattern, StringBuilder result, int[] offsets, CharSequence... values) { in formatAndReplace() argument [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
D | SimpleModifier.java | 19 private final String compiledPattern; field in SimpleModifier 30 public SimpleModifier(String compiledPattern, Field field, boolean strong) { in SimpleModifier() argument 31 this(compiledPattern, field, strong, null); in SimpleModifier() 35 …public SimpleModifier(String compiledPattern, Field field, boolean strong, Parameters parameters) { in SimpleModifier() argument 36 assert compiledPattern != null; in SimpleModifier() 37 this.compiledPattern = compiledPattern; in SimpleModifier() 45 …return SimpleFormatterImpl.formatPrefixSuffix(compiledPattern, field, leftIndex, rightIndex, outpu… in apply() 50 return SimpleFormatterImpl.getPrefixLength(compiledPattern); in getPrefixLength() 55 return SimpleFormatterImpl.getLength(compiledPattern, true); in getCodePointCount() 84 …return compiledPattern.equals(_other.compiledPattern) && field == _other.field && strong == _other… in semanticallyEquivalent() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | SimpleModifier.java | 17 private final String compiledPattern; field in SimpleModifier 28 public SimpleModifier(String compiledPattern, Field field, boolean strong) { in SimpleModifier() argument 29 this(compiledPattern, field, strong, null); in SimpleModifier() 33 …public SimpleModifier(String compiledPattern, Field field, boolean strong, Parameters parameters) { in SimpleModifier() argument 34 assert compiledPattern != null; in SimpleModifier() 35 this.compiledPattern = compiledPattern; in SimpleModifier() 43 …return SimpleFormatterImpl.formatPrefixSuffix(compiledPattern, field, leftIndex, rightIndex, outpu… in apply() 48 return SimpleFormatterImpl.getPrefixLength(compiledPattern); in getPrefixLength() 53 return SimpleFormatterImpl.getLength(compiledPattern, true); in getCodePointCount() 82 …return compiledPattern.equals(_other.compiledPattern) && field == _other.field && strong == _other… in semanticallyEquivalent() [all …]
|
/third_party/node/deps/icu-small/source/common/unicode/ |
D | simpleformatter.h | 68 SimpleFormatter() : compiledPattern((char16_t)0) {} in SimpleFormatter() 107 : compiledPattern(other.compiledPattern) {} in SimpleFormatter() 158 return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length()); in getArgumentLimit() 272 compiledPattern.getBuffer(), in getTextWithNoArguments() 273 compiledPattern.length(), in getTextWithNoArguments() 296 compiledPattern.getBuffer(), in getTextWithNoArguments() 297 compiledPattern.length(), in getTextWithNoArguments() 313 UnicodeString compiledPattern; 315 static inline int32_t getArgumentLimit(const char16_t *compiledPattern, in getArgumentLimit() argument 317 return compiledPatternLength == 0 ? 0 : compiledPattern[0]; in getArgumentLimit() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/unicode/ |
D | simpleformatter.h | 68 SimpleFormatter() : compiledPattern((char16_t)0) {} in SimpleFormatter() 107 : compiledPattern(other.compiledPattern) {} in SimpleFormatter() 158 return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length()); in getArgumentLimit() 272 compiledPattern.getBuffer(), in getTextWithNoArguments() 273 compiledPattern.length(), in getTextWithNoArguments() 296 compiledPattern.getBuffer(), in getTextWithNoArguments() 297 compiledPattern.length(), in getTextWithNoArguments() 313 UnicodeString compiledPattern; 315 static inline int32_t getArgumentLimit(const char16_t *compiledPattern, in getArgumentLimit() argument 317 return compiledPatternLength == 0 ? 0 : compiledPattern[0]; in getArgumentLimit() [all …]
|
/third_party/icu/icu4c/source/common/unicode/ |
D | simpleformatter.h | 68 SimpleFormatter() : compiledPattern((char16_t)0) {} in SimpleFormatter() 107 : compiledPattern(other.compiledPattern) {} in SimpleFormatter() 158 return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length()); in getArgumentLimit() 272 compiledPattern.getBuffer(), in getTextWithNoArguments() 273 compiledPattern.length(), in getTextWithNoArguments() 296 compiledPattern.getBuffer(), in getTextWithNoArguments() 297 compiledPattern.length(), in getTextWithNoArguments() 313 UnicodeString compiledPattern; 315 static inline int32_t getArgumentLimit(const char16_t *compiledPattern, in getArgumentLimit() argument 317 return compiledPatternLength == 0 ? 0 : compiledPattern[0]; in getArgumentLimit() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | SimpleFormatter.java | 47 private final String compiledPattern; field in SimpleFormatter 49 private SimpleFormatter(String compiledPattern) { in SimpleFormatter() argument 50 this.compiledPattern = compiledPattern; in SimpleFormatter() 79 …String compiledPattern = SimpleFormatterImpl.compileToStringMinMaxArguments(pattern, sb, min, max); in compileMinMaxArguments() local 80 return new SimpleFormatter(compiledPattern); in compileMinMaxArguments() 88 return SimpleFormatterImpl.getArgumentLimit(compiledPattern); in getArgumentLimit() 96 return SimpleFormatterImpl.formatCompiledPattern(compiledPattern, values); in format() 116 return SimpleFormatterImpl.formatAndAppend(compiledPattern, appendTo, offsets, values); in formatAndAppend() 137 return SimpleFormatterImpl.formatAndReplace(compiledPattern, result, offsets, values); in formatAndReplace() 161 return SimpleFormatterImpl.getTextWithNoArguments(compiledPattern); in getTextWithNoArguments()
|
D | QuantityFormatter.java | 106 public static StringBuilder format(String compiledPattern, CharSequence value, in format() argument 109 SimpleFormatterImpl.formatAndAppend(compiledPattern, appendTo, offsets, value); in format()
|
D | ListFormatter.java | 609 public FormattedListBuilder append(String compiledPattern, Object next, int position) { in append() argument 610 assert SimpleFormatterImpl.getArgumentLimit(compiledPattern) == 2; in append() 614 state = IterInternal.step(state, compiledPattern, string); in append()
|
D | DateIntervalFormat.java | 1038 String compiledPattern = SimpleFormatterImpl.compileToStringMinMaxArguments( in fallbackFormatRange() local 1042 state = SimpleFormatterImpl.IterInternal.step(state, compiledPattern, appendTo); in fallbackFormatRange() 1092 String compiledPattern = SimpleFormatterImpl.compileToStringMinMaxArguments( in fallbackFormat() local 1102 state = SimpleFormatterImpl.IterInternal.step(state, compiledPattern, appendTo); in fallbackFormat()
|
D | RelativeDateTimeFormatter.java | 703 … String compiledPattern = getRelativeUnitPluralPattern(style, unit, pastFutureIndex, pluralForm); in formatImpl() local 704 …SimpleFormatterImpl.formatPrefixSuffix(compiledPattern, Field.LITERAL, 0, output.length(), output); in formatImpl()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | SimpleFormatter.java | 48 private final String compiledPattern; field in SimpleFormatter 50 private SimpleFormatter(String compiledPattern) { in SimpleFormatter() argument 51 this.compiledPattern = compiledPattern; in SimpleFormatter() 78 …String compiledPattern = SimpleFormatterImpl.compileToStringMinMaxArguments(pattern, sb, min, max); in compileMinMaxArguments() local 79 return new SimpleFormatter(compiledPattern); in compileMinMaxArguments() 86 return SimpleFormatterImpl.getArgumentLimit(compiledPattern); in getArgumentLimit() 93 return SimpleFormatterImpl.formatCompiledPattern(compiledPattern, values); in format() 112 return SimpleFormatterImpl.formatAndAppend(compiledPattern, appendTo, offsets, values); in formatAndAppend() 132 return SimpleFormatterImpl.formatAndReplace(compiledPattern, result, offsets, values); in formatAndReplace() 152 return SimpleFormatterImpl.getTextWithNoArguments(compiledPattern); in getTextWithNoArguments()
|
D | QuantityFormatter.java | 107 public static StringBuilder format(String compiledPattern, CharSequence value, in format() argument 110 SimpleFormatterImpl.formatAndAppend(compiledPattern, appendTo, offsets, value); in format()
|
D | ListFormatter.java | 681 public FormattedListBuilder append(String compiledPattern, Object next, int position) { in append() argument 682 assert SimpleFormatterImpl.getArgumentLimit(compiledPattern) == 2; in append() 686 state = IterInternal.step(state, compiledPattern, string); in append()
|
D | DateIntervalFormat.java | 1002 String compiledPattern = SimpleFormatterImpl.compileToStringMinMaxArguments( in fallbackFormatRange() local 1006 state = SimpleFormatterImpl.IterInternal.step(state, compiledPattern, appendTo); in fallbackFormatRange() 1054 String compiledPattern = SimpleFormatterImpl.compileToStringMinMaxArguments( in fallbackFormat() local 1064 state = SimpleFormatterImpl.IterInternal.step(state, compiledPattern, appendTo); in fallbackFormat()
|
D | RelativeDateTimeFormatter.java | 623 … String compiledPattern = getRelativeUnitPluralPattern(style, unit, pastFutureIndex, pluralForm); in formatImpl() local 624 …SimpleFormatterImpl.formatPrefixSuffix(compiledPattern, Field.LITERAL, 0, output.length(), output); in formatImpl()
|
/third_party/icu/icu4c/source/common/ |
D | simpleformatter.cpp | 57 compiledPattern = other.compiledPattern; in operator =() 76 compiledPattern.setTo((UChar)0); in applyPatternMinMaxArguments() 100 compiledPattern.setCharAt(compiledPattern.length() - textLength - 1, in applyPatternMinMaxArguments() 132 compiledPattern.append((UChar)argNumber); in applyPatternMinMaxArguments() 138 compiledPattern.append(SEGMENT_LENGTH_PLACEHOLDER_CHAR); in applyPatternMinMaxArguments() 140 compiledPattern.append(c); in applyPatternMinMaxArguments() 146 compiledPattern.setCharAt(compiledPattern.length() - textLength - 1, in applyPatternMinMaxArguments() 154 compiledPattern.setCharAt(0, (UChar)argCount); in applyPatternMinMaxArguments() 194 return format(compiledPattern.getBuffer(), compiledPattern.length(), values, in formatAndAppend() 210 const UChar *cp = compiledPattern.getBuffer(); in formatAndReplace() [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | simpleformatter.cpp | 57 compiledPattern = other.compiledPattern; in operator =() 76 compiledPattern.setTo((char16_t)0); in applyPatternMinMaxArguments() 100 compiledPattern.setCharAt(compiledPattern.length() - textLength - 1, in applyPatternMinMaxArguments() 132 compiledPattern.append((char16_t)argNumber); in applyPatternMinMaxArguments() 138 compiledPattern.append(SEGMENT_LENGTH_PLACEHOLDER_CHAR); in applyPatternMinMaxArguments() 140 compiledPattern.append(c); in applyPatternMinMaxArguments() 146 compiledPattern.setCharAt(compiledPattern.length() - textLength - 1, in applyPatternMinMaxArguments() 154 compiledPattern.setCharAt(0, (char16_t)argCount); in applyPatternMinMaxArguments() 194 return format(compiledPattern.getBuffer(), compiledPattern.length(), values, in formatAndAppend() 210 const char16_t *cp = compiledPattern.getBuffer(); in formatAndReplace() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | simpleformatter.cpp | 57 compiledPattern = other.compiledPattern; in operator =() 76 compiledPattern.setTo((UChar)0); in applyPatternMinMaxArguments() 100 compiledPattern.setCharAt(compiledPattern.length() - textLength - 1, in applyPatternMinMaxArguments() 132 compiledPattern.append((UChar)argNumber); in applyPatternMinMaxArguments() 138 compiledPattern.append(SEGMENT_LENGTH_PLACEHOLDER_CHAR); in applyPatternMinMaxArguments() 140 compiledPattern.append(c); in applyPatternMinMaxArguments() 146 compiledPattern.setCharAt(compiledPattern.length() - textLength - 1, in applyPatternMinMaxArguments() 154 compiledPattern.setCharAt(0, (UChar)argCount); in applyPatternMinMaxArguments() 194 return format(compiledPattern.getBuffer(), compiledPattern.length(), values, in formatAndAppend() 210 const UChar *cp = compiledPattern.getBuffer(); in formatAndReplace() [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_modifiers.cpp | 121 : fCompiledPattern(simpleFormatter.compiledPattern), fField(field), fStrong(strong), in SimpleModifier() 233 const UnicodeString& compiledPattern = compiled.compiledPattern; in formatTwoArgPattern() local 235 compiledPattern.getBuffer(), compiledPattern.length()); in formatTwoArgPattern() 243 int32_t prefixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() 250 … result.insert(index + length, compiledPattern, offset, offset + prefixLength, field, status); in formatTwoArgPattern() 256 int32_t infixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() 263 result.insert(index + length, compiledPattern, offset, offset + infixLength, field, status); in formatTwoArgPattern() 270 if (offset == compiledPattern.length()) { in formatTwoArgPattern() 274 suffixLength = compiledPattern.charAt(offset) - ARG_NUM_LIMIT; in formatTwoArgPattern() 276 … result.insert(index + length, compiledPattern, offset, offset + suffixLength, field, status); in formatTwoArgPattern()
|
/third_party/icu/icu4c/source/i18n/ |
D | number_modifiers.cpp | 121 : fCompiledPattern(simpleFormatter.compiledPattern), fField(field), fStrong(strong), in SimpleModifier() 233 const UnicodeString& compiledPattern = compiled.compiledPattern; in formatTwoArgPattern() local 235 compiledPattern.getBuffer(), compiledPattern.length()); in formatTwoArgPattern() 243 int32_t prefixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() 250 … result.insert(index + length, compiledPattern, offset, offset + prefixLength, field, status); in formatTwoArgPattern() 256 int32_t infixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() 263 result.insert(index + length, compiledPattern, offset, offset + infixLength, field, status); in formatTwoArgPattern() 270 if (offset == compiledPattern.length()) { in formatTwoArgPattern() 274 suffixLength = compiledPattern.charAt(offset) - ARG_NUM_LIMIT; in formatTwoArgPattern() 276 … result.insert(index + length, compiledPattern, offset, offset + suffixLength, field, status); in formatTwoArgPattern()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_modifiers.cpp | 130 : fCompiledPattern(simpleFormatter.compiledPattern), fField(field), fStrong(strong), in SimpleModifier() 242 const UnicodeString& compiledPattern = compiled.compiledPattern; in formatTwoArgPattern() local 244 compiledPattern.getBuffer(), compiledPattern.length()); in formatTwoArgPattern() 252 int32_t prefixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() 259 … result.insert(index + length, compiledPattern, offset, offset + prefixLength, field, status); in formatTwoArgPattern() 265 int32_t infixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() 272 result.insert(index + length, compiledPattern, offset, offset + infixLength, field, status); in formatTwoArgPattern() 279 if (offset == compiledPattern.length()) { in formatTwoArgPattern() 283 suffixLength = compiledPattern.charAt(offset) - ARG_NUM_LIMIT; in formatTwoArgPattern() 285 … result.insert(index + length, compiledPattern, offset, offset + suffixLength, field, status); in formatTwoArgPattern()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/ |
D | ModifierTest.java | 71 String compiledPattern = SimpleFormatterImpl in testSimpleModifier() local 73 Modifier mod = new SimpleModifier(compiledPattern, NumberFormat.Field.PERCENT, false); in testSimpleModifier()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | ModifierTest.java | 68 String compiledPattern = SimpleFormatterImpl in testSimpleModifier() local 70 Modifier mod = new SimpleModifier(compiledPattern, NumberFormat.Field.PERCENT, false); in testSimpleModifier()
|