/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/ |
D | AffixMatcher.java | 50 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()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
D | AffixMatcher.java | 48 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()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
D | MutablePatternModifier.java | 43 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()
|
D | PatternStringParser.java | 538 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()
|
D | Grouper.java | 123 public Grouper withLocaleData(ULocale locale, ParsedPatternInfo patternInfo) { in withLocaleData() argument 128 short grouping1 = (short) (patternInfo.positive.groupingSizes & 0xffff); in withLocaleData() 129 short grouping2 = (short) ((patternInfo.positive.groupingSizes >>> 16) & 0xffff); in withLocaleData() 130 short grouping3 = (short) ((patternInfo.positive.groupingSizes >>> 32) & 0xffff); in withLocaleData()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | MutablePatternModifier.java | 41 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()
|
D | PatternStringParser.java | 532 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()
|
D | Grouper.java | 121 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()
|
D | PatternStringUtils.java | 430 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()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | numbertest_patternmodifier.cpp | 26 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()
|
/third_party/icu/icu4c/source/i18n/ |
D | numparse_affixes.cpp | 233 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()
|
D | number_patternstring.cpp | 25 …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 …]
|
D | number_grouping.cpp | 66 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()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | numparse_affixes.cpp | 233 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() 300 patternInfo, true, type, false, StandardPlural::OTHER, false, sb); in createAffixMatchers() 310 patternInfo, false, type, false, StandardPlural::OTHER, false, sb); in createAffixMatchers()
|
D | number_grouping.cpp | 66 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()
|
D | number_patternstring.cpp | 25 …tternParser::parseToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo& patternInfo, in parseToPatternInfo() argument 27 patternInfo.consumePattern(patternString, status); in parseToPatternInfo() 516 ParsedPatternInfo patternInfo; in parseToExistingPropertiesImpl() local 517 parseToPatternInfo(pattern, patternInfo, status); in parseToExistingPropertiesImpl() 519 patternInfoToProperties(properties, patternInfo, ignoreRounding, status); in parseToExistingPropertiesImpl() 523 …arser::patternInfoToProperties(DecimalFormatProperties& properties, ParsedPatternInfo& patternInfo, in patternInfoToProperties() argument 528 const ParsedSubpatternInfo& positive = patternInfo.positive; in patternInfoToProperties() 637 UnicodeString posPrefix = patternInfo.getString(AffixPatternProvider::AFFIX_PREFIX); in patternInfoToProperties() 638 UnicodeString posSuffix = patternInfo.getString(0); in patternInfoToProperties() 647 UnicodeString rawPaddingString = patternInfo.getString(AffixPatternProvider::AFFIX_PADDING); in patternInfoToProperties() [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | numparse_affixes.cpp | 233 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()
|
D | number_patternstring.cpp | 25 …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 …]
|
D | number_grouping.cpp | 66 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()
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | number_patternstring.cpp | 24 …tternParser::parseToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo& patternInfo, in parseToPatternInfo() argument 26 patternInfo.consumePattern(patternString, status); in parseToPatternInfo() 470 ParsedPatternInfo patternInfo; in parseToExistingPropertiesImpl() local 471 parseToPatternInfo(pattern, patternInfo, status); in parseToExistingPropertiesImpl() 473 patternInfoToProperties(properties, patternInfo, ignoreRounding, status); in parseToExistingPropertiesImpl() 477 …arser::patternInfoToProperties(DecimalFormatProperties& properties, ParsedPatternInfo& patternInfo, in patternInfoToProperties() argument 482 const ParsedSubpatternInfo& positive = patternInfo.positive; in patternInfoToProperties() 588 UnicodeString posPrefix = patternInfo.getString(AffixPatternProvider::AFFIX_PREFIX); in patternInfoToProperties() 589 UnicodeString posSuffix = patternInfo.getString(0); in patternInfoToProperties() 598 UnicodeString rawPaddingString = patternInfo.getString(AffixPatternProvider::AFFIX_PADDING); in patternInfoToProperties() [all …]
|
D | numparse_affixes.cpp | 264 bool AffixMatcherWarehouse::isInteresting(const AffixPatternProvider& patternInfo, in isInteresting() argument 267 UnicodeString posPrefixString = patternInfo.getString(AffixPatternProvider::AFFIX_POS_PREFIX); in isInteresting() 268 UnicodeString posSuffixString = patternInfo.getString(AffixPatternProvider::AFFIX_POS_SUFFIX); in isInteresting() 271 if (patternInfo.hasNegativeSubpattern()) { in isInteresting() 272 negPrefixString = patternInfo.getString(AffixPatternProvider::AFFIX_NEG_PREFIX); in isInteresting() 273 negSuffixString = patternInfo.getString(AffixPatternProvider::AFFIX_NEG_SUFFIX); in isInteresting() 294 void AffixMatcherWarehouse::createAffixMatchers(const AffixPatternProvider& patternInfo, in createAffixMatchers() argument 298 if (!isInteresting(patternInfo, ignorables, parseFlags, status)) { in createAffixMatchers() 320 patternInfo, true, signum, signDisplay, StandardPlural::OTHER, false, sb); in createAffixMatchers() 329 patternInfo, false, signum, signDisplay, StandardPlural::OTHER, false, sb); in createAffixMatchers()
|
D | number_grouping.cpp | 67 void Grouper::setLocaleData(const impl::ParsedPatternInfo &patternInfo, const Locale& locale) { in setLocaleData() argument 71 auto grouping1 = static_cast<int16_t> (patternInfo.positive.groupingSizes & 0xffff); in setLocaleData() 72 auto grouping2 = static_cast<int16_t> ((patternInfo.positive.groupingSizes >> 16) & 0xffff); in setLocaleData() 73 auto grouping3 = static_cast<int16_t> ((patternInfo.positive.groupingSizes >> 32) & 0xffff); in setLocaleData()
|
D | number_compact.cpp | 260 ParsedPatternInfo patternInfo; in precomputeAllModifiers() local 261 PatternParser::parseToPatternInfo(UnicodeString(patternString), patternInfo, status); in precomputeAllModifiers() 263 buildReference.setPatternInfo(&patternInfo); in precomputeAllModifiers() 310 ParsedPatternInfo &patternInfo = const_cast<CompactHandler *>(this)->unsafePatternInfo; in processQuantity() local 311 PatternParser::parseToPatternInfo(UnicodeString(patternString), patternInfo, status); in processQuantity() 313 ->setPatternInfo(&patternInfo); in processQuantity()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | CompactNotation.java | 119 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers() local 120 buildReference.setPatternInfo(patternInfo, NumberFormat.Field.COMPACT); in precomputeAllModifiers() 155 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity() local 156 unsafePatternModifier.setPatternInfo(patternInfo, NumberFormat.Field.COMPACT); in processQuantity()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | CompactNotation.java | 117 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers() local 118 buildReference.setPatternInfo(patternInfo, NumberFormat.Field.COMPACT); in precomputeAllModifiers() 152 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity() local 153 unsafePatternModifier.setPatternInfo(patternInfo, NumberFormat.Field.COMPACT); in processQuantity()
|