/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | AffixUtils.java | 309 CharSequence affixPattern, in unescape() argument 313 assert affixPattern != null; in unescape() 316 while (hasNext(tag, affixPattern)) { in unescape() 317 tag = nextToken(tag, affixPattern); in unescape() 346 CharSequence affixPattern, in unescapedCount() argument 351 while (hasNext(tag, affixPattern)) { in unescapedCount() 352 tag = nextToken(tag, affixPattern); in unescapedCount() 378 public static boolean containsType(CharSequence affixPattern, int type) { in containsType() argument 379 if (affixPattern == null || affixPattern.length() == 0) { in containsType() 383 while (hasNext(tag, affixPattern)) { in containsType() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | AffixUtils.java | 317 CharSequence affixPattern, in unescape() argument 321 assert affixPattern != null; in unescape() 324 while (hasNext(tag, affixPattern)) { in unescape() 325 tag = nextToken(tag, affixPattern); in unescape() 354 CharSequence affixPattern, in unescapedCount() argument 359 while (hasNext(tag, affixPattern)) { in unescapedCount() 360 tag = nextToken(tag, affixPattern); in unescapedCount() 386 public static boolean containsType(CharSequence affixPattern, int type) { in containsType() argument 387 if (affixPattern == null || affixPattern.length() == 0) { in containsType() 391 while (hasNext(tag, affixPattern)) { in containsType() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/ |
D | AffixPatternMatcher.java | 17 private final String affixPattern; field in AffixPatternMatcher 24 private AffixPatternMatcher(String affixPattern) { in AffixPatternMatcher() argument 25 this.affixPattern = affixPattern; in AffixPatternMatcher() 33 String affixPattern, in fromAffixPattern() argument 36 if (affixPattern.isEmpty()) { in fromAffixPattern() 40 AffixPatternMatcher series = new AffixPatternMatcher(affixPattern); in fromAffixPattern() 45 AffixUtils.iterateWithConsumer(affixPattern, series); in fromAffixPattern() 111 return affixPattern; in getPattern() 120 return affixPattern.equals(((AffixPatternMatcher) other).affixPattern); in equals() 125 return affixPattern.hashCode(); in hashCode() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
D | AffixPatternMatcher.java | 15 private final String affixPattern; field in AffixPatternMatcher 22 private AffixPatternMatcher(String affixPattern) { in AffixPatternMatcher() argument 23 this.affixPattern = affixPattern; in AffixPatternMatcher() 31 String affixPattern, in fromAffixPattern() argument 34 if (affixPattern.isEmpty()) { in fromAffixPattern() 38 AffixPatternMatcher series = new AffixPatternMatcher(affixPattern); in fromAffixPattern() 43 AffixUtils.iterateWithConsumer(affixPattern, series); in fromAffixPattern() 109 return affixPattern; in getPattern() 118 return affixPattern.equals(((AffixPatternMatcher) other).affixPattern); in equals() 123 return affixPattern.hashCode(); in hashCode() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | number_affixutils.cpp | 160 AffixUtils::unescape(const UnicodeString &affixPattern, NumberStringBuilder &output, int32_t positi… in unescape() argument 164 while (hasNext(tag, affixPattern)) { in unescape() 165 tag = nextToken(tag, affixPattern, status); in unescape() 180 int32_t AffixUtils::unescapedCodePointCount(const UnicodeString &affixPattern, in unescapedCodePointCount() argument 184 while (hasNext(tag, affixPattern)) { in unescapedCodePointCount() 185 tag = nextToken(tag, affixPattern, status); in unescapedCodePointCount() 199 AffixUtils::containsType(const UnicodeString &affixPattern, AffixPatternType type, UErrorCode &stat… in containsType() argument 200 if (affixPattern.length() == 0) { in containsType() 204 while (hasNext(tag, affixPattern)) { in containsType() 205 tag = nextToken(tag, affixPattern, status); in containsType() [all …]
|
D | number_affixutils.h | 146 static int32_t unescape(const UnicodeString& affixPattern, NumberStringBuilder& output, 157 static int32_t unescapedCodePointCount(const UnicodeString& affixPattern, 168 …static bool containsType(const UnicodeString& affixPattern, AffixPatternType type, UErrorCode& sta… 176 static bool hasCurrencySymbols(const UnicodeString& affixPattern, UErrorCode& status); 186 static UnicodeString replaceType(const UnicodeString& affixPattern, AffixPatternType type, 193 static bool containsOnlySymbolsAndIgnorables(const UnicodeString& affixPattern, 199 static void iterateWithConsumer(const UnicodeString& affixPattern, TokenConsumer& consumer,
|
D | numparse_affixes.cpp | 225 AffixPatternMatcher AffixPatternMatcher::fromAffixPattern(const UnicodeString& affixPattern, in fromAffixPattern() argument 229 if (affixPattern.isEmpty()) { in fromAffixPattern() 242 AffixPatternMatcherBuilder builder(affixPattern, tokenWarehouse, ignorables); in fromAffixPattern() 243 AffixUtils::iterateWithConsumer(affixPattern, builder, status); in fromAffixPattern()
|
D | numparse_affixes.h | 181 static AffixPatternMatcher fromAffixPattern(const UnicodeString& affixPattern,
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_parse.cpp | 321 const char16_t* affixPattern; in testAffixPatternMatcher() member 332 UnicodeString affixPattern(cas.affixPattern); in testAffixPatternMatcher() local 338 affixPattern, warehouse, parseFlags, &success, status); in testAffixPatternMatcher() 342 … assertEquals(affixPattern + " " + cas.exactMatch, cas.expectedMatcherLength, matcher.length()); in testAffixPatternMatcher() 348 … assertEquals(affixPattern + " " + cas.exactMatch, sampleParseableString.length(), result.charEnd); in testAffixPatternMatcher()
|
D | numberformat2test.cpp | 1507 AffixPattern affixPattern; in TestAffixPatternParser() local 1509 AffixPattern::parseAffixString(str, affixPattern, status), in TestAffixPatternParser() 1514 affixPattern.toString(formattedStr); in TestAffixPatternParser() 1522 assertTrue("", affixPattern.equals(userAffixPattern)); in TestAffixPatternParser() 1534 assertTrue("", affixPattern.usesCurrency()); in TestAffixPatternParser() 1535 assertTrue("", affixPattern.usesPercent()); in TestAffixPatternParser() 1536 assertFalse("", affixPattern.usesPermill()); in TestAffixPatternParser() 1570 affixPattern.remove(); in TestAffixPatternParser() 1572 AffixPattern::parseAffixString(str, affixPattern, status), in TestAffixPatternParser() 1577 assertFalse("", affixPattern.usesCurrency()); in TestAffixPatternParser() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberParserTest.java | 325 String affixPattern = (String) cas[1]; in testAffixPatternMatcher() local 331 .fromAffixPattern(affixPattern, factory, parseFlags); in testAffixPatternMatcher() 334 assertEquals(affixPattern + " " + exactMatch, expectedMatcherLength, matcher.length()); in testAffixPatternMatcher() 340 assertEquals(affixPattern + " " + exactMatch, in testAffixPatternMatcher()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberParserTest.java | 322 String affixPattern = (String) cas[1]; in testAffixPatternMatcher() local 328 .fromAffixPattern(affixPattern, factory, parseFlags); in testAffixPatternMatcher() 331 assertEquals(affixPattern + " " + exactMatch, expectedMatcherLength, matcher.length()); in testAffixPatternMatcher() 337 assertEquals(affixPattern + " " + exactMatch, in testAffixPatternMatcher()
|