/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 | 34 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 …]
|
D | numparse_parsednumber.cpp | 24 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()
|
D | numparse_types.h | 18 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
|
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()
|
D | numparse_impl.h | 57 …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/ |
D | NumberParserTest.java | 21 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/ |
D | NumberParserTest.java | 20 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/ |
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 | NumberParserImpl.java | 87 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();
|
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 | 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()
|
D | SeriesMatcher.java | 40 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/ |
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 | NumberParserImpl.java | 85 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();
|
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 | 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()
|
D | SeriesMatcher.java | 38 public boolean match(StringSegment segment, ParsedNumber result) { in match() 45 ParsedNumber backup = new ParsedNumber(); in match() 100 public void postProcess(ParsedNumber result) { in postProcess()
|