/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | SimpleModifier.java | 17 private final String compiledPattern; field in SimpleModifier 31 public SimpleModifier(String compiledPattern, Field field, boolean strong) { in SimpleModifier() argument 32 this(compiledPattern, field, strong, null); in SimpleModifier() 36 …public SimpleModifier(String compiledPattern, Field field, boolean strong, Parameters parameters) { in SimpleModifier() argument 37 assert compiledPattern != null; in SimpleModifier() 38 this.compiledPattern = compiledPattern; in SimpleModifier() 43 int argLimit = SimpleFormatterImpl.getArgumentLimit(compiledPattern); in SimpleModifier() 46 prefixLength = compiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier() 47 assert 2 + prefixLength == compiledPattern.length(); in SimpleModifier() 53 if (compiledPattern.charAt(1) != '\u0000') { in SimpleModifier() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | SimpleModifier.java | 15 private final String compiledPattern; field in SimpleModifier 29 public SimpleModifier(String compiledPattern, Field field, boolean strong) { in SimpleModifier() argument 30 this(compiledPattern, field, strong, null); in SimpleModifier() 34 …public SimpleModifier(String compiledPattern, Field field, boolean strong, Parameters parameters) { in SimpleModifier() argument 35 assert compiledPattern != null; in SimpleModifier() 36 this.compiledPattern = compiledPattern; in SimpleModifier() 41 int argLimit = SimpleFormatterImpl.getArgumentLimit(compiledPattern); in SimpleModifier() 44 prefixLength = compiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier() 45 assert 2 + prefixLength == compiledPattern.length(); in SimpleModifier() 51 if (compiledPattern.charAt(1) != '\u0000') { in SimpleModifier() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | SimpleFormatterImpl.java | 180 public static int getArgumentLimit(String compiledPattern) { in getArgumentLimit() argument 181 return compiledPattern.charAt(0); in getArgumentLimit() 189 public static String formatCompiledPattern(String compiledPattern, CharSequence... values) { in formatCompiledPattern() argument 190 return formatAndAppend(compiledPattern, new StringBuilder(), null, values).toString(); in formatCompiledPattern() 207 String compiledPattern = compileToStringMinMaxArguments(pattern, sb, min, max); in formatRawPattern() local 209 return formatAndAppend(compiledPattern, sb, null, values).toString(); in formatRawPattern() 228 String compiledPattern, StringBuilder appendTo, int[] offsets, CharSequence... values) { in formatAndAppend() argument 230 if (valuesLength < getArgumentLimit(compiledPattern)) { in formatAndAppend() 233 return format(compiledPattern, values, appendTo, null, true, offsets); in formatAndAppend() 253 String compiledPattern, StringBuilder result, int[] offsets, CharSequence... values) { in formatAndReplace() argument [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | SimpleFormatterImpl.java | 178 public static int getArgumentLimit(String compiledPattern) { in getArgumentLimit() argument 179 return compiledPattern.charAt(0); in getArgumentLimit() 187 public static String formatCompiledPattern(String compiledPattern, CharSequence... values) { in formatCompiledPattern() argument 188 return formatAndAppend(compiledPattern, new StringBuilder(), null, values).toString(); in formatCompiledPattern() 205 String compiledPattern = compileToStringMinMaxArguments(pattern, sb, min, max); in formatRawPattern() local 207 return formatAndAppend(compiledPattern, sb, null, values).toString(); in formatRawPattern() 226 String compiledPattern, StringBuilder appendTo, int[] offsets, CharSequence... values) { in formatAndAppend() argument 228 if (valuesLength < getArgumentLimit(compiledPattern)) { in formatAndAppend() 231 return format(compiledPattern, values, appendTo, null, true, offsets); in formatAndAppend() 251 String compiledPattern, StringBuilder result, int[] offsets, CharSequence... values) { in formatAndReplace() argument [all …]
|
/external/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 | 125 public static StringBuilder format(String compiledPattern, CharSequence value, in format() argument 128 SimpleFormatterImpl.formatAndAppend(compiledPattern, appendTo, offsets, value); in format()
|
/external/icu/android_icu4j/src/main/java/android/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 | 126 public static StringBuilder format(String compiledPattern, CharSequence value, in format() argument 129 SimpleFormatterImpl.formatAndAppend(compiledPattern, appendTo, offsets, value); in format()
|
/external/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 …]
|
/external/icu/icu4c/source/common/unicode/ |
D | simpleformatter.h | 65 SimpleFormatter() : compiledPattern((char16_t)0) {} in SimpleFormatter() 104 : compiledPattern(other.compiledPattern) {} in SimpleFormatter() 155 return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length()); in getArgumentLimit() 268 return getTextWithNoArguments(compiledPattern.getBuffer(), compiledPattern.length()); in getTextWithNoArguments() 281 UnicodeString compiledPattern; 283 static inline int32_t getArgumentLimit(const char16_t *compiledPattern, in getArgumentLimit() argument 285 return compiledPatternLength == 0 ? 0 : compiledPattern[0]; in getArgumentLimit() 288 …static UnicodeString getTextWithNoArguments(const char16_t *compiledPattern, int32_t compiledPatte… 291 const char16_t *compiledPattern, int32_t compiledPatternLength,
|
/external/icu/icu4c/source/i18n/ |
D | number_modifiers.cpp | 122 : fCompiledPattern(simpleFormatter.compiledPattern), fField(field), fStrong(strong), in SimpleModifier() 235 const UnicodeString& compiledPattern = compiled.compiledPattern; in formatTwoArgPattern() local 237 compiledPattern.getBuffer(), compiledPattern.length()); in formatTwoArgPattern() 245 int32_t prefixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() 252 … result.insert(index + length, compiledPattern, offset, offset + prefixLength, field, status); in formatTwoArgPattern() 258 int32_t infixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() 265 result.insert(index + length, compiledPattern, offset, offset + infixLength, field, status); in formatTwoArgPattern() 272 if (offset == compiledPattern.length()) { in formatTwoArgPattern() 276 suffixLength = compiledPattern.charAt(offset) - ARG_NUM_LIMIT; in formatTwoArgPattern() 278 … result.insert(index + length, compiledPattern, offset, offset + suffixLength, field, status); in formatTwoArgPattern()
|
/external/libbackup/src/com/google/android/libraries/backup/ |
D | BackupKeyPredicates.java | 98 final Pattern compiledPattern = Pattern.compile(pattern); 102 return compiledPattern.matcher(key).find();
|
/external/icu/android_icu4j/src/main/tests/android/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()
|
/external/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()
|