Home
last modified time | relevance | path

Searched refs:parseFlags (Results 1 – 25 of 80) sorted by relevance

1234

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/
DNumberParserImpl.java41 …public static NumberParserImpl createSimpleParser(ULocale locale, String pattern, int parseFlags) { in createSimpleParser() argument
43 NumberParserImpl parser = new NumberParserImpl(parseFlags); in createSimpleParser()
46 IgnorablesMatcher ignorables = IgnorablesMatcher.getInstance(parseFlags); in createSimpleParser()
53 factory.parseFlags = parseFlags; in createSimpleParser()
56 AffixMatcher.createMatchers(patternInfo, parser, factory, ignorables, parseFlags); in createSimpleParser()
61 parser.addMatcher(DecimalMatcher.getInstance(symbols, grouper, parseFlags)); in createSimpleParser()
66 parser.addMatcher(NanMatcher.getInstance(symbols, parseFlags)); in createSimpleParser()
70 parser.addMatcher(CombinedCurrencyMatcher.getInstance(currency, symbols, parseFlags)); in createSimpleParser()
149 int parseFlags = 0; in createParserFromProperties() local
151 parseFlags |= ParsingUtils.PARSE_FLAG_IGNORE_CASE; in createParserFromProperties()
[all …]
DAffixMatcher.java52 int parseFlags) { in isInteresting() argument
62 if (0 == (parseFlags & ParsingUtils.PARSE_FLAG_USE_FULL_AFFIXES) in isInteresting()
85 int parseFlags) { in createMatchers() argument
86 if (!isInteresting(patternInfo, ignorables, parseFlags)) { in createMatchers()
94 … boolean includeUnpaired = 0 != (parseFlags & ParsingUtils.PARSE_FLAG_INCLUDE_UNPAIRED_AFFIXES); in createMatchers()
104 && 0 != (parseFlags & ParsingUtils.PARSE_FLAG_PLUS_SIGN_ALLOWED)) { in createMatchers()
108 && 0 == (parseFlags & ParsingUtils.PARSE_FLAG_PLUS_SIGN_ALLOWED)) { in createMatchers()
120 .fromAffixPattern(sb.toString(), factory, parseFlags); in createMatchers()
130 .fromAffixPattern(sb.toString(), factory, parseFlags); in createMatchers()
DDecimalMatcher.java52 int parseFlags) { in getInstance() argument
54 return new DecimalMatcher(symbols, grouper, parseFlags); in getInstance()
57 private DecimalMatcher(DecimalFormatSymbols symbols, Grouper grouper, int parseFlags) { in DecimalMatcher() argument
58 if (0 != (parseFlags & ParsingUtils.PARSE_FLAG_MONETARY_SEPARATORS)) { in DecimalMatcher()
65 boolean strictSeparators = 0 != (parseFlags & ParsingUtils.PARSE_FLAG_STRICT_SEPARATORS); in DecimalMatcher()
99 requireGroupingMatch = 0 != (parseFlags & ParsingUtils.PARSE_FLAG_STRICT_GROUPING_SIZE); in DecimalMatcher()
100 groupingDisabled = 0 != (parseFlags & ParsingUtils.PARSE_FLAG_GROUPING_DISABLED); in DecimalMatcher()
101 integerOnly = 0 != (parseFlags & ParsingUtils.PARSE_FLAG_INTEGER_ONLY); in DecimalMatcher()
DIgnorablesMatcher.java26 public static IgnorablesMatcher getInstance(int parseFlags) { in getInstance() argument
27 if (0 != (parseFlags & ParsingUtils.PARSE_FLAG_JAVA_COMPATIBILITY_IGNORABLES)) { in getInstance()
29 } else if (0 != (parseFlags & ParsingUtils.PARSE_FLAG_STRICT_IGNORABLES)) { in getInstance()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DNumberParserImpl.java39 …public static NumberParserImpl createSimpleParser(ULocale locale, String pattern, int parseFlags) { in createSimpleParser() argument
41 NumberParserImpl parser = new NumberParserImpl(parseFlags); in createSimpleParser()
44 IgnorablesMatcher ignorables = IgnorablesMatcher.getInstance(parseFlags); in createSimpleParser()
51 factory.parseFlags = parseFlags; in createSimpleParser()
54 AffixMatcher.createMatchers(patternInfo, parser, factory, ignorables, parseFlags); in createSimpleParser()
59 parser.addMatcher(DecimalMatcher.getInstance(symbols, grouper, parseFlags)); in createSimpleParser()
64 parser.addMatcher(NanMatcher.getInstance(symbols, parseFlags)); in createSimpleParser()
68 parser.addMatcher(CombinedCurrencyMatcher.getInstance(currency, symbols, parseFlags)); in createSimpleParser()
147 int parseFlags = 0; in createParserFromProperties() local
149 parseFlags |= ParsingUtils.PARSE_FLAG_IGNORE_CASE; in createParserFromProperties()
[all …]
DAffixMatcher.java50 int parseFlags) { in isInteresting() argument
60 if (0 == (parseFlags & ParsingUtils.PARSE_FLAG_USE_FULL_AFFIXES) in isInteresting()
83 int parseFlags) { in createMatchers() argument
84 if (!isInteresting(patternInfo, ignorables, parseFlags)) { in createMatchers()
92 … boolean includeUnpaired = 0 != (parseFlags & ParsingUtils.PARSE_FLAG_INCLUDE_UNPAIRED_AFFIXES); in createMatchers()
102 && 0 != (parseFlags & ParsingUtils.PARSE_FLAG_PLUS_SIGN_ALLOWED)) { in createMatchers()
106 && 0 == (parseFlags & ParsingUtils.PARSE_FLAG_PLUS_SIGN_ALLOWED)) { in createMatchers()
118 .fromAffixPattern(sb.toString(), factory, parseFlags); in createMatchers()
128 .fromAffixPattern(sb.toString(), factory, parseFlags); in createMatchers()
DDecimalMatcher.java50 int parseFlags) { in getInstance() argument
52 return new DecimalMatcher(symbols, grouper, parseFlags); in getInstance()
55 private DecimalMatcher(DecimalFormatSymbols symbols, Grouper grouper, int parseFlags) { in DecimalMatcher() argument
56 if (0 != (parseFlags & ParsingUtils.PARSE_FLAG_MONETARY_SEPARATORS)) { in DecimalMatcher()
63 boolean strictSeparators = 0 != (parseFlags & ParsingUtils.PARSE_FLAG_STRICT_SEPARATORS); in DecimalMatcher()
97 requireGroupingMatch = 0 != (parseFlags & ParsingUtils.PARSE_FLAG_STRICT_GROUPING_SIZE); in DecimalMatcher()
98 groupingDisabled = 0 != (parseFlags & ParsingUtils.PARSE_FLAG_GROUPING_DISABLED); in DecimalMatcher()
99 integerOnly = 0 != (parseFlags & ParsingUtils.PARSE_FLAG_INTEGER_ONLY); in DecimalMatcher()
DIgnorablesMatcher.java24 public static IgnorablesMatcher getInstance(int parseFlags) { in getInstance() argument
25 if (0 != (parseFlags & ParsingUtils.PARSE_FLAG_JAVA_COMPATIBILITY_IGNORABLES)) { in getInstance()
27 } else if (0 != (parseFlags & ParsingUtils.PARSE_FLAG_STRICT_IGNORABLES)) { in getInstance()
/third_party/icu/icu4c/source/i18n/
Dnumparse_impl.cpp37 parse_flags_t parseFlags, UErrorCode& status) { in createSimpleParser() argument
39 LocalPointer<NumberParserImpl> parser(new NumberParserImpl(parseFlags)); in createSimpleParser()
42 parser->fLocalMatchers.ignorables = {parseFlags}; in createSimpleParser()
55 currencySymbols, symbols, ignorables, locale, parseFlags}; in createSimpleParser()
59 patternInfo, *parser, ignorables, parseFlags, status); in createSimpleParser()
65 parser->addMatcher(parser->fLocalMatchers.decimal = {symbols, grouper, parseFlags}); in createSimpleParser()
74 …parser->addMatcher(parser->fLocalMatchers.currency = {currencySymbols, symbols, parseFlags, status… in createSimpleParser()
92 int parseFlags = 0; in createParserFromProperties() local
95 parseFlags |= PARSE_FLAG_IGNORE_CASE; in createParserFromProperties()
98 parseFlags |= PARSE_FLAG_INTEGER_ONLY; in createParserFromProperties()
[all …]
Dnumparse_affixes.cpp154 … return fCurrency = {fSetupData->currencySymbols, fSetupData->dfs, fSetupData->parseFlags, status}; in currency()
195 parse_flags_t parseFlags, bool* success, in fromAffixPattern() argument
204 if (0 != (parseFlags & PARSE_FLAG_EXACT_AFFIX)) { in fromAffixPattern()
234 … const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, in isInteresting() argument
245 if (0 == (parseFlags & PARSE_FLAG_USE_FULL_AFFIXES) && in isInteresting()
266 parse_flags_t parseFlags, UErrorCode& status) { in createAffixMatchers() argument
267 if (!isInteresting(patternInfo, ignorables, parseFlags, status)) { in createAffixMatchers()
274 bool includeUnpaired = 0 != (parseFlags & PARSE_FLAG_INCLUDE_UNPAIRED_AFFIXES); in createAffixMatchers()
288 && 0 != (parseFlags & PARSE_FLAG_PLUS_SIGN_ALLOWED)) { in createAffixMatchers()
292 && 0 == (parseFlags & PARSE_FLAG_PLUS_SIGN_ALLOWED)) { in createAffixMatchers()
[all …]
Dnumparse_decimal.cpp27 parse_flags_t parseFlags) { in DecimalMatcher() argument
28 if (0 != (parseFlags & PARSE_FLAG_MONETARY_SEPARATORS)) { in DecimalMatcher()
35 bool strictSeparators = 0 != (parseFlags & PARSE_FLAG_STRICT_SEPARATORS); in DecimalMatcher()
84 requireGroupingMatch = 0 != (parseFlags & PARSE_FLAG_STRICT_GROUPING_SIZE); in DecimalMatcher()
85 groupingDisabled = 0 != (parseFlags & PARSE_FLAG_GROUPING_DISABLED); in DecimalMatcher()
86 integerOnly = 0 != (parseFlags & PARSE_FLAG_INTEGER_ONLY); in DecimalMatcher()
Dnumparse_affixes.h69 parse_flags_t parseFlags; member
153 parse_flags_t parseFlags, bool* success,
203 const IgnorablesMatcher& ignorables, parse_flags_t parseFlags,
217 parse_flags_t parseFlags, UErrorCode& status);
/third_party/node/deps/icu-small/source/i18n/
Dnumparse_impl.cpp37 parse_flags_t parseFlags, UErrorCode& status) { in createSimpleParser() argument
39 LocalPointer<NumberParserImpl> parser(new NumberParserImpl(parseFlags)); in createSimpleParser()
42 parser->fLocalMatchers.ignorables = {parseFlags}; in createSimpleParser()
55 currencySymbols, symbols, ignorables, locale, parseFlags}; in createSimpleParser()
59 patternInfo, *parser, ignorables, parseFlags, status); in createSimpleParser()
65 parser->addMatcher(parser->fLocalMatchers.decimal = {symbols, grouper, parseFlags}); in createSimpleParser()
74 …parser->addMatcher(parser->fLocalMatchers.currency = {currencySymbols, symbols, parseFlags, status… in createSimpleParser()
92 int parseFlags = 0; in createParserFromProperties() local
95 parseFlags |= PARSE_FLAG_IGNORE_CASE; in createParserFromProperties()
98 parseFlags |= PARSE_FLAG_INTEGER_ONLY; in createParserFromProperties()
[all …]
Dnumparse_affixes.cpp154 … return fCurrency = {fSetupData->currencySymbols, fSetupData->dfs, fSetupData->parseFlags, status}; in currency()
195 parse_flags_t parseFlags, bool* success, in fromAffixPattern() argument
204 if (0 != (parseFlags & PARSE_FLAG_EXACT_AFFIX)) { in fromAffixPattern()
234 … const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, in isInteresting() argument
245 if (0 == (parseFlags & PARSE_FLAG_USE_FULL_AFFIXES) && in isInteresting()
266 parse_flags_t parseFlags, UErrorCode& status) { in createAffixMatchers() argument
267 if (!isInteresting(patternInfo, ignorables, parseFlags, status)) { in createAffixMatchers()
274 bool includeUnpaired = 0 != (parseFlags & PARSE_FLAG_INCLUDE_UNPAIRED_AFFIXES); in createAffixMatchers()
288 && 0 != (parseFlags & PARSE_FLAG_PLUS_SIGN_ALLOWED)) { in createAffixMatchers()
292 && 0 == (parseFlags & PARSE_FLAG_PLUS_SIGN_ALLOWED)) { in createAffixMatchers()
[all …]
Dnumparse_decimal.cpp27 parse_flags_t parseFlags) { in DecimalMatcher() argument
28 if (0 != (parseFlags & PARSE_FLAG_MONETARY_SEPARATORS)) { in DecimalMatcher()
35 bool strictSeparators = 0 != (parseFlags & PARSE_FLAG_STRICT_SEPARATORS); in DecimalMatcher()
84 requireGroupingMatch = 0 != (parseFlags & PARSE_FLAG_STRICT_GROUPING_SIZE); in DecimalMatcher()
85 groupingDisabled = 0 != (parseFlags & PARSE_FLAG_GROUPING_DISABLED); in DecimalMatcher()
86 integerOnly = 0 != (parseFlags & PARSE_FLAG_INTEGER_ONLY); in DecimalMatcher()
Dnumparse_affixes.h69 parse_flags_t parseFlags; member
153 parse_flags_t parseFlags, bool* success,
203 const IgnorablesMatcher& ignorables, parse_flags_t parseFlags,
217 parse_flags_t parseFlags, UErrorCode& status);
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumparse_impl.cpp37 parse_flags_t parseFlags, UErrorCode& status) { in createSimpleParser() argument
39 LocalPointer<NumberParserImpl> parser(new NumberParserImpl(parseFlags)); in createSimpleParser()
42 parser->fLocalMatchers.ignorables = {parseFlags}; in createSimpleParser()
55 currencySymbols, symbols, ignorables, locale, parseFlags}; in createSimpleParser()
59 patternInfo, *parser, ignorables, parseFlags, status); in createSimpleParser()
65 parser->addMatcher(parser->fLocalMatchers.decimal = {symbols, grouper, parseFlags}); in createSimpleParser()
74 …parser->addMatcher(parser->fLocalMatchers.currency = {currencySymbols, symbols, parseFlags, status… in createSimpleParser()
92 int parseFlags = 0; in createParserFromProperties() local
95 parseFlags |= PARSE_FLAG_IGNORE_CASE; in createParserFromProperties()
98 parseFlags |= PARSE_FLAG_INTEGER_ONLY; in createParserFromProperties()
[all …]
Dnumparse_affixes.cpp154 … return fCurrency = {fSetupData->currencySymbols, fSetupData->dfs, fSetupData->parseFlags, status}; in currency()
195 parse_flags_t parseFlags, bool* success, in fromAffixPattern() argument
204 if (0 != (parseFlags & PARSE_FLAG_EXACT_AFFIX)) { in fromAffixPattern()
234 … const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, in isInteresting() argument
245 if (0 == (parseFlags & PARSE_FLAG_USE_FULL_AFFIXES) && in isInteresting()
266 parse_flags_t parseFlags, UErrorCode& status) { in createAffixMatchers() argument
267 if (!isInteresting(patternInfo, ignorables, parseFlags, status)) { in createAffixMatchers()
274 bool includeUnpaired = 0 != (parseFlags & PARSE_FLAG_INCLUDE_UNPAIRED_AFFIXES); in createAffixMatchers()
288 && 0 != (parseFlags & PARSE_FLAG_PLUS_SIGN_ALLOWED)) { in createAffixMatchers()
292 && 0 == (parseFlags & PARSE_FLAG_PLUS_SIGN_ALLOWED)) { in createAffixMatchers()
[all …]
Dnumparse_decimal.cpp27 parse_flags_t parseFlags) { in DecimalMatcher() argument
28 if (0 != (parseFlags & PARSE_FLAG_MONETARY_SEPARATORS)) { in DecimalMatcher()
35 bool strictSeparators = 0 != (parseFlags & PARSE_FLAG_STRICT_SEPARATORS); in DecimalMatcher()
84 requireGroupingMatch = 0 != (parseFlags & PARSE_FLAG_STRICT_GROUPING_SIZE); in DecimalMatcher()
85 groupingDisabled = 0 != (parseFlags & PARSE_FLAG_GROUPING_DISABLED); in DecimalMatcher()
86 integerOnly = 0 != (parseFlags & PARSE_FLAG_INTEGER_ONLY); in DecimalMatcher()
Dnumparse_affixes.h69 parse_flags_t parseFlags; member
153 parse_flags_t parseFlags, bool* success,
203 const IgnorablesMatcher& ignorables, parse_flags_t parseFlags,
217 parse_flags_t parseFlags, UErrorCode& status);
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dnumparse_impl.cpp37 parse_flags_t parseFlags, UErrorCode& status) { in createSimpleParser() argument
39 LocalPointer<NumberParserImpl> parser(new NumberParserImpl(parseFlags)); in createSimpleParser()
55 currencySymbols, symbols, ignorables, locale, parseFlags}; in createSimpleParser()
59 patternInfo, *parser, ignorables, parseFlags, status); in createSimpleParser()
65 parser->addMatcher(parser->fLocalMatchers.decimal = {symbols, grouper, parseFlags}); in createSimpleParser()
74 …parser->addMatcher(parser->fLocalMatchers.currency = {currencySymbols, symbols, parseFlags, status… in createSimpleParser()
101 int parseFlags = 0; in createParserFromProperties() local
104 parseFlags |= PARSE_FLAG_IGNORE_CASE; in createParserFromProperties()
107 parseFlags |= PARSE_FLAG_INTEGER_ONLY; in createParserFromProperties()
110 parseFlags |= PARSE_FLAG_PLUS_SIGN_ALLOWED; in createParserFromProperties()
[all …]
Dnumparse_affixes.cpp193 … return fCurrency = {fSetupData->currencySymbols, fSetupData->dfs, fSetupData->parseFlags, status}; in currency()
227 parse_flags_t parseFlags, bool* success, in fromAffixPattern() argument
236 if (0 != (parseFlags & PARSE_FLAG_EXACT_AFFIX)) { in fromAffixPattern()
265 … const IgnorablesMatcher& ignorables, parse_flags_t parseFlags, in isInteresting() argument
276 if (0 == (parseFlags & PARSE_FLAG_USE_FULL_AFFIXES) && in isInteresting()
297 parse_flags_t parseFlags, UErrorCode& status) { in createAffixMatchers() argument
298 if (!isInteresting(patternInfo, ignorables, parseFlags, status)) { in createAffixMatchers()
305 bool includeUnpaired = 0 != (parseFlags & PARSE_FLAG_INCLUDE_UNPAIRED_AFFIXES); in createAffixMatchers()
306 …UNumberSignDisplay signDisplay = (0 != (parseFlags & PARSE_FLAG_PLUS_SIGN_ALLOWED)) ? UNUM_SIGN_AL… in createAffixMatchers()
322 sb, *fTokenWarehouse, parseFlags, &hasPrefix, status); in createAffixMatchers()
[all …]
Dnumparse_decimal.cpp26 parse_flags_t parseFlags) { in DecimalMatcher() argument
27 if (0 != (parseFlags & PARSE_FLAG_MONETARY_SEPARATORS)) { in DecimalMatcher()
34 bool strictSeparators = 0 != (parseFlags & PARSE_FLAG_STRICT_SEPARATORS); in DecimalMatcher()
83 requireGroupingMatch = 0 != (parseFlags & PARSE_FLAG_STRICT_GROUPING_SIZE); in DecimalMatcher()
84 groupingDisabled = 0 != (parseFlags & PARSE_FLAG_GROUPING_DISABLED); in DecimalMatcher()
85 integerOnly = 0 != (parseFlags & PARSE_FLAG_INTEGER_ONLY); in DecimalMatcher()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberParserTest.java135 int parseFlags = ParsingUtils.PARSE_FLAG_IGNORE_CASE in testBasic() local
144 .createSimpleParser(ULocale.ENGLISH, patternString, parseFlags); in testBasic()
179 parseFlags | ParsingUtils.PARSE_FLAG_STRICT_GROUPING_SIZE); in testBasic()
262 factory.parseFlags = 0; in testCombinedCurrencyMatcher()
264 factory.parseFlags = ParsingUtils.PARSE_FLAG_NO_FOREIGN_CURRENCIES; in testCombinedCurrencyMatcher()
314 factory.parseFlags = 0; in testAffixPatternMatcher()
329 int parseFlags = exactMatch ? ParsingUtils.PARSE_FLAG_EXACT_AFFIX : 0; in testAffixPatternMatcher() local
332 .fromAffixPattern(affixPattern, factory, parseFlags); in testAffixPatternMatcher()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DNumberParserTest.java138 int parseFlags = ParsingUtils.PARSE_FLAG_IGNORE_CASE in testBasic() local
147 .createSimpleParser(ULocale.ENGLISH, patternString, parseFlags); in testBasic()
182 parseFlags | ParsingUtils.PARSE_FLAG_STRICT_GROUPING_SIZE); in testBasic()
265 factory.parseFlags = 0; in testCombinedCurrencyMatcher()
267 factory.parseFlags = ParsingUtils.PARSE_FLAG_NO_FOREIGN_CURRENCIES; in testCombinedCurrencyMatcher()
317 factory.parseFlags = 0; in testAffixPatternMatcher()
332 int parseFlags = exactMatch ? ParsingUtils.PARSE_FLAG_EXACT_AFFIX : 0; in testAffixPatternMatcher() local
335 .fromAffixPattern(affixPattern, factory, parseFlags); in testAffixPatternMatcher()

1234