Home
last modified time | relevance | path

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

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DPropertiesAffixPatternProvider.java10 private final String posPrefix; field in PropertiesAffixPatternProvider
49 posPrefix = ppo; in PropertiesAffixPatternProvider()
51 posPrefix = ppp; in PropertiesAffixPatternProvider()
54 posPrefix = ""; in PropertiesAffixPatternProvider()
111 return posPrefix; in getString()
121 return AffixUtils.containsType(posPrefix, AffixUtils.TYPE_PLUS_SIGN) in positiveHasPlusSign()
129 negPrefix.length() != posPrefix.length() + 1 || in hasNegativeSubpattern()
130 !negPrefix.regionMatches(1, posPrefix, 0, posPrefix.length()) || in hasNegativeSubpattern()
148 return AffixUtils.containsType(posPrefix, type) || AffixUtils.containsType(posSuffix, type) in containsSymbolType()
161 + 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()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DPropertiesAffixPatternProvider.java6 private final String posPrefix; field in PropertiesAffixPatternProvider
46 posPrefix = ppo; in PropertiesAffixPatternProvider()
48 posPrefix = ppp; in PropertiesAffixPatternProvider()
51 posPrefix = ""; in PropertiesAffixPatternProvider()
111 return posPrefix; in getString()
121 return AffixUtils.containsType(posPrefix, AffixUtils.TYPE_PLUS_SIGN) in positiveHasPlusSign()
129 negPrefix.length() != posPrefix.length() + 1 || in hasNegativeSubpattern()
130 !negPrefix.regionMatches(1, posPrefix, 0, posPrefix.length()) || in hasNegativeSubpattern()
148 return AffixUtils.containsType(posPrefix, type) || AffixUtils.containsType(posSuffix, type) in containsSymbolType()
166 + posPrefix in toString()
DPatternStringParser.java704 String posPrefix = patternInfo.getString(AffixPatternProvider.Flags.PREFIX); in patternInfoToProperties() local
711 + AffixUtils.estimateLength(posPrefix) in patternInfoToProperties()
737 properties.setPositivePrefixPattern(posPrefix); in patternInfoToProperties()
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumber_mapper.cpp342 posPrefix = ppo; in setTo()
344 posPrefix = ppp; in setTo()
347 posPrefix = u""; in setTo()
405 return posPrefix; in getStringInternal()
416 return AffixUtils::containsType(posPrefix, TYPE_PLUS_SIGN, localStatus) || in positiveHasPlusSign()
423 negPrefix.tempSubString(1) != posPrefix || in hasNegativeSubpattern()
439 return AffixUtils::containsType(posPrefix, type, status) || in containsSymbolType()
Dnumparse_affixes.cpp279 AffixPatternMatcher* posPrefix = nullptr; in createAffixMatchers() local
315 posPrefix = prefix; in createAffixMatchers()
317 } else if (equals(prefix, posPrefix) && equals(suffix, posSuffix)) { in createAffixMatchers()
330 if (type == PATTERN_SIGN_TYPE_POS || !equals(prefix, posPrefix)) { in createAffixMatchers()
Dnumber_mapper.h60 UnicodeString posPrefix;
Dnumber_patternstring.cpp589 UnicodeString posPrefix = patternInfo.getString(AffixPatternProvider::AFFIX_PREFIX); in patternInfoToProperties() local
596 AffixUtils::estimateLength(posPrefix, status) + in patternInfoToProperties()
621 properties.positivePrefixPattern = posPrefix; in patternInfoToProperties()
/third_party/node/deps/icu-small/source/i18n/
Dnumber_mapper.cpp346 posPrefix = ppo; in setTo()
348 posPrefix = ppp; in setTo()
351 posPrefix = u""; in setTo()
412 return posPrefix; in getStringInternal()
423 return AffixUtils::containsType(posPrefix, TYPE_PLUS_SIGN, localStatus) || in positiveHasPlusSign()
430 negPrefix.tempSubString(1) != posPrefix || in hasNegativeSubpattern()
446 return AffixUtils::containsType(posPrefix, type, status) || in containsSymbolType()
Dnumparse_affixes.cpp283 AffixPatternMatcher* posPrefix = nullptr; in createAffixMatchers() local
329 posPrefix = prefix; in createAffixMatchers()
331 } else if (equals(prefix, posPrefix) && equals(suffix, posSuffix)) { in createAffixMatchers()
344 if (type == PATTERN_SIGN_TYPE_POS || !equals(prefix, posPrefix)) { in createAffixMatchers()
Dnumber_mapper.h62 UnicodeString posPrefix;
Dnumber_patternstring.cpp637 UnicodeString posPrefix = patternInfo.getString(AffixPatternProvider::AFFIX_PREFIX); in patternInfoToProperties() local
644 AffixUtils::estimateLength(posPrefix, status) + in patternInfoToProperties()
669 properties.positivePrefixPattern = posPrefix; in patternInfoToProperties()
/third_party/icu/icu4c/source/i18n/
Dnumber_mapper.cpp346 posPrefix = ppo; in setTo()
348 posPrefix = ppp; in setTo()
351 posPrefix = u""; in setTo()
412 return posPrefix; in getStringInternal()
423 return AffixUtils::containsType(posPrefix, TYPE_PLUS_SIGN, localStatus) || in positiveHasPlusSign()
430 negPrefix.tempSubString(1) != posPrefix || in hasNegativeSubpattern()
446 return AffixUtils::containsType(posPrefix, type, status) || in containsSymbolType()
Dnumparse_affixes.cpp283 AffixPatternMatcher* posPrefix = nullptr; in createAffixMatchers() local
329 posPrefix = prefix; in createAffixMatchers()
331 } else if (equals(prefix, posPrefix) && equals(suffix, posSuffix)) { in createAffixMatchers()
344 if (type == PATTERN_SIGN_TYPE_POS || !equals(prefix, posPrefix)) { in createAffixMatchers()
Dnumber_mapper.h62 UnicodeString posPrefix;
Dnumber_patternstring.cpp637 UnicodeString posPrefix = patternInfo.getString(AffixPatternProvider::AFFIX_PREFIX); in patternInfoToProperties() local
644 AffixUtils::estimateLength(posPrefix, status) + in patternInfoToProperties()
669 properties.positivePrefixPattern = posPrefix; in patternInfoToProperties()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DAffixMatcher.java94 AffixPatternMatcher posPrefix = null; in createMatchers() local
135 posPrefix = prefix; in createMatchers()
137 } else if (Objects.equals(prefix, posPrefix) && Objects.equals(suffix, posSuffix)) { in createMatchers()
150 if (type == PatternSignType.POS || !Objects.equals(prefix, posPrefix)) { in createMatchers()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/
DAffixMatcher.java96 AffixPatternMatcher posPrefix = null; in createMatchers() local
133 posPrefix = prefix; in createMatchers()
135 } else if (Objects.equals(prefix, posPrefix) && Objects.equals(suffix, posSuffix)) { in createMatchers()
148 if (type == PatternSignType.POS || !Objects.equals(prefix, posPrefix)) { in createMatchers()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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()
/third_party/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()
/third_party/icu/icu4c/source/test/intltest/
Ddcfmapts.cpp288 UnicodeString posPrefix; in testAPI() local
290 posPrefix = pat.getPositivePrefix(posPrefix); in testAPI()
291 logln((UnicodeString)"Positive prefix (should be +): " + posPrefix); in testAPI()
292 if(posPrefix != "+") { in testAPI()
Dloctest.cpp1197 UnicodeString posPrefix(u"\u0E3F"); in TestThaiCurrencyFormat() local
1205 if (thaiCurrency->getPositivePrefix(temp) != posPrefix) in TestThaiCurrencyFormat()