/external/icu/icu4c/source/i18n/ |
D | numparse_stringsegment.cpp | 23 StringSegment::StringSegment(const UnicodeString& str, bool ignoreCase) in StringSegment() function in StringSegment 27 int32_t StringSegment::getOffset() const { in getOffset() 31 void StringSegment::setOffset(int32_t start) { in setOffset() 35 void StringSegment::adjustOffset(int32_t delta) { in adjustOffset() 39 void StringSegment::adjustOffsetByCodePoint() { in adjustOffsetByCodePoint() 43 void StringSegment::setLength(int32_t length) { in setLength() 47 void StringSegment::resetLength() { in resetLength() 51 int32_t StringSegment::length() const { in length() 55 char16_t StringSegment::charAt(int32_t index) const { in charAt() 59 UChar32 StringSegment::codePointAt(int32_t index) const { in codePointAt() [all …]
|
D | numparse_symbols.h | 30 bool match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const override; 32 bool smokeTest(const StringSegment& segment) const override; 38 virtual void accept(StringSegment& segment, ParsedNumber& result) const = 0; 62 void accept(StringSegment& segment, ParsedNumber& result) const override; 75 void accept(StringSegment& segment, ParsedNumber& result) const override; 89 void accept(StringSegment& segment, ParsedNumber& result) const override; 105 void accept(StringSegment& segment, ParsedNumber& result) const override; 120 void accept(StringSegment& segment, ParsedNumber& result) const override; 134 void accept(StringSegment& segment, ParsedNumber& result) const override; 147 void accept(StringSegment& segment, ParsedNumber& result) const override; [all …]
|
D | number_skeletons.h | 14 using icu::numparse::impl::StringSegment; 148 ParseState parseStem(const StringSegment& segment, const UCharsTrie& stemTrie, SeenMacroProps& seen, 158 parseOption(ParseState stem, const StringSegment& segment, MacroProps& macros, UErrorCode& status); 211 bool parseExponentWidthOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 216 bool parseExponentSignOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 218 void parseCurrencyOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 222 void parseMeasureUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 226 void parseMeasurePerUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status… 228 void parseFractionStem(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 232 void parseDigitsStem(const StringSegment& segment, MacroProps& macros, UErrorCode& status); [all …]
|
D | numparse_symbols.cpp | 34 bool SymbolMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode&) const { in match() 61 bool SymbolMatcher::smokeTest(const StringSegment& segment) const { in smokeTest() 87 void IgnorablesMatcher::accept(StringSegment&, ParsedNumber&) const { in accept() argument 100 void InfinityMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept() 115 void MinusSignMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept() 129 void NanMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept() 146 void PaddingMatcher::accept(StringSegment&, ParsedNumber&) const { in accept() argument 159 void PercentMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept() 173 void PermilleMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept() 188 void PlusSignMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept()
|
D | numparse_types.h | 17 class StringSegment; variable 150 void setCharsConsumed(const StringSegment& segment); 178 class U_I18N_API StringSegment : public UMemory { 180 StringSegment(const UnicodeString& str, bool ignoreCase); 323 virtual bool match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const = 0; 337 virtual bool smokeTest(const StringSegment& segment) const = 0;
|
D | numparse_currency.h | 40 bool match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const override; 42 bool smokeTest(const StringSegment& segment) const override; 65 bool matchCurrency(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const;
|
D | numparse_decimal.h | 25 bool match(StringSegment& segment, ParsedNumber& result, UErrorCode& status) const override; 28 …match(StringSegment& segment, ParsedNumber& result, int8_t exponentSign, UErrorCode& status) const; 30 bool smokeTest(const StringSegment& segment) const override;
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/ |
D | StringSegmentTest.java | 9 import com.ibm.icu.impl.StringSegment; 20 StringSegment segment = new StringSegment(SAMPLE_STRING, false); in testOffset() 34 StringSegment segment = new StringSegment(SAMPLE_STRING, false); in testLength() 48 StringSegment segment = new StringSegment(SAMPLE_STRING, false); in testCharAt() 58 StringSegment segment = new StringSegment(SAMPLE_STRING, false); in testGetCodePoint() 71 StringSegment segment = new StringSegment(SAMPLE_STRING, true); in testCommonPrefixLength()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/impl/ |
D | StringSegmentTest.java | 10 import android.icu.impl.StringSegment; 23 StringSegment segment = new StringSegment(SAMPLE_STRING, false); in testOffset() 37 StringSegment segment = new StringSegment(SAMPLE_STRING, false); in testLength() 51 StringSegment segment = new StringSegment(SAMPLE_STRING, false); in testCharAt() 61 StringSegment segment = new StringSegment(SAMPLE_STRING, false); in testGetCodePoint() 74 StringSegment segment = new StringSegment(SAMPLE_STRING, true); in testCommonPrefixLength()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberParserTest.java | 12 import android.icu.impl.StringSegment; 221 assertFalse(series.smokeTest(new StringSegment("x", false))); in testSeriesMatcher() 222 assertFalse(series.smokeTest(new StringSegment("-", false))); in testSeriesMatcher() 223 assertTrue(series.smokeTest(new StringSegment("+", false))); in testSeriesMatcher() 244 StringSegment segment = new StringSegment(input, false); in testSeriesMatcher() 282 StringSegment segment = new StringSegment(input, true); in testCombinedCurrencyMatcher() 293 StringSegment segment = new StringSegment(input, true); in testCombinedCurrencyMatcher() 337 StringSegment segment = new StringSegment(sampleParseableString, true); in testAffixPatternMatcher()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberParserTest.java | 11 import com.ibm.icu.impl.StringSegment; 218 assertFalse(series.smokeTest(new StringSegment("x", false))); in testSeriesMatcher() 219 assertFalse(series.smokeTest(new StringSegment("-", false))); in testSeriesMatcher() 220 assertTrue(series.smokeTest(new StringSegment("+", false))); in testSeriesMatcher() 241 StringSegment segment = new StringSegment(input, false); in testSeriesMatcher() 279 StringSegment segment = new StringSegment(input, true); in testCombinedCurrencyMatcher() 290 StringSegment segment = new StringSegment(input, true); in testCombinedCurrencyMatcher() 334 StringSegment segment = new StringSegment(sampleParseableString, true); in testAffixPatternMatcher()
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_stringsegment.cpp | 27 StringSegment segment(SAMPLE_STRING, false); in testOffset() 38 StringSegment segment(SAMPLE_STRING, false); in testLength() 51 StringSegment segment(SAMPLE_STRING, false); in testCharAt() 63 StringSegment segment(SAMPLE_STRING, false); in testGetCodePoint() 75 StringSegment segment(SAMPLE_STRING, false); in testCommonPrefixLength()
|
D | numbertest_parse.cpp | 203 assertFalse("", series.smokeTest(StringSegment(u"x", false))); in testSeriesMatcher() 204 assertFalse("", series.smokeTest(StringSegment(u"-", false))); in testSeriesMatcher() 205 assertTrue("", series.smokeTest(StringSegment(u"+", false))); in testSeriesMatcher() 228 StringSegment segment(input, false); in testSeriesMatcher() 277 StringSegment segment(input, false); in testCombinedCurrencyMatcher() 290 StringSegment segment(input, false); in testCombinedCurrencyMatcher() 345 StringSegment segment(sampleParseableString, false); in testAffixPatternMatcher()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/ |
D | SymbolMatcher.java | 7 import android.icu.impl.StringSegment; 38 public boolean match(StringSegment segment, ParsedNumber result) { in match() 65 public boolean smokeTest(StringSegment segment) { in smokeTest() 76 protected abstract void accept(StringSegment segment, ParsedNumber result); in accept()
|
D | ValidationMatcher.java | 6 import android.icu.impl.StringSegment; 15 public boolean match(StringSegment segment, ParsedNumber result) { in match() 20 public boolean smokeTest(StringSegment segment) { in smokeTest()
|
D | NumberParseMatcher.java | 6 import android.icu.impl.StringSegment; 47 public boolean match(StringSegment segment, ParsedNumber result); in match() 61 public boolean smokeTest(StringSegment segment); in smokeTest()
|
D | CodePointMatcher.java | 6 import android.icu.impl.StringSegment; 28 public boolean match(StringSegment segment, ParsedNumber result) { in match() 37 public boolean smokeTest(StringSegment segment) { in smokeTest()
|
D | SeriesMatcher.java | 9 import android.icu.impl.StringSegment; 40 public boolean match(StringSegment segment, ParsedNumber result) { in match() 90 public boolean smokeTest(StringSegment segment) { in smokeTest()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
D | SymbolMatcher.java | 6 import com.ibm.icu.impl.StringSegment; 36 public boolean match(StringSegment segment, ParsedNumber result) { in match() 63 public boolean smokeTest(StringSegment segment) { in smokeTest() 74 protected abstract void accept(StringSegment segment, ParsedNumber result); in accept()
|
D | ValidationMatcher.java | 5 import com.ibm.icu.impl.StringSegment; 13 public boolean match(StringSegment segment, ParsedNumber result) { in match() 18 public boolean smokeTest(StringSegment segment) { in smokeTest()
|
D | NumberParseMatcher.java | 5 import com.ibm.icu.impl.StringSegment; 44 public boolean match(StringSegment segment, ParsedNumber result); in match() 58 public boolean smokeTest(StringSegment segment); in smokeTest()
|
D | CodePointMatcher.java | 5 import com.ibm.icu.impl.StringSegment; 26 public boolean match(StringSegment segment, ParsedNumber result) { in match() 35 public boolean smokeTest(StringSegment segment) { in smokeTest()
|
D | SeriesMatcher.java | 8 import com.ibm.icu.impl.StringSegment; 38 public boolean match(StringSegment segment, ParsedNumber result) { in match() 88 public boolean smokeTest(StringSegment segment) { in smokeTest()
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | NumberSkeletonImpl.java | 13 import android.icu.impl.StringSegment; 511 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton() 597 …private static ParseState parseStem(StringSegment segment, CharsTrie stemTrie, MacroProps macros) { in parseStem() 751 … private static ParseState parseOption(ParseState stem, StringSegment segment, MacroProps macros) { in parseOption() 885 private static boolean parseExponentWidthOption(StringSegment segment, MacroProps macros) { in parseExponentWidthOption() 912 private static boolean parseExponentSignOption(StringSegment segment, MacroProps macros) { in parseExponentSignOption() 929 private static void parseCurrencyOption(StringSegment segment, MacroProps macros) { in parseCurrencyOption() 945 private static void parseMeasureUnitOption(StringSegment segment, MacroProps macros) { in parseMeasureUnitOption() 973 private static void parseMeasurePerUnitOption(StringSegment segment, MacroProps macros) { in parseMeasurePerUnitOption() 982 private static void parseFractionStem(StringSegment segment, MacroProps macros) { in parseFractionStem() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberSkeletonImpl.java | 12 import com.ibm.icu.impl.StringSegment; 510 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton() 596 …private static ParseState parseStem(StringSegment segment, CharsTrie stemTrie, MacroProps macros) { in parseStem() 750 … private static ParseState parseOption(ParseState stem, StringSegment segment, MacroProps macros) { in parseOption() 884 private static boolean parseExponentWidthOption(StringSegment segment, MacroProps macros) { in parseExponentWidthOption() 911 private static boolean parseExponentSignOption(StringSegment segment, MacroProps macros) { in parseExponentSignOption() 928 private static void parseCurrencyOption(StringSegment segment, MacroProps macros) { in parseCurrencyOption() 944 private static void parseMeasureUnitOption(StringSegment segment, MacroProps macros) { in parseMeasureUnitOption() 972 private static void parseMeasurePerUnitOption(StringSegment segment, MacroProps macros) { in parseMeasurePerUnitOption() 981 private static void parseFractionStem(StringSegment segment, MacroProps macros) { in parseFractionStem() [all …]
|