/external/icu/icu4c/source/i18n/ |
D | numparse_symbols.h | 30 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 …]
|
D | numparse_symbols.cpp | 35 bool SymbolMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode&) const { in match() 88 bool IgnorablesMatcher::isDisabled(const ParsedNumber&) const { in isDisabled() 92 void IgnorablesMatcher::accept(StringSegment&, ParsedNumber&) const { in accept() 101 bool InfinityMatcher::isDisabled(const ParsedNumber& result) const { in isDisabled() 105 void InfinityMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept() 116 bool MinusSignMatcher::isDisabled(const ParsedNumber& result) const { in isDisabled() 120 void MinusSignMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept() 130 bool NanMatcher::isDisabled(const ParsedNumber& result) const { in isDisabled() 134 void NanMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept() 147 bool PaddingMatcher::isDisabled(const ParsedNumber&) const { in isDisabled() [all …]
|
D | numparse_parsednumber.cpp | 25 ParsedNumber::ParsedNumber() { in ParsedNumber() function in ParsedNumber 29 void ParsedNumber::clear() { in clear() 38 void ParsedNumber::setCharsConsumed(const StringSegment& segment) { in setCharsConsumed() 42 void ParsedNumber::postProcess() { in postProcess() 48 bool ParsedNumber::success() const { in success() 52 bool ParsedNumber::seenNumber() const { in seenNumber() 56 double ParsedNumber::getDouble(UErrorCode& status) const { in getDouble() 88 void ParsedNumber::populateFormattable(Formattable& output, parse_flags_t parseFlags) const { in populateFormattable() 119 bool ParsedNumber::isBetterThan(const ParsedNumber& other) { in isBetterThan()
|
D | numparse_types.h | 19 class ParsedNumber; variable 94 class U_I18N_API ParsedNumber { 130 ParsedNumber(); 132 ParsedNumber(const ParsedNumber& other) = default; 134 ParsedNumber& operator=(const ParsedNumber& other) = default; 171 bool isBetterThan(const ParsedNumber& other); 218 virtual bool match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const = 0; 242 virtual void postProcess(ParsedNumber&) const { in postProcess() argument
|
D | numparse_validators.h | 19 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;
|
D | numparse_validators.cpp | 21 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()
|
/external/icu/libicu/cts_headers/ |
D | numparse_symbols.h | 30 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 …]
|
D | numparse_types.h | 19 class ParsedNumber; variable 94 class U_I18N_API ParsedNumber { 130 ParsedNumber(); 132 ParsedNumber(const ParsedNumber& other) = default; 134 ParsedNumber& operator=(const ParsedNumber& other) = default; 171 bool isBetterThan(const ParsedNumber& other); 218 virtual bool match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const = 0; 242 virtual void postProcess(ParsedNumber&) const { in postProcess() argument
|
D | numparse_validators.h | 19 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;
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberParserTest.java | 21 import android.icu.impl.number.parse.ParsedNumber; 152 ParsedNumber resultObject = new ParsedNumber(); in testBasic() 166 ParsedNumber resultObject = new ParsedNumber(); in testBasic() 183 ParsedNumber resultObject = new ParsedNumber(); in testBasic() 203 ParsedNumber resultObject = new ParsedNumber(); in testLocaleFi() 208 resultObject = new ParsedNumber(); in testLocaleFi() 249 ParsedNumber result = new ParsedNumber(); in testSeriesMatcher() 287 ParsedNumber result = new ParsedNumber(); in testCombinedCurrencyMatcher() 298 ParsedNumber result = new ParsedNumber(); in testCombinedCurrencyMatcher() 342 ParsedNumber result = new ParsedNumber(); in testAffixPatternMatcher() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberParserTest.java | 20 import com.ibm.icu.impl.number.parse.ParsedNumber; 149 ParsedNumber resultObject = new ParsedNumber(); in testBasic() 163 ParsedNumber resultObject = new ParsedNumber(); in testBasic() 180 ParsedNumber resultObject = new ParsedNumber(); in testBasic() 200 ParsedNumber resultObject = new ParsedNumber(); in testLocaleFi() 205 resultObject = new ParsedNumber(); in testLocaleFi() 246 ParsedNumber result = new ParsedNumber(); in testSeriesMatcher() 284 ParsedNumber result = new ParsedNumber(); in testCombinedCurrencyMatcher() 295 ParsedNumber result = new ParsedNumber(); in testCombinedCurrencyMatcher() 339 ParsedNumber result = new ParsedNumber(); in testAffixPatternMatcher() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/ |
D | ParsedNumber.java | 17 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()
|
D | PermilleMatcher.java | 37 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()
|
D | PercentMatcher.java | 37 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()
|
D | InfinityMatcher.java | 39 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()
|
D | SymbolMatcher.java | 38 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()
|
D | NumberParserImpl.java | 86 ParsedNumber result = new ParsedNumber(); in parseStatic() 106 ParsedNumber result = new ParsedNumber(); in parseStaticCurrency() 305 public void parse(String input, boolean greedy, ParsedNumber result) { in parse() 322 public void parse(String input, int start, boolean greedy, ParsedNumber result) { in parse() 343 private void parseGreedy(StringSegment segment, ParsedNumber result) { 372 …private void parseLongestRecursive(StringSegment segment, ParsedNumber result, int recursionLevels… 384 ParsedNumber initial = new ParsedNumber(); 386 ParsedNumber candidate = new ParsedNumber();
|
D | RequireDecimalSeparatorValidator.java | 27 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()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
D | ParsedNumber.java | 15 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()
|
D | PermilleMatcher.java | 35 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()
|
D | PercentMatcher.java | 35 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()
|
D | InfinityMatcher.java | 37 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()
|
D | SymbolMatcher.java | 36 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()
|
D | NumberParserImpl.java | 84 ParsedNumber result = new ParsedNumber(); in parseStatic() 104 ParsedNumber result = new ParsedNumber(); in parseStaticCurrency() 303 public void parse(String input, boolean greedy, ParsedNumber result) { in parse() 320 public void parse(String input, int start, boolean greedy, ParsedNumber result) { in parse() 341 private void parseGreedy(StringSegment segment, ParsedNumber result) { 370 …private void parseLongestRecursive(StringSegment segment, ParsedNumber result, int recursionLevels… 382 ParsedNumber initial = new ParsedNumber(); 384 ParsedNumber candidate = new ParsedNumber();
|
D | RequireDecimalSeparatorValidator.java | 25 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()
|