/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
H A D | AffixPatternMatcher.java | 19 private IgnorablesMatcher ignorables; field in AffixPatternMatcher 40 series.ignorables = (0 != (parseFlags & ParsingUtils.PARSE_FLAG_EXACT_AFFIX)) ? null in fromAffixPattern() 41 : factory.ignorables(); in fromAffixPattern() 47 series.ignorables = null; in fromAffixPattern() 62 // Add an ignorables matcher between tokens except between two literals, and don't put two in consumeToken() 63 // ignorables matchers in a row. in consumeToken() 64 if (ignorables != null in consumeToken() 66 && (lastTypeOrCp < 0 || !ignorables.getSet().contains(lastTypeOrCp))) { in consumeToken() 67 addMatcher(ignorables); in consumeToken() 97 } else if (ignorables ! in consumeToken() [all...] |
H A D | NumberParserImpl.java | 44 IgnorablesMatcher ignorables = IgnorablesMatcher.getInstance(parseFlags); in createSimpleParser() 49 factory.ignorables = ignorables; in createSimpleParser() 54 AffixMatcher.createMatchers(patternInfo, parser, factory, ignorables, parseFlags); in createSimpleParser() 58 parser.addMatcher(ignorables); in createSimpleParser() 185 IgnorablesMatcher ignorables = IgnorablesMatcher.getInstance(parseFlags); in createParserFromProperties() 190 factory.ignorables = ignorables; in createParserFromProperties() 199 AffixMatcher.createMatchers(affixProvider, parser, factory, ignorables, parseFlags); in createParserFromProperties() 233 if (padString != null && !ignorables in createParserFromProperties() [all...] |
H A D | AffixTokenMatcherFactory.java | 17 public IgnorablesMatcher ignorables; field in AffixTokenMatcherFactory 41 public IgnorablesMatcher ignorables() { in ignorables() method in AffixTokenMatcherFactory 42 return ignorables; in ignorables()
|
H A D | AffixMatcher.java | 49 IgnorablesMatcher ignorables, in isInteresting() 61 && AffixUtils.containsOnlySymbolsAndIgnorables(posPrefixString, ignorables.getSet()) in isInteresting() 62 && AffixUtils.containsOnlySymbolsAndIgnorables(posSuffixString, ignorables.getSet()) in isInteresting() 63 && AffixUtils.containsOnlySymbolsAndIgnorables(negPrefixString, ignorables.getSet()) in isInteresting() 64 && AffixUtils.containsOnlySymbolsAndIgnorables(negSuffixString, ignorables.getSet()) in isInteresting() 71 // The affixes contain only symbols and ignorables. in isInteresting() 82 IgnorablesMatcher ignorables, in createMatchers() 84 if (!isInteresting(patternInfo, ignorables, parseFlags)) { in createMatchers() 47 isInteresting( AffixPatternProvider patternInfo, IgnorablesMatcher ignorables, int parseFlags) isInteresting() argument 78 createMatchers( AffixPatternProvider patternInfo, NumberParserImpl output, AffixTokenMatcherFactory factory, IgnorablesMatcher ignorables, int parseFlags) createMatchers() argument
|
H A D | IgnorablesMatcher.java | 34 private IgnorablesMatcher(UnicodeSet ignorables) { in IgnorablesMatcher() argument 35 super("", ignorables); in IgnorablesMatcher()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/ |
H A D | AffixPatternMatcher.java | 21 private IgnorablesMatcher ignorables; field in AffixPatternMatcher 42 series.ignorables = (0 != (parseFlags & ParsingUtils.PARSE_FLAG_EXACT_AFFIX)) ? null in fromAffixPattern() 43 : factory.ignorables(); in fromAffixPattern() 49 series.ignorables = null; in fromAffixPattern() 64 // Add an ignorables matcher between tokens except between two literals, and don't put two in consumeToken() 65 // ignorables matchers in a row. in consumeToken() 66 if (ignorables != null in consumeToken() 68 && (lastTypeOrCp < 0 || !ignorables.getSet().contains(lastTypeOrCp))) { in consumeToken() 69 addMatcher(ignorables); in consumeToken() 99 } else if (ignorables ! in consumeToken() [all...] |
H A D | NumberParserImpl.java | 46 IgnorablesMatcher ignorables = IgnorablesMatcher.getInstance(parseFlags); in createSimpleParser() 51 factory.ignorables = ignorables; in createSimpleParser() 56 AffixMatcher.createMatchers(patternInfo, parser, factory, ignorables, parseFlags); in createSimpleParser() 60 parser.addMatcher(ignorables); in createSimpleParser() 187 IgnorablesMatcher ignorables = IgnorablesMatcher.getInstance(parseFlags); in createParserFromProperties() 192 factory.ignorables = ignorables; in createParserFromProperties() 201 AffixMatcher.createMatchers(affixProvider, parser, factory, ignorables, parseFlags); in createParserFromProperties() 235 if (padString != null && !ignorables in createParserFromProperties() [all...] |
H A D | AffixTokenMatcherFactory.java | 19 public IgnorablesMatcher ignorables; field in AffixTokenMatcherFactory 43 public IgnorablesMatcher ignorables() { in ignorables() method in AffixTokenMatcherFactory 44 return ignorables; in ignorables()
|
H A D | AffixMatcher.java | 51 IgnorablesMatcher ignorables, in isInteresting() 63 && AffixUtils.containsOnlySymbolsAndIgnorables(posPrefixString, ignorables.getSet()) in isInteresting() 64 && AffixUtils.containsOnlySymbolsAndIgnorables(posSuffixString, ignorables.getSet()) in isInteresting() 65 && AffixUtils.containsOnlySymbolsAndIgnorables(negPrefixString, ignorables.getSet()) in isInteresting() 66 && AffixUtils.containsOnlySymbolsAndIgnorables(negSuffixString, ignorables.getSet()) in isInteresting() 73 // The affixes contain only symbols and ignorables. in isInteresting() 84 IgnorablesMatcher ignorables, in createMatchers() 86 if (!isInteresting(patternInfo, ignorables, parseFlags)) { in createMatchers() 49 isInteresting( AffixPatternProvider patternInfo, IgnorablesMatcher ignorables, int parseFlags) isInteresting() argument 80 createMatchers( AffixPatternProvider patternInfo, NumberParserImpl output, AffixTokenMatcherFactory factory, IgnorablesMatcher ignorables, int parseFlags) createMatchers() argument
|
H A D | IgnorablesMatcher.java | 36 private IgnorablesMatcher(UnicodeSet ignorables) { in IgnorablesMatcher() argument 37 super("", ignorables); in IgnorablesMatcher()
|
/third_party/icu/icu4c/source/i18n/ |
H A D | numparse_affixes.cpp | 63 IgnorablesMatcher* ignorables) in AffixPatternMatcherBuilder() 68 fIgnorables(ignorables) {} in AffixPatternMatcherBuilder() 73 // Add an ignorables matcher between tokens except between two literals, and don't put two in consumeToken() 74 // ignorables matchers in a row. in consumeToken() 109 // No action necessary: the ignorables matcher has already been added. in consumeToken() 157 IgnorablesMatcher& AffixTokenMatcherWarehouse::ignorables() { in ignorables() function in AffixTokenMatcherWarehouse 158 return fSetupData->ignorables; in ignorables() 207 IgnorablesMatcher* ignorables; in fromAffixPattern() local 209 ignorables = nullptr; in fromAffixPattern() 211 ignorables in fromAffixPattern() 61 AffixPatternMatcherBuilder(const UnicodeString& pattern, AffixTokenMatcherWarehouse& warehouse, IgnorablesMatcher* ignorables) AffixPatternMatcherBuilder() argument 237 isInteresting(const AffixPatternProvider& patternInfo, const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, UErrorCode& status) isInteresting() argument 267 createAffixMatchers(const AffixPatternProvider& patternInfo, MutableMatcherCollection& output, const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, UErrorCode& status) createAffixMatchers() argument [all...] |
H A D | numparse_impl.cpp | 42 parser->fLocalMatchers.ignorables = {parseFlags}; in createSimpleParser() 43 IgnorablesMatcher& ignorables = parser->fLocalMatchers.ignorables; in createSimpleParser() local 55 currencySymbols, symbols, ignorables, locale, parseFlags}; in createSimpleParser() 59 patternInfo, *parser, ignorables, parseFlags, status); in createSimpleParser() 64 parser->addMatcher(parser->fLocalMatchers.ignorables); in createSimpleParser() 124 parser->fLocalMatchers.ignorables = {parseFlags}; in createParserFromProperties() 125 IgnorablesMatcher& ignorables = parser->fLocalMatchers.ignorables; in createParserFromProperties() local 133 currencySymbols, symbols, ignorables, local in createParserFromProperties() [all...] |
H A D | numparse_affixes.h | 67 IgnorablesMatcher& ignorables; member 100 IgnorablesMatcher& ignorables(); 128 IgnorablesMatcher* ignorables); 205 const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, 220 static bool isInteresting(const AffixPatternProvider& patternInfo, const IgnorablesMatcher& ignorables,
|
H A D | numparse_impl.h | 75 IgnorablesMatcher ignorables; member
|
/third_party/node/deps/icu-small/source/i18n/ |
H A D | numparse_affixes.cpp | 63 IgnorablesMatcher* ignorables) in AffixPatternMatcherBuilder() 68 fIgnorables(ignorables) {} in AffixPatternMatcherBuilder() 73 // Add an ignorables matcher between tokens except between two literals, and don't put two in consumeToken() 74 // ignorables matchers in a row. in consumeToken() 109 // No action necessary: the ignorables matcher has already been added. in consumeToken() 157 IgnorablesMatcher& AffixTokenMatcherWarehouse::ignorables() { in ignorables() function in AffixTokenMatcherWarehouse 158 return fSetupData->ignorables; in ignorables() 207 IgnorablesMatcher* ignorables; in fromAffixPattern() local 209 ignorables = nullptr; in fromAffixPattern() 211 ignorables in fromAffixPattern() 61 AffixPatternMatcherBuilder(const UnicodeString& pattern, AffixTokenMatcherWarehouse& warehouse, IgnorablesMatcher* ignorables) AffixPatternMatcherBuilder() argument 237 isInteresting(const AffixPatternProvider& patternInfo, const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, UErrorCode& status) isInteresting() argument 267 createAffixMatchers(const AffixPatternProvider& patternInfo, MutableMatcherCollection& output, const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, UErrorCode& status) createAffixMatchers() argument [all...] |
H A D | numparse_impl.cpp | 42 parser->fLocalMatchers.ignorables = {parseFlags}; in createSimpleParser() 43 IgnorablesMatcher& ignorables = parser->fLocalMatchers.ignorables; in createSimpleParser() local 55 currencySymbols, symbols, ignorables, locale, parseFlags}; in createSimpleParser() 59 patternInfo, *parser, ignorables, parseFlags, status); in createSimpleParser() 64 parser->addMatcher(parser->fLocalMatchers.ignorables); in createSimpleParser() 124 parser->fLocalMatchers.ignorables = {parseFlags}; in createParserFromProperties() 125 IgnorablesMatcher& ignorables = parser->fLocalMatchers.ignorables; in createParserFromProperties() local 133 currencySymbols, symbols, ignorables, local in createParserFromProperties() [all...] |
H A D | numparse_affixes.h | 67 IgnorablesMatcher& ignorables; member 100 IgnorablesMatcher& ignorables(); 128 IgnorablesMatcher* ignorables); 205 const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, 220 static bool isInteresting(const AffixPatternProvider& patternInfo, const IgnorablesMatcher& ignorables,
|
H A D | numparse_impl.h | 75 IgnorablesMatcher ignorables; member
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | numparse_affixes.cpp | 63 IgnorablesMatcher* ignorables) in AffixPatternMatcherBuilder() 68 fIgnorables(ignorables) {} in AffixPatternMatcherBuilder() 73 // Add an ignorables matcher between tokens except between two literals, and don't put two in consumeToken() 74 // ignorables matchers in a row. in consumeToken() 109 // No action necessary: the ignorables matcher has already been added. in consumeToken() 157 IgnorablesMatcher& AffixTokenMatcherWarehouse::ignorables() { in ignorables() function in AffixTokenMatcherWarehouse 158 return fSetupData->ignorables; in ignorables() 203 IgnorablesMatcher* ignorables; in fromAffixPattern() local 205 ignorables = nullptr; in fromAffixPattern() 207 ignorables in fromAffixPattern() 61 AffixPatternMatcherBuilder(const UnicodeString& pattern, AffixTokenMatcherWarehouse& warehouse, IgnorablesMatcher* ignorables) AffixPatternMatcherBuilder() argument 233 isInteresting(const AffixPatternProvider& patternInfo, const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, UErrorCode& status) isInteresting() argument 263 createAffixMatchers(const AffixPatternProvider& patternInfo, MutableMatcherCollection& output, const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, UErrorCode& status) createAffixMatchers() argument [all...] |
H A D | numparse_impl.cpp | 42 parser->fLocalMatchers.ignorables = {parseFlags}; in createSimpleParser() 43 IgnorablesMatcher& ignorables = parser->fLocalMatchers.ignorables; in createSimpleParser() local 55 currencySymbols, symbols, ignorables, locale, parseFlags}; in createSimpleParser() 59 patternInfo, *parser, ignorables, parseFlags, status); in createSimpleParser() 64 parser->addMatcher(parser->fLocalMatchers.ignorables); in createSimpleParser() 124 parser->fLocalMatchers.ignorables = {parseFlags}; in createParserFromProperties() 125 IgnorablesMatcher& ignorables = parser->fLocalMatchers.ignorables; in createParserFromProperties() local 133 currencySymbols, symbols, ignorables, local in createParserFromProperties() [all...] |
H A D | numparse_affixes.h | 67 IgnorablesMatcher& ignorables; member 100 IgnorablesMatcher& ignorables(); 126 IgnorablesMatcher* ignorables); 203 const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, 216 static bool isInteresting(const AffixPatternProvider& patternInfo, const IgnorablesMatcher& ignorables,
|
H A D | numparse_impl.h | 75 IgnorablesMatcher ignorables; member
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/ |
H A D | AffixUtilsTest.java | 231 UnicodeSet ignorables = new UnicodeSet("[:whitespace:]"); in testWithoutSymbolsOrIgnorables() 235 assertEquals("Contains only symbols and ignorables: " + input, in testWithoutSymbolsOrIgnorables() 237 AffixUtils.containsOnlySymbolsAndIgnorables(input, ignorables)); in testWithoutSymbolsOrIgnorables()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
H A D | AffixUtilsTest.java | 231 UnicodeSet ignorables = new UnicodeSet("[:whitespace:]"); in testWithoutSymbolsOrIgnorables() 235 assertEquals("Contains only symbols and ignorables: " + input, in testWithoutSymbolsOrIgnorables() 237 AffixUtils.containsOnlySymbolsAndIgnorables(input, ignorables)); in testWithoutSymbolsOrIgnorables()
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | numbertest_parse.cpp | 246 IgnorablesMatcher ignorables(0); in testCombinedCurrencyMatcher() 258 currencySymbols, {"en", status}, ignorables, "en", 0}; in testCombinedCurrencyMatcher() 313 IgnorablesMatcher ignorables(0); in testAffixPatternMatcher() 321 currencySymbols, {"en", status}, ignorables, "en", 0}; in testAffixPatternMatcher()
|