Home
last modified time | relevance | path

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

1234

/third_party/skia/third_party/externals/icu/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()
117 const UChar *patternString = nullptr; in getPattern() local
121 patternString = patterns[getIndex(magnitude, StandardPlural::Form::EQ_0)]; in getPattern()
123 patternString = patterns[getIndex(magnitude, StandardPlural::Form::EQ_1)]; in getPattern()
125 if (patternString != nullptr) { in getPattern()
126 return patternString; in getPattern()
130 patternString = patterns[getIndex(magnitude, plural)]; in getPattern()
131 if (patternString == nullptr && plural != StandardPlural::OTHER) { in getPattern()
133 patternString = patterns[getIndex(magnitude, StandardPlural::OTHER)]; in getPattern()
[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()
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()
/third_party/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()
117 const UChar *patternString = nullptr; in getPattern() local
121 patternString = patterns[getIndex(magnitude, StandardPlural::Form::EQ_0)]; in getPattern()
123 patternString = patterns[getIndex(magnitude, StandardPlural::Form::EQ_1)]; in getPattern()
125 if (patternString != nullptr) { in getPattern()
126 return patternString; in getPattern()
130 patternString = patterns[getIndex(magnitude, plural)]; in getPattern()
131 if (patternString == nullptr && plural != StandardPlural::OTHER) { in getPattern()
133 patternString = patterns[getIndex(magnitude, StandardPlural::OTHER)]; in getPattern()
[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()
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()
/third_party/node/deps/icu-small/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()
117 const UChar *patternString = nullptr; in getPattern() local
121 patternString = patterns[getIndex(magnitude, StandardPlural::Form::EQ_0)]; in getPattern()
123 patternString = patterns[getIndex(magnitude, StandardPlural::Form::EQ_1)]; in getPattern()
125 if (patternString != nullptr) { in getPattern()
126 return patternString; in getPattern()
130 patternString = patterns[getIndex(magnitude, plural)]; in getPattern()
131 if (patternString == nullptr && plural != StandardPlural::OTHER) { in getPattern()
133 patternString = patterns[getIndex(magnitude, StandardPlural::OTHER)]; in getPattern()
[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()
282 AffixTag AffixUtils::nextToken(AffixTag tag, const UnicodeString &patternString, UErrorCode &status… in nextToken() argument
285 for (; offset < patternString.length();) { in nextToken()
286 UChar32 cp = patternString.char32At(offset); in nextToken()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DCompactData.java104 String patternString = pluralEntry.getValue().toString(); in populate() local
105 patterns[getIndex(magnitude, plural)] = patternString; in populate()
106 int numZeros = countZeros(patternString); in populate()
137 String patternString = null; in getPattern() local
141 patternString = patterns[getIndex(magnitude, StandardPlural.EQ_0)]; in getPattern()
143 patternString = patterns[getIndex(magnitude, StandardPlural.EQ_1)]; in getPattern()
145 if (patternString != null) { in getPattern()
146 return patternString; in getPattern()
150 patternString = patterns[getIndex(magnitude, plural)]; in getPattern()
151 if (patternString == null && plural != StandardPlural.OTHER) { in getPattern()
[all …]
DAffixUtils.java127 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()
/third_party/flutter/skia/third_party/externals/icu/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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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.java135 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()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DCompactNotation.java116 for (String patternString : allPatterns) { in precomputeAllModifiers()
117 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers()
119 precomputedMods.put(patternString, buildReference.createImmutable()); in precomputeAllModifiers()
140 String patternString = data.getPattern(magnitude, rules, quantity); in processQuantity() local
141 if (patternString == null) { in processQuantity()
147 ImmutablePatternModifier mod = precomputedMods.get(patternString); in processQuantity()
152 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DCompactNotation.java118 for (String patternString : allPatterns) { in precomputeAllModifiers()
119 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers()
121 precomputedMods.put(patternString, buildReference.createImmutable()); in precomputeAllModifiers()
143 String patternString = data.getPattern(magnitude, plural); in processQuantity() local
144 if (patternString == null) { in processQuantity()
150 ImmutablePatternModifier mod = precomputedMods.get(patternString); in processQuantity()
155 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity()
/third_party/flutter/skia/third_party/externals/icu/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()
/third_party/node/deps/icu-small/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()
/third_party/skia/third_party/externals/icu/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()
/third_party/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()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DNumberParserTest.java143 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()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberParserTest.java140 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()
/third_party/icu/icu4c/source/test/intltest/
Dnumbertest_parse.cpp37 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()

1234