Home
last modified time | relevance | path

Searched refs:posPrefix (Results 1 – 18 of 18) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DPropertiesAffixPatternProvider.java10 private final String posPrefix; field in PropertiesAffixPatternProvider
42 posPrefix = ppo; in PropertiesAffixPatternProvider()
44 posPrefix = ppp; in PropertiesAffixPatternProvider()
47 posPrefix = ""; in PropertiesAffixPatternProvider()
96 return posPrefix; in getString()
106 return AffixUtils.containsType(posPrefix, AffixUtils.TYPE_PLUS_SIGN) in positiveHasPlusSign()
124 return AffixUtils.hasCurrencySymbols(posPrefix) || AffixUtils.hasCurrencySymbols(posSuffix) in hasCurrencySign()
130 return AffixUtils.containsType(posPrefix, type) || AffixUtils.containsType(posSuffix, type) in containsSymbolType()
143 + posPrefix in toString()
DPatternStringParser.java658 String posPrefix = patternInfo.getString(AffixPatternProvider.Flags.PREFIX); in patternInfoToProperties() local
665 + AffixUtils.estimateLength(posPrefix) in patternInfoToProperties()
691 properties.setPositivePrefixPattern(posPrefix); in patternInfoToProperties()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DPropertiesAffixPatternProvider.java6 private final String posPrefix; field in PropertiesAffixPatternProvider
38 posPrefix = ppo; in PropertiesAffixPatternProvider()
40 posPrefix = ppp; in PropertiesAffixPatternProvider()
43 posPrefix = ""; in PropertiesAffixPatternProvider()
92 return posPrefix; in getString()
102 return AffixUtils.containsType(posPrefix, AffixUtils.TYPE_PLUS_SIGN) in positiveHasPlusSign()
120 return AffixUtils.hasCurrencySymbols(posPrefix) || AffixUtils.hasCurrencySymbols(posSuffix) in hasCurrencySign()
126 return AffixUtils.containsType(posPrefix, type) || AffixUtils.containsType(posSuffix, type) in containsSymbolType()
139 + posPrefix in toString()
DPatternStringParser.java652 String posPrefix = patternInfo.getString(AffixPatternProvider.Flags.PREFIX); in patternInfoToProperties() local
659 + AffixUtils.estimateLength(posPrefix) in patternInfoToProperties()
685 properties.setPositivePrefixPattern(posPrefix); in patternInfoToProperties()
/external/icu/icu4c/source/i18n/
Dnumber_mapper.cpp347 posPrefix = ppo; in setTo()
349 posPrefix = ppp; in setTo()
352 posPrefix = u""; in setTo()
402 return posPrefix; in getStringInternal()
413 return AffixUtils::containsType(posPrefix, TYPE_PLUS_SIGN, localStatus) || in positiveHasPlusSign()
430 return AffixUtils::hasCurrencySymbols(posPrefix, localStatus) || in hasCurrencySign()
437 return AffixUtils::containsType(posPrefix, type, status) || in containsSymbolType()
Dnumparse_affixes.cpp312 AffixPatternMatcher* posPrefix = nullptr; in createAffixMatchers() local
336 posPrefix = prefix; in createAffixMatchers()
338 } else if (equals(prefix, posPrefix) && equals(suffix, posSuffix)) { in createAffixMatchers()
351 if (signum == 1 || !equals(prefix, posPrefix)) { in createAffixMatchers()
Dnumber_mapper.h62 UnicodeString posPrefix;
Dnumber_patternstring.cpp588 UnicodeString posPrefix = patternInfo.getString(AffixPatternProvider::AFFIX_PREFIX); in patternInfoToProperties() local
595 AffixUtils::estimateLength(posPrefix, status) + in patternInfoToProperties()
620 properties.positivePrefixPattern = posPrefix; in patternInfoToProperties()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DAffixMatcher.java97 AffixPatternMatcher posPrefix = null; in createMatchers() local
125 posPrefix = prefix; in createMatchers()
127 } else if (Objects.equals(prefix, posPrefix) && Objects.equals(suffix, posSuffix)) { in createMatchers()
140 if (signum == 1 || !Objects.equals(prefix, posPrefix)) { in createMatchers()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DAffixMatcher.java99 AffixPatternMatcher posPrefix = null; in createMatchers() local
127 posPrefix = prefix; in createMatchers()
129 } else if (Objects.equals(prefix, posPrefix) && Objects.equals(suffix, posSuffix)) { in createMatchers()
142 if (signum == 1 || !Objects.equals(prefix, posPrefix)) { in createMatchers()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java193 String posPrefix; in TestAPI() local
195 posPrefix = pat.getPositivePrefix(); in TestAPI()
196 logln("Positive prefix (should be +): " + posPrefix); in TestAPI()
197 assertEquals("ERROR: setPositivePrefix() failed", "+", posPrefix); in TestAPI()
DIntlTestDecimalFormatAPIC.java152 String posPrefix; in TestAPI() local
154 posPrefix = pat.getPositivePrefix(); in TestAPI()
155 logln("Positive prefix (should be +): " + posPrefix); in TestAPI()
156 assertEquals("ERROR: setPositivePrefix() failed", "+", posPrefix); in TestAPI()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java190 String posPrefix; in TestAPI() local
192 posPrefix = pat.getPositivePrefix(); in TestAPI()
193 logln("Positive prefix (should be +): " + posPrefix); in TestAPI()
194 assertEquals("ERROR: setPositivePrefix() failed", "+", posPrefix); in TestAPI()
DIntlTestDecimalFormatAPIC.java149 String posPrefix; in TestAPI() local
151 posPrefix = pat.getPositivePrefix(); in TestAPI()
152 logln("Positive prefix (should be +): " + posPrefix); in TestAPI()
153 assertEquals("ERROR: setPositivePrefix() failed", "+", posPrefix); in TestAPI()
/external/icu/icu4c/source/test/intltest/
Ddcfmapts.cpp277 UnicodeString posPrefix; in testAPI() local
279 posPrefix = pat.getPositivePrefix(posPrefix); in testAPI()
280 logln((UnicodeString)"Positive prefix (should be +): " + posPrefix); in testAPI()
281 if(posPrefix != "+") { in testAPI()
Dloctest.cpp1159 UnicodeString posPrefix(u"\u0E3F"); in TestThaiCurrencyFormat() local
1167 if (thaiCurrency->getPositivePrefix(temp) != posPrefix) in TestThaiCurrencyFormat()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDecimalFormat_ICU58_Android.java2427 boolean status[], Currency currency[], String negPrefix, String negSuffix, String posPrefix, in subparse() argument
2439 …int posMatch = compareAffix(text, position, false, true, posPrefix, parseComplexCurrency, type, cu… in subparse()
6116 public AffixForCurrency(String negPrefix, String negSuffix, String posPrefix, in AffixForCurrency() argument
6120 posPrefixPatternForCurrency = posPrefix; in AffixForCurrency()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDecimalFormat_ICU58_Android.java2415 boolean status[], Currency currency[], String negPrefix, String negSuffix, String posPrefix, in subparse() argument
2427 …int posMatch = compareAffix(text, position, false, true, posPrefix, parseComplexCurrency, type, cu… in subparse()
6012 public AffixForCurrency(String negPrefix, String negSuffix, String posPrefix, in AffixForCurrency() argument
6016 posPrefixPatternForCurrency = posPrefix; in AffixForCurrency()