Home
last modified time | relevance | path

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

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMutablePatternModifier.java38 AffixPatternProvider patternInfo; field in MutablePatternModifier
77 public void setPatternInfo(AffixPatternProvider patternInfo) { in setPatternInfo() argument
78 this.patternInfo = patternInfo; in setPatternInfo()
135 return patternInfo.containsSymbolType(AffixUtils.TYPE_CURRENCY_TRIPLE); in needsPlurals()
200 if (patternInfo.hasCurrencySign()) { in createConstantModifier()
358 && patternInfo.positiveHasPlusSign() == false; in enterCharSequenceMode()
361 boolean useNegativeAffixPattern = patternInfo.hasNegativeSubpattern() in enterCharSequenceMode()
362 && (isNegative || (patternInfo.negativeHasMinusSign() && plusReplacesMinusSign)); in enterCharSequenceMode()
387 length = patternInfo.length(flags) + (prependSign ? 1 : 0); in enterCharSequenceMode()
408 candidate = patternInfo.charAt(flags, index - 1); in charAt()
[all …]
DPatternStringParser.java516 ParsedPatternInfo patternInfo = parseToPatternInfo(pattern); in parseToExistingPropertiesImpl() local
517 patternInfoToProperties(properties, patternInfo, ignoreRounding); in parseToExistingPropertiesImpl()
521 …tic void patternInfoToProperties(DecimalFormatProperties properties, ParsedPatternInfo patternInfo, in patternInfoToProperties() argument
526 ParsedSubpatternInfo positive = patternInfo.positive; in patternInfoToProperties()
630 String posPrefix = patternInfo.getString(AffixPatternProvider.Flags.PREFIX); in patternInfoToProperties()
631 String posSuffix = patternInfo.getString(0); in patternInfoToProperties()
639 String rawPaddingString = patternInfo.getString(AffixPatternProvider.Flags.PADDING); in patternInfoToProperties()
664 if (patternInfo.negative != null) { in patternInfoToProperties()
665 properties.setNegativePrefixPattern(patternInfo in patternInfoToProperties()
667 …properties.setNegativeSuffixPattern(patternInfo.getString(AffixPatternProvider.Flags.NEGATIVE_SUBP… in patternInfoToProperties()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DMutablePatternModifier.java40 AffixPatternProvider patternInfo; field in MutablePatternModifier
79 public void setPatternInfo(AffixPatternProvider patternInfo) { in setPatternInfo() argument
80 this.patternInfo = patternInfo; in setPatternInfo()
137 return patternInfo.containsSymbolType(AffixUtils.TYPE_CURRENCY_TRIPLE); in needsPlurals()
202 if (patternInfo.hasCurrencySign()) { in createConstantModifier()
360 && patternInfo.positiveHasPlusSign() == false; in enterCharSequenceMode()
363 boolean useNegativeAffixPattern = patternInfo.hasNegativeSubpattern() in enterCharSequenceMode()
364 && (isNegative || (patternInfo.negativeHasMinusSign() && plusReplacesMinusSign)); in enterCharSequenceMode()
389 length = patternInfo.length(flags) + (prependSign ? 1 : 0); in enterCharSequenceMode()
410 candidate = patternInfo.charAt(flags, index - 1); in charAt()
[all …]
DPatternStringParser.java518 ParsedPatternInfo patternInfo = parseToPatternInfo(pattern); in parseToExistingPropertiesImpl() local
519 patternInfoToProperties(properties, patternInfo, ignoreRounding); in parseToExistingPropertiesImpl()
523 …tic void patternInfoToProperties(DecimalFormatProperties properties, ParsedPatternInfo patternInfo, in patternInfoToProperties() argument
528 ParsedSubpatternInfo positive = patternInfo.positive; in patternInfoToProperties()
632 String posPrefix = patternInfo.getString(AffixPatternProvider.Flags.PREFIX); in patternInfoToProperties()
633 String posSuffix = patternInfo.getString(0); in patternInfoToProperties()
641 String rawPaddingString = patternInfo.getString(AffixPatternProvider.Flags.PADDING); in patternInfoToProperties()
666 if (patternInfo.negative != null) { in patternInfoToProperties()
667 properties.setNegativePrefixPattern(patternInfo in patternInfoToProperties()
669 …properties.setNegativeSuffixPattern(patternInfo.getString(AffixPatternProvider.Flags.NEGATIVE_SUBP… in patternInfoToProperties()
/external/icu/icu4c/source/i18n/
Dnumber_patternmodifier.cpp20 void MutablePatternModifier::setPatternInfo(const AffixPatternProvider *patternInfo) { in setPatternInfo() argument
21 this->patternInfo = patternInfo; in setPatternInfo()
48 return patternInfo->containsSymbolType(AffixPatternType::TYPE_CURRENCY_TRIPLE, statusLocal); in needsPlurals()
107 if (patternInfo->hasCurrencySign()) { in createConstantModifier()
284 patternInfo->positiveHasPlusSign() == false; in enterCharSequenceMode()
287 bool useNegativeAffixPattern = patternInfo->hasNegativeSubpattern() && ( in enterCharSequenceMode()
288 isNegative || (patternInfo->negativeHasMinusSign() && plusReplacesMinusSign)); in enterCharSequenceMode()
313 fLength = patternInfo->length(fFlags) + (prependSign ? 1 : 0); in enterCharSequenceMode()
332 candidate = patternInfo->charAt(fFlags, index - 1); in charAt()
334 candidate = patternInfo->charAt(fFlags, index); in charAt()
Dnumber_grouping.cpp27 void Grouper::setLocaleData(const impl::ParsedPatternInfo &patternInfo) { in setLocaleData() argument
31 auto grouping1 = static_cast<int8_t> (patternInfo.positive.groupingSizes & 0xffff); in setLocaleData()
32 auto grouping2 = static_cast<int8_t> ((patternInfo.positive.groupingSizes >> 16) & 0xffff); in setLocaleData()
33 auto grouping3 = static_cast<int8_t> ((patternInfo.positive.groupingSizes >> 32) & 0xffff); in setLocaleData()
Dnumber_compact.cpp259 ParsedPatternInfo patternInfo; in precomputeAllModifiers() local
260 PatternParser::parseToPatternInfo(UnicodeString(patternString), patternInfo, status); in precomputeAllModifiers()
262 buildReference.setPatternInfo(&patternInfo); in precomputeAllModifiers()
265 info.numDigits = patternInfo.positive.integerTotal; in precomputeAllModifiers()
312 ParsedPatternInfo &patternInfo = const_cast<CompactHandler *>(this)->unsafePatternInfo; in processQuantity() local
313 PatternParser::parseToPatternInfo(UnicodeString(patternString), patternInfo, status); in processQuantity()
315 ->setPatternInfo(&patternInfo); in processQuantity()
316 numDigits = patternInfo.positive.integerTotal; in processQuantity()
Dnumber_patternstring.cpp17 …seToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo& patternInfo, UErrorCode &st… in parseToPatternInfo() argument
18 patternInfo.consumePattern(patternString, status); in parseToPatternInfo()
446 ParsedPatternInfo patternInfo; in parseToExistingPropertiesImpl() local
447 parseToPatternInfo(pattern, patternInfo, status); in parseToExistingPropertiesImpl()
449 patternInfoToProperties(properties, patternInfo, ignoreRounding, status); in parseToExistingPropertiesImpl()
453 ParsedPatternInfo& patternInfo, in patternInfoToProperties() argument
458 const ParsedSubpatternInfo &positive = patternInfo.positive; in patternInfoToProperties()
563 UnicodeString posPrefix = patternInfo.getString(AffixPatternProvider::AFFIX_PREFIX); in patternInfoToProperties()
564 UnicodeString posSuffix = patternInfo.getString(0); in patternInfoToProperties()
573 UnicodeString rawPaddingString = patternInfo.getString(AffixPatternProvider::AFFIX_PADDING); in patternInfoToProperties()
[all …]
Dnumber_patternmodifier.h96 void setPatternInfo(const AffixPatternProvider *patternInfo);
203 const AffixPatternProvider *patternInfo; variable
Dnumber_patternstring.h155 …parseToPatternInfo(const UnicodeString& patternString, ParsedPatternInfo &patternInfo, UErrorCode …
201 patternInfoToProperties(DecimalFormatProperties &properties, ParsedPatternInfo& patternInfo,
Dnumber_formatimpl.cpp202 auto patternInfo = new ParsedPatternInfo(); in macrosToMicroGenerator() local
203 fPatternInfo.adoptInstead(patternInfo); in macrosToMicroGenerator()
204 PatternParser::parseToPatternInfo(UnicodeString(pattern), *patternInfo, status); in macrosToMicroGenerator()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DCompactNotation.java97 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers() local
98 buildReference.setPatternInfo(patternInfo); in precomputeAllModifiers()
100 info.numDigits = patternInfo.positive.integerTotal; in precomputeAllModifiers()
139 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity() local
140 ((MutablePatternModifier) micros.modMiddle).setPatternInfo(patternInfo); in processQuantity()
141 numDigits = patternInfo.positive.integerTotal; in processQuantity()
DGrouper.java89 Grouper withLocaleData(ParsedPatternInfo patternInfo) { in withLocaleData() argument
94 byte grouping1 = (byte) (patternInfo.positive.groupingSizes & 0xffff); in withLocaleData()
95 byte grouping2 = (byte) ((patternInfo.positive.groupingSizes >>> 16) & 0xffff); in withLocaleData()
96 byte grouping3 = (byte) ((patternInfo.positive.groupingSizes >>> 32) & 0xffff); in withLocaleData()
DNumberFormatterImpl.java145 ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(pattern); in macrosToMicroGenerator() local
184 micros.grouping = micros.grouping.withLocaleData(patternInfo); in macrosToMicroGenerator()
228 … patternMod.setPatternInfo((macros.affixProvider != null) ? macros.affixProvider : patternInfo); in macrosToMicroGenerator()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DCompactNotation.java96 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in precomputeAllModifiers() local
97 buildReference.setPatternInfo(patternInfo); in precomputeAllModifiers()
99 info.numDigits = patternInfo.positive.integerTotal; in precomputeAllModifiers()
138 … ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(patternString); in processQuantity() local
139 ((MutablePatternModifier) micros.modMiddle).setPatternInfo(patternInfo); in processQuantity()
140 numDigits = patternInfo.positive.integerTotal; in processQuantity()
DGrouper.java87 Grouper withLocaleData(ParsedPatternInfo patternInfo) { in withLocaleData() argument
92 byte grouping1 = (byte) (patternInfo.positive.groupingSizes & 0xffff); in withLocaleData()
93 byte grouping2 = (byte) ((patternInfo.positive.groupingSizes >>> 16) & 0xffff); in withLocaleData()
94 byte grouping3 = (byte) ((patternInfo.positive.groupingSizes >>> 32) & 0xffff); in withLocaleData()
DNumberFormatterImpl.java144 ParsedPatternInfo patternInfo = PatternStringParser.parseToPatternInfo(pattern); in macrosToMicroGenerator() local
183 micros.grouping = micros.grouping.withLocaleData(patternInfo); in macrosToMicroGenerator()
227 … patternMod.setPatternInfo((macros.affixProvider != null) ? macros.affixProvider : patternInfo); in macrosToMicroGenerator()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_patternmodifier.cpp24 ParsedPatternInfo patternInfo; in testBasic() local
25 PatternParser::parseToPatternInfo(u"a0b", patternInfo, status); in testBasic()
27 mod.setPatternInfo(&patternInfo); in testBasic()
74 ParsedPatternInfo patternInfo; in testMutableEqualsImmutable() local
75 PatternParser::parseToPatternInfo("a0b;c-0d", patternInfo, status); in testMutableEqualsImmutable()
77 mod.setPatternInfo(&patternInfo); in testMutableEqualsImmutable()
Dnumbertest_patternstring.cpp74 ParsedPatternInfo patternInfo; in testExceptionOnInvalid() local
75 PatternParser::parseToPatternInfo(pattern, patternInfo, status); in testExceptionOnInvalid()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateIntervalFormatTest.java1265 …PatternInfo patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar… in TestSetIntervalPatternNoSideEffect() local
1266 String expectedPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect()
1269patternInfo = 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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateIntervalFormatTest.java1262 …PatternInfo patternInfo = new DateIntervalInfo(ULocale.ENGLISH).getIntervalPattern("yMd", Calendar… in TestSetIntervalPatternNoSideEffect() local
1263 String expectedPattern = patternInfo.getFirstPart() + patternInfo.getSecondPart(); in TestSetIntervalPatternNoSideEffect()
1266patternInfo = 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/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateIntervalInfo.java249 PatternInfo patternInfo = (PatternInfo)a; in equals() local
250 … return Utility.objectEquals(fIntervalPatternFirstPart, patternInfo.fIntervalPatternFirstPart) && in equals()
251 … Utility.objectEquals(fIntervalPatternSecondPart, patternInfo.fIntervalPatternSecondPart) && in equals()
252 fFirstDateInPtnIsLaterDate == patternInfo.fFirstDateInPtnIsLaterDate; in equals()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateIntervalInfo.java242 PatternInfo patternInfo = (PatternInfo)a; in equals() local
243 … return Utility.objectEquals(fIntervalPatternFirstPart, patternInfo.fIntervalPatternFirstPart) && in equals()
244 … Utility.objectEquals(fIntervalPatternSecondPart, patternInfo.fIntervalPatternSecondPart) && in equals()
245 fFirstDateInPtnIsLaterDate == patternInfo.fFirstDateInPtnIsLaterDate; in equals()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DFormatHandler.java2052 DateIntervalInfo.PatternInfo patternInfo[] = { in getTestObjects() local
2057 return patternInfo; in getTestObjects()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DFormatHandler.java2049 DateIntervalInfo.PatternInfo patternInfo[] = { in getTestObjects() local
2054 return patternInfo; in getTestObjects()

12