Home
last modified time | relevance | path

Searched refs:StringSegment (Results 1 – 25 of 87) sorted by relevance

1234

/external/icu/icu4c/source/i18n/
Dstring_segment.cpp21 StringSegment::StringSegment(const UnicodeString& str, bool ignoreCase) in StringSegment() function in StringSegment
25 int32_t StringSegment::getOffset() const { in getOffset()
29 void StringSegment::setOffset(int32_t start) { in setOffset()
33 void StringSegment::adjustOffset(int32_t delta) { in adjustOffset()
37 void StringSegment::adjustOffsetByCodePoint() { in adjustOffsetByCodePoint()
41 void StringSegment::setLength(int32_t length) { in setLength()
45 void StringSegment::resetLength() { in resetLength()
49 int32_t StringSegment::length() const { in length()
53 char16_t StringSegment::charAt(int32_t index) const { in charAt()
57 UChar32 StringSegment::codePointAt(int32_t index) const { in codePointAt()
[all …]
Dnumber_skeletons.h169 ParseState parseStem(const StringSegment& segment, const UCharsTrie& stemTrie, SeenMacroProps& seen,
179 parseOption(ParseState stem, const StringSegment& segment, MacroProps& macros, UErrorCode& status);
232 bool parseExponentWidthOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
237 bool parseExponentSignOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
239 void parseCurrencyOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
244 void parseMeasureUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
247 void parseMeasurePerUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status…
253 void parseIdentifierUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status…
255 void parseUnitUsageOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
257 void parseFractionStem(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
[all …]
Dnumparse_symbols.h30 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 …]
Dnumparse_symbols.cpp35 bool SymbolMatcher::match(StringSegment& segment, ParsedNumber& result, UErrorCode&) const { in match()
62 bool SymbolMatcher::smokeTest(const StringSegment& segment) const { in smokeTest()
92 void IgnorablesMatcher::accept(StringSegment&, ParsedNumber&) const { in accept() argument
105 void InfinityMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept()
120 void MinusSignMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept()
134 void NanMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept()
151 void PaddingMatcher::accept(StringSegment&, ParsedNumber&) const { in accept() argument
164 void PercentMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept()
178 void PermilleMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept()
193 void PlusSignMatcher::accept(StringSegment& segment, ParsedNumber& result) const { in accept()
Dnumparse_currency.h40 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;
Dnumparse_decimal.h25 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/android_icu4j/src/main/tests/android/icu/dev/test/impl/
DStringSegmentTest.java10 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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DStringSegmentTest.java9 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/libicu/cts_headers/
Dnumber_skeletons.h169 ParseState parseStem(const StringSegment& segment, const UCharsTrie& stemTrie, SeenMacroProps& seen,
179 parseOption(ParseState stem, const StringSegment& segment, MacroProps& macros, UErrorCode& status);
232 bool parseExponentWidthOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
237 bool parseExponentSignOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
239 void parseCurrencyOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
244 void parseMeasureUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
247 void parseMeasurePerUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status…
253 void parseIdentifierUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status…
255 void parseUnitUsageOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
257 void parseFractionStem(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
[all …]
Dnumparse_symbols.h30 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 …]
Dnumparse_currency.h40 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;
Dnumparse_decimal.h25 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/pigweed/pw_tokenizer/
Ddecode.cc104 StringSegment StringSegment::ParseFormatSpec(const char* format) { in ParseFormatSpec()
106 return StringSegment(); in ParseFormatSpec()
147 return StringSegment(); in ParseFormatSpec()
153 StringSegment::ArgSize StringSegment::VarargSize(std::array<char, 2> length, in VarargSize()
174 DecodedArg StringSegment::DecodeString( in DecodeString()
203 DecodedArg StringSegment::DecodeInteger( in DecodeInteger()
231 DecodedArg StringSegment::DecodeFloatingPoint( in DecodeFloatingPoint()
243 DecodedArg StringSegment::Decode( in Decode()
263 DecodedArg StringSegment::Skip() const { in Skip()
310 if (StringSegment spec = StringSegment::ParseFormatSpec(format); in FormatString()
/external/pigweed/pw_tokenizer/public/pw_tokenizer/internal/
Ddecode.h122 class StringSegment {
127 static StringSegment ParseFormatSpec(const char* format);
130 StringSegment(const std::string_view& text) : StringSegment(text, kLiteral) {} in StringSegment() function
164 StringSegment() : type_(kLiteral) {} in StringSegment() function
166 StringSegment(const std::string_view& text, Type type) in StringSegment() function
167 : StringSegment(text, type, VarargSize<void*>()) {} in StringSegment()
169 StringSegment(const std::string_view& text, Type type, ArgSize local_size) in StringSegment() function
240 std::vector<StringSegment> segments_;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberParserTest.java12 import android.icu.impl.StringSegment;
225 assertFalse(series.smokeTest(new StringSegment("x", false))); in testSeriesMatcher()
226 assertFalse(series.smokeTest(new StringSegment("-", false))); in testSeriesMatcher()
227 assertTrue(series.smokeTest(new StringSegment("+", false))); in testSeriesMatcher()
248 StringSegment segment = new StringSegment(input, false); in testSeriesMatcher()
286 StringSegment segment = new StringSegment(input, true); in testCombinedCurrencyMatcher()
297 StringSegment segment = new StringSegment(input, true); in testCombinedCurrencyMatcher()
341 StringSegment segment = new StringSegment(sampleParseableString, true); in testAffixPatternMatcher()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberParserTest.java11 import com.ibm.icu.impl.StringSegment;
222 assertFalse(series.smokeTest(new StringSegment("x", false))); in testSeriesMatcher()
223 assertFalse(series.smokeTest(new StringSegment("-", false))); in testSeriesMatcher()
224 assertTrue(series.smokeTest(new StringSegment("+", false))); in testSeriesMatcher()
245 StringSegment segment = new StringSegment(input, false); in testSeriesMatcher()
283 StringSegment segment = new StringSegment(input, true); in testCombinedCurrencyMatcher()
294 StringSegment segment = new StringSegment(input, true); in testCombinedCurrencyMatcher()
338 StringSegment segment = new StringSegment(sampleParseableString, true); in testAffixPatternMatcher()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DSymbolMatcher.java7 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()
DValidationMatcher.java6 import android.icu.impl.StringSegment;
15 public boolean match(StringSegment segment, ParsedNumber result) { in match()
20 public boolean smokeTest(StringSegment segment) { in smokeTest()
DNumberParseMatcher.java6 import android.icu.impl.StringSegment;
47 public boolean match(StringSegment segment, ParsedNumber result); in match()
61 public boolean smokeTest(StringSegment segment); in smokeTest()
DCodePointMatcher.java6 import android.icu.impl.StringSegment;
28 public boolean match(StringSegment segment, ParsedNumber result) { in match()
37 public boolean smokeTest(StringSegment segment) { in smokeTest()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DSymbolMatcher.java6 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()
DValidationMatcher.java5 import com.ibm.icu.impl.StringSegment;
13 public boolean match(StringSegment segment, ParsedNumber result) { in match()
18 public boolean smokeTest(StringSegment segment) { in smokeTest()
DNumberParseMatcher.java5 import com.ibm.icu.impl.StringSegment;
44 public boolean match(StringSegment segment, ParsedNumber result); in match()
58 public boolean smokeTest(StringSegment segment); in smokeTest()
DCodePointMatcher.java5 import com.ibm.icu.impl.StringSegment;
26 public boolean match(StringSegment segment, ParsedNumber result) { in match()
35 public boolean smokeTest(StringSegment segment) { in smokeTest()
/external/icu/icu4c/source/test/intltest/
Dstring_segment_test.cpp40 StringSegment segment(sampleString, false); in testOffset()
53 StringSegment segment(sampleString, false); in testLength()
68 StringSegment segment(sampleString, false); in testCharAt()
82 StringSegment segment(sampleString, false); in testGetCodePoint()
96 StringSegment segment(sampleString, false); in testCommonPrefixLength()

1234