Home
last modified time | relevance | path

Searched refs:compiledPattern (Results 1 – 21 of 21) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/impl/
DSimpleFormatterImpl.java186 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 …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSimpleFormatterImpl.java184 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 …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DSimpleModifier.java19 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 …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DSimpleModifier.java17 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 …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DSimpleFormatter.java48 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()
DQuantityFormatter.java107 public static StringBuilder format(String compiledPattern, CharSequence value, in format() argument
110 SimpleFormatterImpl.formatAndAppend(compiledPattern, appendTo, offsets, value); in format()
DListFormatter.java681 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()
DDateIntervalFormat.java1014 String compiledPattern = SimpleFormatterImpl.compileToStringMinMaxArguments( in fallbackFormatRange() local
1018 state = SimpleFormatterImpl.IterInternal.step(state, compiledPattern, appendTo); in fallbackFormatRange()
1068 String compiledPattern = SimpleFormatterImpl.compileToStringMinMaxArguments( in fallbackFormat() local
1078 state = SimpleFormatterImpl.IterInternal.step(state, compiledPattern, appendTo); in fallbackFormat()
DRelativeDateTimeFormatter.java623 … String compiledPattern = getRelativeUnitPluralPattern(style, unit, pastFutureIndex, pluralForm); in formatImpl() local
624 …SimpleFormatterImpl.formatPrefixSuffix(compiledPattern, Field.LITERAL, 0, output.length(), output); in formatImpl()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DSimpleFormatter.java47 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()
DQuantityFormatter.java106 public static StringBuilder format(String compiledPattern, CharSequence value, in format() argument
109 SimpleFormatterImpl.formatAndAppend(compiledPattern, appendTo, offsets, value); in format()
DListFormatter.java707 public FormattedListBuilder append(String compiledPattern, Object next, int position) { in append() argument
708 assert SimpleFormatterImpl.getArgumentLimit(compiledPattern) == 2; in append()
712 state = IterInternal.step(state, compiledPattern, string); in append()
DDateIntervalFormat.java1036 String compiledPattern = SimpleFormatterImpl.compileToStringMinMaxArguments( in fallbackFormatRange() local
1040 state = SimpleFormatterImpl.IterInternal.step(state, compiledPattern, appendTo); in fallbackFormatRange()
1090 String compiledPattern = SimpleFormatterImpl.compileToStringMinMaxArguments( in fallbackFormat() local
1100 state = SimpleFormatterImpl.IterInternal.step(state, compiledPattern, appendTo); in fallbackFormat()
DRelativeDateTimeFormatter.java703 … String compiledPattern = getRelativeUnitPluralPattern(style, unit, pastFutureIndex, pluralForm); in formatImpl() local
704 …SimpleFormatterImpl.formatPrefixSuffix(compiledPattern, Field.LITERAL, 0, output.length(), output); in formatImpl()
/external/icu/icu4c/source/common/unicode/
Dsimpleformatter.h68 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 …]
/external/icu/libicu/cts_headers/unicode/
Dsimpleformatter.h68 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 …]
/external/icu/icu4c/source/common/
Dsimpleformatter.cpp57 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 …]
/external/icu/icu4c/source/i18n/
Dnumber_modifiers.cpp121 : 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()
/external/libbackup/src/com/google/android/libraries/backup/
DBackupKeyPredicates.java98 final Pattern compiledPattern = Pattern.compile(pattern);
102 return compiledPattern.matcher(key).find();
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DModifierTest.java71 String compiledPattern = SimpleFormatterImpl in testSimpleModifier() local
73 Modifier mod = new SimpleModifier(compiledPattern, NumberFormat.Field.PERCENT, false); in testSimpleModifier()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DModifierTest.java68 String compiledPattern = SimpleFormatterImpl in testSimpleModifier() local
70 Modifier mod = new SimpleModifier(compiledPattern, NumberFormat.Field.PERCENT, false); in testSimpleModifier()