/external/icu/icu4c/source/i18n/ |
D | number_compact.cpp | 41 int32_t countZeros(const UChar *patternString, int32_t patternLength) { in countZeros() argument 46 if (patternString[i] == u'0') { in countZeros() 114 const UChar *patternString = patterns[getIndex(magnitude, plural)]; in getPattern() local 115 if (patternString == nullptr && plural != StandardPlural::OTHER) { in getPattern() 117 patternString = patterns[getIndex(magnitude, StandardPlural::OTHER)]; in getPattern() 119 if (patternString == USE_FALLBACK) { // == is intended in getPattern() 121 patternString = nullptr; in getPattern() 123 return patternString; in getPattern() 186 const UChar *patternString = value.getString(patternLength, status); in put() local 188 if (u_strcmp(patternString, u"0") == 0) { in put() [all …]
|
D | udatpg.cpp | 98 UnicodeString patternString((UBool)(length<0), pattern, length); in udatpg_getSkeleton() local 100 patternString, *pErrorCode); in udatpg_getSkeleton() 116 UnicodeString patternString((UBool)(length<0), pattern, length); in udatpg_getBaseSkeleton() local 118 patternString, *pErrorCode); in udatpg_getBaseSkeleton() 135 UnicodeString patternString((UBool)(patternLength<0), pattern, patternLength); in udatpg_addPattern() local 138 addPattern(patternString, override, conflictingPatternString, *pErrorCode); in udatpg_addPattern() 262 UnicodeString patternString((UBool)(patternLength<0), pattern, patternLength); in udatpg_replaceFieldTypesWithOptions() local 264 …UnicodeString result=((DateTimePatternGenerator *)dtpg)->replaceFieldTypes(patternString, skeleton… in udatpg_replaceFieldTypesWithOptions()
|
D | number_affixutils.cpp | 19 int32_t AffixUtils::estimateLength(const UnicodeString &patternString, UErrorCode &status) { in estimateLength() argument 23 for (; offset < patternString.length();) { in estimateLength() 24 UChar32 cp = patternString.char32At(offset); in estimateLength() 279 AffixTag AffixUtils::nextToken(AffixTag tag, const UnicodeString &patternString, UErrorCode &status… in nextToken() argument 282 for (; offset < patternString.length();) { in nextToken() 283 UChar32 cp = patternString.char32At(offset); in nextToken()
|
D | number_affixutils.h | 119 static int32_t estimateLength(const UnicodeString& patternString, UErrorCode& status); 213 static AffixTag nextToken(AffixTag tag, const UnicodeString& patternString, UErrorCode& status);
|
D | number_patternstring.h | 145 void consumePattern(const UnicodeString& patternString, UErrorCode& status); 185 … static void parseToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo& patternInfo,
|
D | number_mapper.cpp | 459 UnicodeString patternString; in setTo() local 460 patternString = cpi.getCurrencyPluralPattern(keyword, patternString); in setTo() 462 patternString, in setTo()
|
D | numparse_affixes.cpp | 32 static bool matched(const AffixPatternMatcher* affix, const UnicodeString& patternString) { in matched() argument 33 return (affix == nullptr && patternString.isBogus()) || in matched() 34 (affix != nullptr && affix->getPattern() == patternString); in matched()
|
D | number_compact.h | 54 const UChar* patternString; member
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | CompactData.java | 112 String patternString = pluralEntry.getValue().toString(); in populate() local 113 patterns[getIndex(magnitude, plural)] = patternString; in populate() 114 int numZeros = countZeros(patternString); in populate() 145 String patternString = patterns[getIndex(magnitude, plural)]; in getPattern() local 146 if (patternString == null && plural != StandardPlural.OTHER) { in getPattern() 148 patternString = patterns[getIndex(magnitude, StandardPlural.OTHER)]; in getPattern() 150 if (patternString == USE_FALLBACK) { // == is intended in getPattern() 152 patternString = null; in getPattern() 154 return patternString; in getPattern() 204 String patternString = value.toString(); in put() [all …]
|
D | AffixUtils.java | 135 public static int estimateLength(CharSequence patternString) { in estimateLength() argument 136 if (patternString == null) in estimateLength() 141 for (; offset < patternString.length();) { in estimateLength() 142 int cp = Character.codePointAt(patternString, offset); in estimateLength() 194 throw new IllegalArgumentException("Unterminated quote: \"" + patternString + "\""); in estimateLength() 495 private static long nextToken(long tag, CharSequence patternString) { in nextToken() argument 498 for (; offset < patternString.length();) { in nextToken() 499 int cp = Character.codePointAt(patternString, offset); in nextToken() 616 "Unterminated quote in pattern affix: \"" + patternString + "\""); in nextToken()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | CompactData.java | 107 String patternString = pluralEntry.getValue().toString(); in populate() local 108 patterns[getIndex(magnitude, plural)] = patternString; in populate() 109 int numZeros = countZeros(patternString); in populate() 140 String patternString = patterns[getIndex(magnitude, plural)]; in getPattern() local 141 if (patternString == null && plural != StandardPlural.OTHER) { in getPattern() 143 patternString = patterns[getIndex(magnitude, StandardPlural.OTHER)]; in getPattern() 145 if (patternString == USE_FALLBACK) { // == is intended in getPattern() 147 patternString = null; in getPattern() 149 return patternString; in getPattern() 199 String patternString = value.toString(); in put() [all …]
|
D | AffixUtils.java | 127 public static int estimateLength(CharSequence patternString) { in estimateLength() argument 128 if (patternString == null) in estimateLength() 133 for (; offset < patternString.length();) { in estimateLength() 134 int cp = Character.codePointAt(patternString, offset); in estimateLength() 186 throw new IllegalArgumentException("Unterminated quote: \"" + patternString + "\""); in estimateLength() 487 private static long nextToken(long tag, CharSequence patternString) { in nextToken() argument 490 for (; offset < patternString.length();) { in nextToken() 491 int cp = Character.codePointAt(patternString, offset); in nextToken() 608 "Unterminated quote in pattern affix: \"" + patternString + "\""); in nextToken()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | GenerateSeedDurations.java | 59 String patternString = pattern.toPattern(); in main() local 61 if (!patternString.contains("H")) { in main() 62 warnings.add(localeString + "\t" + patternString + "\t ***No 'H'"); in main() 64 patternString = patternString.replace("HH", "H"); in main() 66 patternString = patternString.replace("mm", "m"); in main() 68 if (!patternString.contains(":")) { in main() 69 warnings.add(localeString + "\t" + patternString + "\t ***No ':'"); in main() 71 … System.out.println(" <numericUnit type=\"" + numericUnit + "\">" + patternString in main()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | CompactNotation.java | 117 for (String patternString : allPatterns) { in precomputeAllModifiers() 118 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers() 120 precomputedMods.put(patternString, buildReference.createImmutable()); in precomputeAllModifiers() 142 String patternString = data.getPattern(magnitude, plural); in processQuantity() local 143 if (patternString == null) { in processQuantity() 149 ImmutablePatternModifier mod = precomputedMods.get(patternString); in processQuantity() 154 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity()
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | CompactNotation.java | 117 for (String patternString : allPatterns) { in precomputeAllModifiers() 118 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers() 120 precomputedMods.put(patternString, buildReference.createImmutable()); in precomputeAllModifiers() 142 String patternString = data.getPattern(magnitude, plural); in processQuantity() local 143 if (patternString == null) { in processQuantity() 149 ImmutablePatternModifier mod = precomputedMods.get(patternString); in processQuantity() 154 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity()
|
/external/icu/icu4c/source/tools/genrb/ |
D | prscmnts.cpp | 89 UnicodeString patternString, in getText() argument 105 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status); in getText() 165 UnicodeString patternString(patternStrings[option]); in getCount() local 166 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status); in getCount() 205 UnicodeString patternString(patternStrings[option]); in getAt() local 206 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status); in getAt()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberParserTest.java | 143 String patternString = (String) cas[2]; in testBasic() local 147 .createSimpleParser(ULocale.ENGLISH, patternString, parseFlags); in testBasic() 181 patternString, in testBasic() 376 String patternString = (String) cas[0]; in testCaseFolding() local 382 .createSimpleParser(ULocale.ENGLISH, patternString, 0); in testCaseFolding() 385 assertEquals("Case-Sensitive: " + inputString + " on " + patternString, in testCaseFolding() 390 patternString, in testCaseFolding() 394 assertEquals("Folded: " + inputString + " on " + patternString, in testCaseFolding()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberParserTest.java | 140 String patternString = (String) cas[2]; in testBasic() local 144 .createSimpleParser(ULocale.ENGLISH, patternString, parseFlags); in testBasic() 178 patternString, in testBasic() 373 String patternString = (String) cas[0]; in testCaseFolding() local 379 .createSimpleParser(ULocale.ENGLISH, patternString, 0); in testCaseFolding() 382 assertEquals("Case-Sensitive: " + inputString + " on " + patternString, in testCaseFolding() 387 patternString, in testCaseFolding() 391 assertEquals("Folded: " + inputString + " on " + patternString, in testCaseFolding()
|
/external/vogar/src/vogar/ |
D | ClassFileIndex.java | 63 for (String patternString : JAR_PATTERN_STRINGS) { 64 JAR_PATTERNS.add(Pattern.compile(patternString)); in Pattern.compile() argument 69 for (String patternString : FAILURE_PATTERN_STRINGS) { 71 FAILURE_PATTERNS.add(Pattern.compile(patternString, Pattern.DOTALL)); in Pattern.compile() argument
|
/external/icu/libicu/cts_headers/ |
D | number_affixutils.h | 119 static int32_t estimateLength(const UnicodeString& patternString, UErrorCode& status); 213 static AffixTag nextToken(AffixTag tag, const UnicodeString& patternString, UErrorCode& status);
|
D | number_patternstring.h | 145 void consumePattern(const UnicodeString& patternString, UErrorCode& status); 185 … static void parseToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo& patternInfo,
|
D | number_compact.h | 54 const UChar* patternString; member
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_parse.cpp | 37 const char16_t* patternString; in testBasic() member 131 UnicodeString patternString(cas.patternString); in testBasic() local 134 Locale("en"), patternString, parseFlags, status)); in testBasic() 172 patternString, in testBasic()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/ |
D | AffixMatcher.java | 248 static boolean matched(AffixPatternMatcher affix, String patternString) { in matched() argument 249 return (affix == null && patternString == null) in matched() 250 || (affix != null && affix.getPattern().equals(patternString)); in matched()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
D | AffixMatcher.java | 246 static boolean matched(AffixPatternMatcher affix, String patternString) { in matched() argument 247 return (affix == null && patternString == null) in matched() 248 || (affix != null && affix.getPattern().equals(patternString)); in matched()
|