/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/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/ |
D | MutablePatternModifier.java | 40 AffixPatternProvider patternInfo; field in MutablePatternModifier 75 public void setPatternInfo(AffixPatternProvider patternInfo) { in setPatternInfo() argument 76 this.patternInfo = patternInfo; in setPatternInfo() 138 return patternInfo.containsSymbolType(AffixUtils.TYPE_CURRENCY_TRIPLE); in needsPlurals() 209 if (patternInfo.hasCurrencySign()) { in createConstantModifier() 210 … return new CurrencySpacingEnabledModifier(a, b, !patternInfo.hasBody(), isStrong, symbols); in createConstantModifier() 212 return new ConstantMultiFieldModifier(a, b, !patternInfo.hasBody(), isStrong); in createConstantModifier() 288 if (!patternInfo.hasBody()) { in apply() 367 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 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 | PatternStringUtils.java | 409 AffixPatternProvider patternInfo, in patternInfoToStringBuilder() argument 424 && patternInfo.positiveHasPlusSign() == false; in patternInfoToStringBuilder() 428 boolean useNegativeAffixPattern = patternInfo.hasNegativeSubpattern() in patternInfoToStringBuilder() 429 && (signum == -1 || (patternInfo.negativeHasMinusSign() && plusReplacesMinusSign)); in patternInfoToStringBuilder() 455 int length = patternInfo.length(flags) + (prependSign ? 1 : 0); in patternInfoToStringBuilder() 464 candidate = patternInfo.charAt(flags, index - 1); in patternInfoToStringBuilder() 466 candidate = patternInfo.charAt(flags, index); in patternInfoToStringBuilder()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | MutablePatternModifier.java | 42 AffixPatternProvider patternInfo; field in MutablePatternModifier 77 public void setPatternInfo(AffixPatternProvider patternInfo) { in setPatternInfo() argument 78 this.patternInfo = patternInfo; in setPatternInfo() 140 return patternInfo.containsSymbolType(AffixUtils.TYPE_CURRENCY_TRIPLE); in needsPlurals() 211 if (patternInfo.hasCurrencySign()) { in createConstantModifier() 212 … return new CurrencySpacingEnabledModifier(a, b, !patternInfo.hasBody(), isStrong, symbols); in createConstantModifier() 214 return new ConstantMultiFieldModifier(a, b, !patternInfo.hasBody(), isStrong); in createConstantModifier() 293 if (!patternInfo.hasBody()) { in apply() 372 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()
|
D | PatternStringUtils.java | 411 AffixPatternProvider patternInfo, in patternInfoToStringBuilder() argument 426 && patternInfo.positiveHasPlusSign() == false; in patternInfoToStringBuilder() 430 boolean useNegativeAffixPattern = patternInfo.hasNegativeSubpattern() in patternInfoToStringBuilder() 431 && (signum == -1 || (patternInfo.negativeHasMinusSign() && plusReplacesMinusSign)); in patternInfoToStringBuilder() 457 int length = patternInfo.length(flags) + (prependSign ? 1 : 0); in patternInfoToStringBuilder() 466 candidate = patternInfo.charAt(flags, index - 1); in patternInfoToStringBuilder() 468 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); in testBasic() 88 ParsedPatternInfo patternInfo; in testPatternWithNoPlaceholder() local 89 PatternParser::parseToPatternInfo(u"abc", patternInfo, status); in testPatternWithNoPlaceholder() 91 mod.setPatternInfo(&patternInfo); in testPatternWithNoPlaceholder() 131 ParsedPatternInfo patternInfo; in testMutableEqualsImmutable() local 132 PatternParser::parseToPatternInfo("a0b;c-0d", patternInfo, status); in testMutableEqualsImmutable() 134 mod.setPatternInfo(&patternInfo); 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 | 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()
|
D | number_patternstring.h | 173 … static void parseToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo& patternInfo, 219 … ParsedPatternInfo& patternInfo, IgnoreRounding _ignoreRounding, 275 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 | 231 …void createAffixMatchers(const AffixPatternProvider& patternInfo, MutableMatcherCollection& output, 245 …static bool isInteresting(const AffixPatternProvider& patternInfo, const IgnorablesMatcher& ignora…
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | CompactNotation.java | 114 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers() local 115 buildReference.setPatternInfo(patternInfo); in precomputeAllModifiers() 151 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity() local 152 ((MutablePatternModifier) micros.modMiddle).setPatternInfo(patternInfo); in processQuantity()
|
/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); in precomputeAllModifiers() 150 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity() local 151 ((MutablePatternModifier) micros.modMiddle).setPatternInfo(patternInfo); in processQuantity()
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | FlexibleDateFromCLDR.java | 182 gen.addPattern(value, false, patternInfo); in checkFlexibles() 183 switch (patternInfo.status) { in checkFlexibles() 185 …ailureMap.put(path, "Conflicting Patterns: \"" + value + "\"\t&\t\"" + patternInfo.conflictingPatt… in checkFlexibles() 258 PatternInfo patternInfo = new PatternInfo(); field in FlexibleDateFromCLDR
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateIntervalFormatTest.java | 1262 …PatternInfo patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar… in TestSetIntervalPatternNoSideEffect() local 1263 String expectedPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect() 1266 … patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar.DATE); in TestSetIntervalPatternNoSideEffect() 1267 String actualPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect() 1592 PatternInfo patternInfo = intervalFormat.getRawPatterns().get("M"); in TestTicket11583() local 1594 String firstPart = patternInfo.getFirstPart(); in TestTicket11583() 1595 String secondPart = patternInfo.getSecondPart(); in TestTicket11583()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateIntervalFormatTest.java | 1265 …PatternInfo patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar… in TestSetIntervalPatternNoSideEffect() local 1266 String expectedPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect() 1269 … patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar.DATE); in TestSetIntervalPatternNoSideEffect() 1270 String actualPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect() 1595 PatternInfo patternInfo = intervalFormat.getRawPatterns().get("M"); in TestTicket11583() local 1597 String firstPart = patternInfo.getFirstPart(); in TestTicket11583() 1598 String secondPart = patternInfo.getSecondPart(); in TestTicket11583()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DateIntervalInfo.java | 242 PatternInfo patternInfo = (PatternInfo)a; in equals() local 243 … return Objects.equals(fIntervalPatternFirstPart, patternInfo.fIntervalPatternFirstPart) && in equals() 244 … Objects.equals(fIntervalPatternSecondPart, patternInfo.fIntervalPatternSecondPart) && in equals() 245 fFirstDateInPtnIsLaterDate == patternInfo.fFirstDateInPtnIsLaterDate; in equals()
|