Home
last modified time | relevance | path

Searched refs:patternInfo (Results 1 – 25 of 44) sorted by relevance

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DAffixMatcher.java48 AffixPatternProvider patternInfo, in isInteresting() argument
51 String posPrefixString = patternInfo.getString(AffixPatternProvider.FLAG_POS_PREFIX); in isInteresting()
52 String posSuffixString = patternInfo.getString(AffixPatternProvider.FLAG_POS_SUFFIX); in isInteresting()
55 if (patternInfo.hasNegativeSubpattern()) { in isInteresting()
56 negPrefixString = patternInfo.getString(AffixPatternProvider.FLAG_NEG_PREFIX); in isInteresting()
57 negSuffixString = patternInfo.getString(AffixPatternProvider.FLAG_NEG_SUFFIX); in isInteresting()
79 AffixPatternProvider patternInfo, in createMatchers() argument
84 if (!isInteresting(patternInfo, ignorables, parseFlags)) { in createMatchers()
111 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in createMatchers()
121 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in createMatchers()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DAffixMatcher.java50 AffixPatternProvider patternInfo, in isInteresting() argument
53 String posPrefixString = patternInfo.getString(AffixPatternProvider.FLAG_POS_PREFIX); in isInteresting()
54 String posSuffixString = patternInfo.getString(AffixPatternProvider.FLAG_POS_SUFFIX); in isInteresting()
57 if (patternInfo.hasNegativeSubpattern()) { in isInteresting()
58 negPrefixString = patternInfo.getString(AffixPatternProvider.FLAG_NEG_PREFIX); in isInteresting()
59 negSuffixString = patternInfo.getString(AffixPatternProvider.FLAG_NEG_SUFFIX); in isInteresting()
81 AffixPatternProvider patternInfo, in createMatchers() argument
86 if (!isInteresting(patternInfo, ignorables, parseFlags)) { in createMatchers()
113 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in createMatchers()
123 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in createMatchers()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMutablePatternModifier.java41 AffixPatternProvider patternInfo; field in MutablePatternModifier
80 public void setPatternInfo(AffixPatternProvider patternInfo, Field field) { in setPatternInfo() argument
81 this.patternInfo = patternInfo; in setPatternInfo()
144 return patternInfo.containsSymbolType(AffixUtils.TYPE_CURRENCY_TRIPLE); in needsPlurals()
206 if (patternInfo.hasCurrencySign()) { in createConstantModifier()
207 … return new CurrencySpacingEnabledModifier(a, b, !patternInfo.hasBody(), isStrong, symbols); in createConstantModifier()
209 return new ConstantMultiFieldModifier(a, b, !patternInfo.hasBody(), isStrong); in createConstantModifier()
296 if (!patternInfo.hasBody()) { in apply()
375 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in prepareAffix()
DGrouper.java121 public Grouper withLocaleData(ULocale locale, ParsedPatternInfo patternInfo) { in withLocaleData() argument
138 short grouping1 = (short) (patternInfo.positive.groupingSizes & 0xffff); in withLocaleData()
139 short grouping2 = (short) ((patternInfo.positive.groupingSizes >>> 16) & 0xffff); in withLocaleData()
140 short grouping3 = (short) ((patternInfo.positive.groupingSizes >>> 32) & 0xffff); in withLocaleData()
DPatternStringParser.java532 ParsedPatternInfo patternInfo = parseToPatternInfo(pattern); in parseToExistingPropertiesImpl() local
533 patternInfoToProperties(properties, patternInfo, ignoreRounding); in parseToExistingPropertiesImpl()
539 ParsedPatternInfo patternInfo, in patternInfoToProperties() argument
544 ParsedSubpatternInfo positive = patternInfo.positive; in patternInfoToProperties()
652 String posPrefix = patternInfo.getString(AffixPatternProvider.Flags.PREFIX); in patternInfoToProperties()
653 String posSuffix = patternInfo.getString(0); in patternInfoToProperties()
662 String rawPaddingString = patternInfo.getString(AffixPatternProvider.Flags.PADDING); in patternInfoToProperties()
687 if (patternInfo.negative != null) { in patternInfoToProperties()
688 properties.setNegativePrefixPattern(patternInfo.getString( in patternInfoToProperties()
691 patternInfo.getString(AffixPatternProvider.Flags.NEGATIVE_SUBPATTERN)); in patternInfoToProperties()
DPatternStringUtils.java430 AffixPatternProvider patternInfo, in patternInfoToStringBuilder() argument
438 && !patternInfo.positiveHasPlusSign(); in patternInfoToStringBuilder()
442 boolean useNegativeAffixPattern = patternInfo.hasNegativeSubpattern() in patternInfoToStringBuilder()
444 || (patternInfo.negativeHasMinusSign() && plusReplacesMinusSign)); in patternInfoToStringBuilder()
470 int length = patternInfo.length(flags) + (prependSign ? 1 : 0); in patternInfoToStringBuilder()
479 candidate = patternInfo.charAt(flags, index - 1); in patternInfoToStringBuilder()
481 candidate = patternInfo.charAt(flags, index); in patternInfoToStringBuilder()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DMutablePatternModifier.java43 AffixPatternProvider patternInfo; field in MutablePatternModifier
82 public void setPatternInfo(AffixPatternProvider patternInfo, Field field) { in setPatternInfo() argument
83 this.patternInfo = patternInfo; in setPatternInfo()
146 return patternInfo.containsSymbolType(AffixUtils.TYPE_CURRENCY_TRIPLE); in needsPlurals()
208 if (patternInfo.hasCurrencySign()) { in createConstantModifier()
209 … return new CurrencySpacingEnabledModifier(a, b, !patternInfo.hasBody(), isStrong, symbols); in createConstantModifier()
211 return new ConstantMultiFieldModifier(a, b, !patternInfo.hasBody(), isStrong); in createConstantModifier()
301 if (!patternInfo.hasBody()) { in apply()
380 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in prepareAffix()
DGrouper.java123 public Grouper withLocaleData(ULocale locale, ParsedPatternInfo patternInfo) { in withLocaleData() argument
140 short grouping1 = (short) (patternInfo.positive.groupingSizes & 0xffff); in withLocaleData()
141 short grouping2 = (short) ((patternInfo.positive.groupingSizes >>> 16) & 0xffff); in withLocaleData()
142 short grouping3 = (short) ((patternInfo.positive.groupingSizes >>> 32) & 0xffff); in withLocaleData()
DPatternStringParser.java538 ParsedPatternInfo patternInfo = parseToPatternInfo(pattern); in parseToExistingPropertiesImpl() local
539 patternInfoToProperties(properties, patternInfo, ignoreRounding); in parseToExistingPropertiesImpl()
545 ParsedPatternInfo patternInfo, in patternInfoToProperties() argument
550 ParsedSubpatternInfo positive = patternInfo.positive; in patternInfoToProperties()
658 String posPrefix = patternInfo.getString(AffixPatternProvider.Flags.PREFIX); in patternInfoToProperties()
659 String posSuffix = patternInfo.getString(0); in patternInfoToProperties()
668 String rawPaddingString = patternInfo.getString(AffixPatternProvider.Flags.PADDING); in patternInfoToProperties()
693 if (patternInfo.negative != null) { in patternInfoToProperties()
694 properties.setNegativePrefixPattern(patternInfo.getString( in patternInfoToProperties()
697 patternInfo.getString(AffixPatternProvider.Flags.NEGATIVE_SUBPATTERN)); in patternInfoToProperties()
DPatternStringUtils.java435 AffixPatternProvider patternInfo, in patternInfoToStringBuilder() argument
443 && !patternInfo.positiveHasPlusSign(); in patternInfoToStringBuilder()
447 boolean useNegativeAffixPattern = patternInfo.hasNegativeSubpattern() in patternInfoToStringBuilder()
449 || (patternInfo.negativeHasMinusSign() && plusReplacesMinusSign)); in patternInfoToStringBuilder()
475 int length = patternInfo.length(flags) + (prependSign ? 1 : 0); in patternInfoToStringBuilder()
484 candidate = patternInfo.charAt(flags, index - 1); in patternInfoToStringBuilder()
486 candidate = patternInfo.charAt(flags, index); in patternInfoToStringBuilder()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_patternmodifier.cpp26 ParsedPatternInfo patternInfo; in testBasic() local
27 PatternParser::parseToPatternInfo(u"a0b", patternInfo, status); in testBasic()
29 mod.setPatternInfo(&patternInfo, kUndefinedField); in testBasic()
92 ParsedPatternInfo patternInfo; in testPatternWithNoPlaceholder() local
93 PatternParser::parseToPatternInfo(u"abc", patternInfo, status); in testPatternWithNoPlaceholder()
95 mod.setPatternInfo(&patternInfo, kUndefinedField); in testPatternWithNoPlaceholder()
134 ParsedPatternInfo patternInfo; in testMutableEqualsImmutable() local
135 PatternParser::parseToPatternInfo("a0b;c-0d", patternInfo, status); in testMutableEqualsImmutable()
137 mod.setPatternInfo(&patternInfo, kUndefinedField); in testMutableEqualsImmutable()
Dnumbertest_patternstring.cpp100 ParsedPatternInfo patternInfo; in testExceptionOnInvalid() local
101 PatternParser::parseToPatternInfo(pattern, patternInfo, status); in testExceptionOnInvalid()
/external/icu/icu4c/source/i18n/
Dnumber_grouping.cpp66 void Grouper::setLocaleData(const impl::ParsedPatternInfo &patternInfo, const Locale& locale) { in setLocaleData() argument
77 auto grouping1 = static_cast<int16_t> (patternInfo.positive.groupingSizes & 0xffff); in setLocaleData()
78 auto grouping2 = static_cast<int16_t> ((patternInfo.positive.groupingSizes >> 16) & 0xffff); in setLocaleData()
79 auto grouping3 = static_cast<int16_t> ((patternInfo.positive.groupingSizes >> 32) & 0xffff); in setLocaleData()
Dnumparse_affixes.cpp233 bool AffixMatcherWarehouse::isInteresting(const AffixPatternProvider& patternInfo, in isInteresting() argument
236 UnicodeString posPrefixString = patternInfo.getString(AffixPatternProvider::AFFIX_POS_PREFIX); in isInteresting()
237 UnicodeString posSuffixString = patternInfo.getString(AffixPatternProvider::AFFIX_POS_SUFFIX); in isInteresting()
240 if (patternInfo.hasNegativeSubpattern()) { in isInteresting()
241 negPrefixString = patternInfo.getString(AffixPatternProvider::AFFIX_NEG_PREFIX); in isInteresting()
242 negSuffixString = patternInfo.getString(AffixPatternProvider::AFFIX_NEG_SUFFIX); in isInteresting()
263 void AffixMatcherWarehouse::createAffixMatchers(const AffixPatternProvider& patternInfo, in createAffixMatchers() argument
267 if (!isInteresting(patternInfo, ignorables, parseFlags, status)) { in createAffixMatchers()
299 patternInfo, true, type, StandardPlural::OTHER, false, sb); in createAffixMatchers()
308 patternInfo, false, type, StandardPlural::OTHER, false, sb); in createAffixMatchers()
Dnumber_patternstring.cpp25 …tternParser::parseToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo& patternInfo, in parseToPatternInfo() argument
27 patternInfo.consumePattern(patternString, status); in parseToPatternInfo()
471 ParsedPatternInfo patternInfo; in parseToExistingPropertiesImpl() local
472 parseToPatternInfo(pattern, patternInfo, status); in parseToExistingPropertiesImpl()
474 patternInfoToProperties(properties, patternInfo, ignoreRounding, status); in parseToExistingPropertiesImpl()
478 …arser::patternInfoToProperties(DecimalFormatProperties& properties, ParsedPatternInfo& patternInfo, in patternInfoToProperties() argument
483 const ParsedSubpatternInfo& positive = patternInfo.positive; in patternInfoToProperties()
589 UnicodeString posPrefix = patternInfo.getString(AffixPatternProvider::AFFIX_PREFIX); in patternInfoToProperties()
590 UnicodeString posSuffix = patternInfo.getString(0); in patternInfoToProperties()
599 UnicodeString rawPaddingString = patternInfo.getString(AffixPatternProvider::AFFIX_PADDING); in patternInfoToProperties()
[all …]
Dnumber_compact.cpp271 ParsedPatternInfo patternInfo; in precomputeAllModifiers() local
272 PatternParser::parseToPatternInfo(UnicodeString(patternString), patternInfo, status); in precomputeAllModifiers()
274 buildReference.setPatternInfo(&patternInfo, {UFIELD_CATEGORY_NUMBER, UNUM_COMPACT_FIELD}); in precomputeAllModifiers()
322 ParsedPatternInfo &patternInfo = const_cast<CompactHandler *>(this)->unsafePatternInfo; in processQuantity() local
323 PatternParser::parseToPatternInfo(UnicodeString(patternString), patternInfo, status); in processQuantity()
Dnumber_patternstring.h185 … static void parseToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo& patternInfo,
231 … ParsedPatternInfo& patternInfo, IgnoreRounding _ignoreRounding,
309 static void patternInfoToStringBuilder(const AffixPatternProvider& patternInfo, bool isPrefix,
Dnumparse_impl.cpp50 ParsedPatternInfo patternInfo; in createSimpleParser() local
51 PatternParser::parseToPatternInfo(patternString, patternInfo, status); in createSimpleParser()
59 patternInfo, *parser, ignorables, parseFlags, status); in createSimpleParser()
62 grouper.setLocaleData(patternInfo, locale); in createSimpleParser()
Dnumparse_affixes.h202 …void createAffixMatchers(const AffixPatternProvider& patternInfo, MutableMatcherCollection& output,
216 …static bool isInteresting(const AffixPatternProvider& patternInfo, const IgnorablesMatcher& ignora…
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DCompactNotation.java118 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers() local
119 buildReference.setPatternInfo(patternInfo, NumberFormat.Field.COMPACT); in precomputeAllModifiers()
154 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity() local
155 unsafePatternModifier.setPatternInfo(patternInfo, NumberFormat.Field.COMPACT); in processQuantity()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DCompactNotation.java118 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers() local
119 buildReference.setPatternInfo(patternInfo, NumberFormat.Field.COMPACT); in precomputeAllModifiers()
154 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity() local
155 unsafePatternModifier.setPatternInfo(patternInfo, NumberFormat.Field.COMPACT); in processQuantity()
/external/icu/libicu/cts_headers/
Dnumber_patternstring.h185 … static void parseToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo& patternInfo,
231 … ParsedPatternInfo& patternInfo, IgnoreRounding _ignoreRounding,
309 static void patternInfoToStringBuilder(const AffixPatternProvider& patternInfo, bool isPrefix,
Dnumparse_affixes.h202 …void createAffixMatchers(const AffixPatternProvider& patternInfo, MutableMatcherCollection& output,
216 …static bool isInteresting(const AffixPatternProvider& patternInfo, const IgnorablesMatcher& ignora…
/external/cldr/tools/java/org/unicode/cldr/test/
DFlexibleDateFromCLDR.java183 gen.addPattern(value, false, patternInfo); in checkFlexibles()
184 switch (patternInfo.status) { in checkFlexibles()
186 …ailureMap.put(path, "Conflicting Patterns: \"" + value + "\"\t&\t\"" + patternInfo.conflictingPatt… in checkFlexibles()
261 PatternInfo patternInfo = new PatternInfo(); field in FlexibleDateFromCLDR
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateIntervalFormatTest.java1458 …PatternInfo patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar… in TestSetIntervalPatternNoSideEffect() local
1459 String expectedPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect()
1462patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar.DATE); in TestSetIntervalPatternNoSideEffect()
1463 String actualPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect()
1788 PatternInfo patternInfo = intervalFormat.getRawPatterns().get("M"); in TestTicket11583() local
1790 String firstPart = patternInfo.getFirstPart(); in TestTicket11583()
1791 String secondPart = patternInfo.getSecondPart(); in TestTicket11583()

12