/external/icu/android_icu4j/src/main/java/android/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() 105 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in createMatchers() 116 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in createMatchers()
|
/external/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() 103 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in createMatchers() 114 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in createMatchers()
|
/external/icu/android_icu4j/src/main/java/android/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() 217 if (patternInfo.hasCurrencySign()) { in createConstantModifier() 218 … return new CurrencySpacingEnabledModifier(a, b, !patternInfo.hasBody(), isStrong, symbols); in createConstantModifier() 220 return new ConstantMultiFieldModifier(a, b, !patternInfo.hasBody(), isStrong); in createConstantModifier() 294 if (!patternInfo.hasBody()) { in apply() 373 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in prepareAffix()
|
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()
|
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 | PatternStringUtils.java | 419 AffixPatternProvider patternInfo, in patternInfoToStringBuilder() argument 434 && patternInfo.positiveHasPlusSign() == false; in patternInfoToStringBuilder() 438 boolean useNegativeAffixPattern = patternInfo.hasNegativeSubpattern() in patternInfoToStringBuilder() 439 && (signum == -1 || (patternInfo.negativeHasMinusSign() && plusReplacesMinusSign)); in patternInfoToStringBuilder() 465 int length = patternInfo.length(flags) + (prependSign ? 1 : 0); in patternInfoToStringBuilder() 474 candidate = patternInfo.charAt(flags, index - 1); in patternInfoToStringBuilder() 476 candidate = patternInfo.charAt(flags, index); in patternInfoToStringBuilder()
|
/external/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() 215 if (patternInfo.hasCurrencySign()) { in createConstantModifier() 216 … return new CurrencySpacingEnabledModifier(a, b, !patternInfo.hasBody(), isStrong, symbols); in createConstantModifier() 218 return new ConstantMultiFieldModifier(a, b, !patternInfo.hasBody(), isStrong); in createConstantModifier() 289 if (!patternInfo.hasBody()) { in apply() 368 PatternStringUtils.patternInfoToStringBuilder(patternInfo, in prepareAffix()
|
D | Grouper.java | 121 public Grouper withLocaleData(ULocale locale, ParsedPatternInfo patternInfo) { in withLocaleData() argument 126 short grouping1 = (short) (patternInfo.positive.groupingSizes & 0xffff); in withLocaleData() 127 short grouping2 = (short) ((patternInfo.positive.groupingSizes >>> 16) & 0xffff); in withLocaleData() 128 short grouping3 = (short) ((patternInfo.positive.groupingSizes >>> 32) & 0xffff); in withLocaleData()
|
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 | PatternStringUtils.java | 417 AffixPatternProvider patternInfo, in patternInfoToStringBuilder() argument 432 && patternInfo.positiveHasPlusSign() == false; in patternInfoToStringBuilder() 436 boolean useNegativeAffixPattern = patternInfo.hasNegativeSubpattern() in patternInfoToStringBuilder() 437 && (signum == -1 || (patternInfo.negativeHasMinusSign() && plusReplacesMinusSign)); in patternInfoToStringBuilder() 463 int length = patternInfo.length(flags) + (prependSign ? 1 : 0); in patternInfoToStringBuilder() 472 candidate = patternInfo.charAt(flags, index - 1); in patternInfoToStringBuilder() 474 candidate = patternInfo.charAt(flags, index); in patternInfoToStringBuilder()
|
/external/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, UNUM_FIELD_COUNT); in testBasic() 88 ParsedPatternInfo patternInfo; in testPatternWithNoPlaceholder() local 89 PatternParser::parseToPatternInfo(u"abc", patternInfo, status); in testPatternWithNoPlaceholder() 91 mod.setPatternInfo(&patternInfo, UNUM_FIELD_COUNT); in testPatternWithNoPlaceholder() 131 ParsedPatternInfo patternInfo; in testMutableEqualsImmutable() local 132 PatternParser::parseToPatternInfo("a0b;c-0d", patternInfo, status); in testMutableEqualsImmutable() 134 mod.setPatternInfo(&patternInfo, UNUM_FIELD_COUNT); in testMutableEqualsImmutable()
|
D | numbertest_patternstring.cpp | 100 ParsedPatternInfo patternInfo; in testExceptionOnInvalid() local 101 PatternParser::parseToPatternInfo(pattern, patternInfo, status); in testExceptionOnInvalid()
|
/external/icu/icu4c/source/i18n/ |
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 | numparse_affixes.cpp | 232 bool AffixMatcherWarehouse::isInteresting(const AffixPatternProvider& patternInfo, in isInteresting() argument 235 UnicodeString posPrefixString = patternInfo.getString(AffixPatternProvider::AFFIX_POS_PREFIX); in isInteresting() 236 UnicodeString posSuffixString = patternInfo.getString(AffixPatternProvider::AFFIX_POS_SUFFIX); in isInteresting() 239 if (patternInfo.hasNegativeSubpattern()) { in isInteresting() 240 negPrefixString = patternInfo.getString(AffixPatternProvider::AFFIX_NEG_PREFIX); in isInteresting() 241 negSuffixString = patternInfo.getString(AffixPatternProvider::AFFIX_NEG_SUFFIX); in isInteresting() 262 void AffixMatcherWarehouse::createAffixMatchers(const AffixPatternProvider& patternInfo, in createAffixMatchers() argument 266 if (!isInteresting(patternInfo, ignorables, parseFlags, status)) { in createAffixMatchers() 290 patternInfo, true, signum, signDisplay, StandardPlural::OTHER, false, sb); in createAffixMatchers() 299 patternInfo, false, signum, signDisplay, StandardPlural::OTHER, false, sb); in createAffixMatchers()
|
D | number_grouping.cpp | 66 void Grouper::setLocaleData(const impl::ParsedPatternInfo &patternInfo, const Locale& locale) { in setLocaleData() argument 70 auto grouping1 = static_cast<int16_t> (patternInfo.positive.groupingSizes & 0xffff); in setLocaleData() 71 auto grouping2 = static_cast<int16_t> ((patternInfo.positive.groupingSizes >> 16) & 0xffff); in setLocaleData() 72 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, UNUM_COMPACT_FIELD); 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, UNUM_COMPACT_FIELD); in processQuantity()
|
D | number_patternstring.h | 173 … static void parseToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo& patternInfo, 219 … ParsedPatternInfo& patternInfo, IgnoreRounding _ignoreRounding, 297 static void patternInfoToStringBuilder(const AffixPatternProvider& patternInfo, bool isPrefix,
|
D | numparse_impl.cpp | 50 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()
|
D | numparse_affixes.h | 201 …void createAffixMatchers(const AffixPatternProvider& patternInfo, MutableMatcherCollection& output, 215 …static bool isInteresting(const AffixPatternProvider& patternInfo, const IgnorablesMatcher& ignora…
|
D | number_formatimpl.cpp | 271 auto patternInfo = new ParsedPatternInfo(); in macrosToMicroGenerator() local 272 if (patternInfo == nullptr) { in macrosToMicroGenerator() 276 fPatternInfo.adoptInstead(patternInfo); in macrosToMicroGenerator() 277 PatternParser::parseToPatternInfo(UnicodeString(pattern), *patternInfo, status); in macrosToMicroGenerator()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | CompactNotation.java | 113 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers() local 114 buildReference.setPatternInfo(patternInfo, NumberFormat.Field.COMPACT); in precomputeAllModifiers() 149 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity() local 150 …((MutablePatternModifier) micros.modMiddle).setPatternInfo(patternInfo, NumberFormat.Field.COMPACT… in processQuantity()
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | CompactNotation.java | 113 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers() local 114 buildReference.setPatternInfo(patternInfo, NumberFormat.Field.COMPACT); in precomputeAllModifiers() 149 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity() local 150 …((MutablePatternModifier) micros.modMiddle).setPatternInfo(patternInfo, NumberFormat.Field.COMPACT… in processQuantity()
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | FlexibleDateFromCLDR.java | 183 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/ |
D | DateIntervalFormatTest.java | 1302 …PatternInfo patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar… in TestSetIntervalPatternNoSideEffect() local 1303 String expectedPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect() 1306 … patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar.DATE); in TestSetIntervalPatternNoSideEffect() 1307 String actualPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect() 1632 PatternInfo patternInfo = intervalFormat.getRawPatterns().get("M"); in TestTicket11583() local 1634 String firstPart = patternInfo.getFirstPart(); in TestTicket11583() 1635 String secondPart = patternInfo.getSecondPart(); in TestTicket11583()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateIntervalFormatTest.java | 1305 …PatternInfo patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar… in TestSetIntervalPatternNoSideEffect() local 1306 String expectedPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect() 1309 … patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar.DATE); in TestSetIntervalPatternNoSideEffect() 1310 String actualPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect() 1635 PatternInfo patternInfo = intervalFormat.getRawPatterns().get("M"); in TestTicket11583() local 1637 String firstPart = patternInfo.getFirstPart(); in TestTicket11583() 1638 String secondPart = patternInfo.getSecondPart(); in TestTicket11583()
|