Home
last modified time | relevance | path

Searched refs:ParsedNumber (Results 1 – 25 of 72) sorted by relevance

123

/external/icu/icu4c/source/i18n/
Dnumparse_symbols.h30 bool match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const override;
36 virtual bool isDisabled(const ParsedNumber& result) const = 0;
38 virtual void accept(StringSegment& segment, ParsedNumber& result) const = 0;
60 bool isDisabled(const ParsedNumber& result) const override;
62 void accept(StringSegment& segment, ParsedNumber& result) const override;
73 bool isDisabled(const ParsedNumber& result) const override;
75 void accept(StringSegment& segment, ParsedNumber& result) const override;
87 bool isDisabled(const ParsedNumber& result) const override;
89 void accept(StringSegment& segment, ParsedNumber& result) const override;
103 bool isDisabled(const ParsedNumber& result) const override;
[all …]
Dnumparse_symbols.cpp34 bool SymbolMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode&) const { in match()
83 bool IgnorablesMatcher::isDisabled(const ParsedNumber&) const { in isDisabled()
87 void IgnorablesMatcher::accept(StringSegment&, ParsedNumber&) const { in accept()
96 bool InfinityMatcher::isDisabled(const ParsedNumber& result) const { in isDisabled()
100 void InfinityMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept()
111 bool MinusSignMatcher::isDisabled(const ParsedNumber& result) const { in isDisabled()
115 void MinusSignMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept()
125 bool NanMatcher::isDisabled(const ParsedNumber& result) const { in isDisabled()
129 void NanMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept()
142 bool PaddingMatcher::isDisabled(const ParsedNumber&) const { in isDisabled()
[all …]
Dnumparse_parsednumber.cpp24 ParsedNumber::ParsedNumber() { in ParsedNumber() function in ParsedNumber
28 void ParsedNumber::clear() { in clear()
37 void ParsedNumber::setCharsConsumed(const StringSegment& segment) { in setCharsConsumed()
41 void ParsedNumber::postProcess() { in postProcess()
47 bool ParsedNumber::success() const { in success()
51 bool ParsedNumber::seenNumber() const { in seenNumber()
55 double ParsedNumber::getDouble() const { in getDouble()
84 void ParsedNumber::populateFormattable(Formattable& output, parse_flags_t parseFlags) const { in populateFormattable()
115 bool ParsedNumber::isBetterThan(const ParsedNumber& other) { in isBetterThan()
Dnumparse_types.h18 class ParsedNumber; variable
90 class U_I18N_API ParsedNumber {
126 ParsedNumber();
128 ParsedNumber(const ParsedNumber& other) = default;
130 ParsedNumber& operator=(const ParsedNumber& other) = default;
167 bool isBetterThan(const ParsedNumber& other);
323 virtual bool match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const = 0;
347 virtual void postProcess(ParsedNumber&) const { in postProcess() argument
Dnumparse_validators.h19 bool match(StringSegment&, ParsedNumber&, UErrorCode&) const U_OVERRIDE { in match() argument
29 void postProcess(ParsedNumber& result) const U_OVERRIDE = 0;
35 void postProcess(ParsedNumber& result) const U_OVERRIDE;
43 void postProcess(ParsedNumber& result) const U_OVERRIDE;
55 void postProcess(ParsedNumber& result) const U_OVERRIDE;
66 void postProcess(ParsedNumber& result) const U_OVERRIDE;
81 void postProcess(ParsedNumber& result) const U_OVERRIDE;
Dnumparse_validators.cpp21 void RequireAffixValidator::postProcess(ParsedNumber& result) const { in postProcess()
33 void RequireCurrencyValidator::postProcess(ParsedNumber& result) const { in postProcess()
48 void RequireDecimalSeparatorValidator::postProcess(ParsedNumber& result) const { in postProcess()
60 void RequireNumberValidator::postProcess(ParsedNumber& result) const { in postProcess()
74 void MultiplierParseHandler::postProcess(ParsedNumber& result) const { in postProcess()
Dnumparse_impl.h57 …void parse(const UnicodeString& input, bool greedy, ParsedNumber& result, UErrorCode& status) cons…
59 void parse(const UnicodeString& input, int32_t start, bool greedy, ParsedNumber& result,
98 … void parseGreedyRecursive(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const;
100 …void parseLongestRecursive(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberParserTest.java21 import android.icu.impl.number.parse.ParsedNumber;
148 ParsedNumber resultObject = new ParsedNumber(); in testBasic()
162 ParsedNumber resultObject = new ParsedNumber(); in testBasic()
179 ParsedNumber resultObject = new ParsedNumber(); in testBasic()
199 ParsedNumber resultObject = new ParsedNumber(); in testLocaleFi()
204 resultObject = new ParsedNumber(); in testLocaleFi()
245 ParsedNumber result = new ParsedNumber(); in testSeriesMatcher()
283 ParsedNumber result = new ParsedNumber(); in testCombinedCurrencyMatcher()
294 ParsedNumber result = new ParsedNumber(); in testCombinedCurrencyMatcher()
338 ParsedNumber result = new ParsedNumber(); in testAffixPatternMatcher()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberParserTest.java20 import com.ibm.icu.impl.number.parse.ParsedNumber;
145 ParsedNumber resultObject = new ParsedNumber(); in testBasic()
159 ParsedNumber resultObject = new ParsedNumber(); in testBasic()
176 ParsedNumber resultObject = new ParsedNumber(); in testBasic()
196 ParsedNumber resultObject = new ParsedNumber(); in testLocaleFi()
201 resultObject = new ParsedNumber(); in testLocaleFi()
242 ParsedNumber result = new ParsedNumber(); in testSeriesMatcher()
280 ParsedNumber result = new ParsedNumber(); in testCombinedCurrencyMatcher()
291 ParsedNumber result = new ParsedNumber(); in testCombinedCurrencyMatcher()
335 ParsedNumber result = new ParsedNumber(); in testAffixPatternMatcher()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DParsedNumber.java17 public class ParsedNumber { class
63 public static final Comparator<ParsedNumber> COMPARATOR = new Comparator<ParsedNumber>() {
65 public int compare(ParsedNumber o1, ParsedNumber o2) {
70 public ParsedNumber() { in ParsedNumber() method in ParsedNumber
86 public void copyFrom(ParsedNumber other) { in copyFrom()
170 boolean isBetterThan(ParsedNumber other) { in isBetterThan()
DNumberParserImpl.java87 ParsedNumber result = new ParsedNumber(); in parseStatic()
107 ParsedNumber result = new ParsedNumber(); in parseStaticCurrency()
302 public void parse(String input, boolean greedy, ParsedNumber result) { in parse()
319 public void parse(String input, int start, boolean greedy, ParsedNumber result) { in parse()
336 private void parseGreedyRecursive(StringSegment segment, ParsedNumber result) {
363 private void parseLongestRecursive(StringSegment segment, ParsedNumber result) {
370 ParsedNumber initial = new ParsedNumber();
372 ParsedNumber candidate = new ParsedNumber();
DPermilleMatcher.java37 protected boolean isDisabled(ParsedNumber result) { in isDisabled()
38 return 0 != (result.flags & ParsedNumber.FLAG_PERMILLE); in isDisabled()
42 protected void accept(StringSegment segment, ParsedNumber result) { in accept()
43 result.flags |= ParsedNumber.FLAG_PERMILLE; in accept()
DPercentMatcher.java37 protected boolean isDisabled(ParsedNumber result) { in isDisabled()
38 return 0 != (result.flags & ParsedNumber.FLAG_PERCENT); in isDisabled()
42 protected void accept(StringSegment segment, ParsedNumber result) { in accept()
43 result.flags |= ParsedNumber.FLAG_PERCENT; in accept()
DInfinityMatcher.java39 protected boolean isDisabled(ParsedNumber result) { in isDisabled()
40 return 0 != (result.flags & ParsedNumber.FLAG_INFINITY); in isDisabled()
44 protected void accept(StringSegment segment, ParsedNumber result) { in accept()
45 result.flags |= ParsedNumber.FLAG_INFINITY; in accept()
DSymbolMatcher.java38 public boolean match(StringSegment segment, ParsedNumber result) { in match()
70 public void postProcess(ParsedNumber result) { in postProcess()
74 protected abstract boolean isDisabled(ParsedNumber result); in isDisabled()
76 protected abstract void accept(StringSegment segment, ParsedNumber result); in accept()
DRequireDecimalSeparatorValidator.java27 public void postProcess(ParsedNumber result) { in postProcess()
28 … boolean parseHasDecimalSeparator = 0 != (result.flags & ParsedNumber.FLAG_HAS_DECIMAL_SEPARATOR); in postProcess()
30 result.flags |= ParsedNumber.FLAG_FAIL; in postProcess()
DSeriesMatcher.java40 public boolean match(StringSegment segment, ParsedNumber result) { in match()
47 ParsedNumber backup = new ParsedNumber(); in match()
102 public void postProcess(ParsedNumber result) { in postProcess()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DParsedNumber.java15 public class ParsedNumber { class
61 public static final Comparator<ParsedNumber> COMPARATOR = new Comparator<ParsedNumber>() {
63 public int compare(ParsedNumber o1, ParsedNumber o2) {
68 public ParsedNumber() { in ParsedNumber() method in ParsedNumber
84 public void copyFrom(ParsedNumber other) { in copyFrom()
168 boolean isBetterThan(ParsedNumber other) { in isBetterThan()
DNumberParserImpl.java85 ParsedNumber result = new ParsedNumber(); in parseStatic()
105 ParsedNumber result = new ParsedNumber(); in parseStaticCurrency()
300 public void parse(String input, boolean greedy, ParsedNumber result) { in parse()
317 public void parse(String input, int start, boolean greedy, ParsedNumber result) { in parse()
334 private void parseGreedyRecursive(StringSegment segment, ParsedNumber result) {
361 private void parseLongestRecursive(StringSegment segment, ParsedNumber result) {
368 ParsedNumber initial = new ParsedNumber();
370 ParsedNumber candidate = new ParsedNumber();
DPermilleMatcher.java35 protected boolean isDisabled(ParsedNumber result) { in isDisabled()
36 return 0 != (result.flags & ParsedNumber.FLAG_PERMILLE); in isDisabled()
40 protected void accept(StringSegment segment, ParsedNumber result) { in accept()
41 result.flags |= ParsedNumber.FLAG_PERMILLE; in accept()
DPercentMatcher.java35 protected boolean isDisabled(ParsedNumber result) { in isDisabled()
36 return 0 != (result.flags & ParsedNumber.FLAG_PERCENT); in isDisabled()
40 protected void accept(StringSegment segment, ParsedNumber result) { in accept()
41 result.flags |= ParsedNumber.FLAG_PERCENT; in accept()
DInfinityMatcher.java37 protected boolean isDisabled(ParsedNumber result) { in isDisabled()
38 return 0 != (result.flags & ParsedNumber.FLAG_INFINITY); in isDisabled()
42 protected void accept(StringSegment segment, ParsedNumber result) { in accept()
43 result.flags |= ParsedNumber.FLAG_INFINITY; in accept()
DSymbolMatcher.java36 public boolean match(StringSegment segment, ParsedNumber result) { in match()
68 public void postProcess(ParsedNumber result) { in postProcess()
72 protected abstract boolean isDisabled(ParsedNumber result); in isDisabled()
74 protected abstract void accept(StringSegment segment, ParsedNumber result); in accept()
DRequireDecimalSeparatorValidator.java25 public void postProcess(ParsedNumber result) { in postProcess()
26 … boolean parseHasDecimalSeparator = 0 != (result.flags & ParsedNumber.FLAG_HAS_DECIMAL_SEPARATOR); in postProcess()
28 result.flags |= ParsedNumber.FLAG_FAIL; in postProcess()
DSeriesMatcher.java38 public boolean match(StringSegment segment, ParsedNumber result) { in match()
45 ParsedNumber backup = new ParsedNumber(); in match()
100 public void postProcess(ParsedNumber result) { in postProcess()

123