Home
last modified time | relevance | path

Searched refs:patternString (Results 1 – 25 of 36) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dnumber_compact.cpp41 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()
181 const UChar *patternString = value.getString(patternLength, status); in put() local
183 if (u_strcmp(patternString, u"0") == 0) { in put()
[all …]
Dudatpg.cpp98 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()
Dnumber_affixutils.cpp19 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()
276 AffixTag AffixUtils::nextToken(AffixTag tag, const UnicodeString &patternString, UErrorCode &status… in nextToken() argument
279 for (; offset < patternString.length();) { in nextToken()
280 UChar32 cp = patternString.char32At(offset); in nextToken()
Dnumber_affixutils.h119 static int32_t estimateLength(const UnicodeString& patternString, UErrorCode& status);
212 static AffixTag nextToken(AffixTag tag, const UnicodeString& patternString, UErrorCode& status);
Dnumber_patternstring.h133 void consumePattern(const UnicodeString& patternString, UErrorCode& status);
173 … static void parseToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo& patternInfo,
Dnumber_mapper.cpp457 UnicodeString patternString; in setTo() local
458 patternString = cpi.getCurrencyPluralPattern(keyword, patternString); in setTo()
460 patternString, in setTo()
Dnumparse_affixes.cpp31 static bool matched(const AffixPatternMatcher* affix, const UnicodeString& patternString) { in matched() argument
32 return (affix == nullptr && patternString.isBogus()) || in matched()
33 (affix != nullptr && affix->getPattern() == patternString); in matched()
Dnumber_compact.h54 const UChar* patternString; member
Dnumparse_impl.h39 …atic NumberParserImpl* createSimpleParser(const Locale& locale, const UnicodeString& patternString,
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DCompactData.java102 String patternString = pluralEntry.getValue().toString(); in populate() local
103 patterns[getIndex(magnitude, plural)] = patternString; in populate()
104 int numZeros = countZeros(patternString); in populate()
135 String patternString = patterns[getIndex(magnitude, plural)]; in getPattern() local
136 if (patternString == null && plural != StandardPlural.OTHER) { in getPattern()
138 patternString = patterns[getIndex(magnitude, StandardPlural.OTHER)]; in getPattern()
140 if (patternString == USE_FALLBACK) { // == is intended in getPattern()
142 patternString = null; in getPattern()
144 return patternString; in getPattern()
189 String patternString = value.toString(); in put()
[all …]
DAffixUtils.java126 public static int estimateLength(CharSequence patternString) { in estimateLength() argument
127 if (patternString == null) in estimateLength()
132 for (; offset < patternString.length();) { in estimateLength()
133 int cp = Character.codePointAt(patternString, offset); in estimateLength()
185 throw new IllegalArgumentException("Unterminated quote: \"" + patternString + "\""); in estimateLength()
485 private static long nextToken(long tag, CharSequence patternString) { in nextToken() argument
488 for (; offset < patternString.length();) { in nextToken()
489 int cp = Character.codePointAt(patternString, offset); in nextToken()
606 "Unterminated quote in pattern affix: \"" + patternString + "\""); in nextToken()
DPatternStringParser.java25 public static ParsedPatternInfo parseToPatternInfo(String patternString) { in parseToPatternInfo() argument
26 ParserState state = new ParserState(patternString); in parseToPatternInfo()
27 ParsedPatternInfo result = new ParsedPatternInfo(patternString); in parseToPatternInfo()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DCompactData.java107 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()
194 String patternString = value.toString(); in put()
[all …]
DAffixUtils.java134 public static int estimateLength(CharSequence patternString) { in estimateLength() argument
135 if (patternString == null) in estimateLength()
140 for (; offset < patternString.length();) { in estimateLength()
141 int cp = Character.codePointAt(patternString, offset); in estimateLength()
193 throw new IllegalArgumentException("Unterminated quote: \"" + patternString + "\""); in estimateLength()
493 private static long nextToken(long tag, CharSequence patternString) { in nextToken() argument
496 for (; offset < patternString.length();) { in nextToken()
497 int cp = Character.codePointAt(patternString, offset); in nextToken()
614 "Unterminated quote in pattern affix: \"" + patternString + "\""); in nextToken()
DPatternStringParser.java27 public static ParsedPatternInfo parseToPatternInfo(String patternString) { in parseToPatternInfo() argument
28 ParserState state = new ParserState(patternString); in parseToPatternInfo()
29 ParsedPatternInfo result = new ParsedPatternInfo(patternString); in parseToPatternInfo()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateSeedDurations.java59 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/android_icu4j/src/main/java/android/icu/number/
DCompactNotation.java113 for (String patternString : allPatterns) { in precomputeAllModifiers()
114 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers()
116 precomputedMods.put(patternString, buildReference.createImmutable()); in precomputeAllModifiers()
138 String patternString = data.getPattern(magnitude, plural); in processQuantity() local
139 if (patternString == null) { in processQuantity()
145 ImmutablePatternModifier mod = precomputedMods.get(patternString); in processQuantity()
151 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DCompactNotation.java112 for (String patternString : allPatterns) { in precomputeAllModifiers()
113 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers()
115 precomputedMods.put(patternString, buildReference.createImmutable()); in precomputeAllModifiers()
137 String patternString = data.getPattern(magnitude, plural); in processQuantity() local
138 if (patternString == null) { in processQuantity()
144 ImmutablePatternModifier mod = precomputedMods.get(patternString); in processQuantity()
150 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberParserTest.java139 String patternString = (String) cas[2]; in testBasic() local
143 .createSimpleParser(ULocale.ENGLISH, patternString, parseFlags); in testBasic()
177 patternString, in testBasic()
372 String patternString = (String) cas[0]; in testCaseFolding() local
378 .createSimpleParser(ULocale.ENGLISH, patternString, 0); in testCaseFolding()
381 assertEquals("Case-Sensitive: " + inputString + " on " + patternString, in testCaseFolding()
386 patternString, in testCaseFolding()
390 assertEquals("Folded: " + inputString + " on " + patternString, in testCaseFolding()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberParserTest.java136 String patternString = (String) cas[2]; in testBasic() local
140 .createSimpleParser(ULocale.ENGLISH, patternString, parseFlags); in testBasic()
174 patternString, in testBasic()
369 String patternString = (String) cas[0]; in testCaseFolding() local
375 .createSimpleParser(ULocale.ENGLISH, patternString, 0); in testCaseFolding()
378 assertEquals("Case-Sensitive: " + inputString + " on " + patternString, in testCaseFolding()
383 patternString, in testCaseFolding()
387 assertEquals("Folded: " + inputString + " on " + patternString, in testCaseFolding()
/external/icu/icu4c/source/tools/genrb/
Dprscmnts.cpp89 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/vogar/src/vogar/
DClassFileIndex.java63 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/icu4c/source/test/intltest/
Dnumbertest_parse.cpp37 const char16_t* patternString; in testBasic() member
127 UnicodeString patternString(cas.patternString); in testBasic() local
130 Locale("en"), patternString, parseFlags, status)); in testBasic()
168 patternString, in testBasic()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DAffixMatcher.java240 static boolean matched(AffixPatternMatcher affix, String patternString) { in matched() argument
241 return (affix == null && patternString == null) in matched()
242 || (affix != null && affix.getPattern().equals(patternString)); in matched()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DAffixMatcher.java242 static boolean matched(AffixPatternMatcher affix, String patternString) { in matched() argument
243 return (affix == null && patternString == null) in matched()
244 || (affix != null && affix.getPattern().equals(patternString)); in matched()

12