/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | FilteredNormalizer2.java | 125 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized() local 127 int spanLimit=set.span(s, prevSpanLimit, spanCondition); in isNormalized() 128 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in isNormalized() 129 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized() 134 spanCondition=UnicodeSet.SpanCondition.NOT_CONTAINED; in isNormalized() 148 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck() local 150 int spanLimit=set.span(s, prevSpanLimit, spanCondition); in quickCheck() 151 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in quickCheck() 152 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck() 161 spanCondition=UnicodeSet.SpanCondition.NOT_CONTAINED; in quickCheck() [all …]
|
D | UnicodeSetSpanner.java | 178 … public int countIn(CharSequence sequence, CountMethod countMethod, SpanCondition spanCondition) { in countIn() argument 181 SpanCondition skipSpan = spanCondition == SpanCondition.NOT_CONTAINED ? SpanCondition.SIMPLE in countIn() 191 start = unicodeSet.span(sequence, endOfSpan, spanCondition); in countIn() 197 start = unicodeSet.spanAndCount(sequence, endOfSpan, spanCondition, spanCount); in countIn() 230 public String deleteFrom(CharSequence sequence, SpanCondition spanCondition) { in deleteFrom() argument 231 return replaceFrom(sequence, "", CountMethod.WHOLE_SPAN, spanCondition); in deleteFrom() 288 SpanCondition spanCondition) { in replaceFrom() argument 289 SpanCondition copySpan = spanCondition == SpanCondition.NOT_CONTAINED ? SpanCondition.SIMPLE in replaceFrom() 301 endModify = unicodeSet.span(sequence, endCopy, spanCondition); in replaceFrom() 306 endModify = unicodeSet.spanAndCount(sequence, endCopy, spanCondition, spanCount); in replaceFrom() [all …]
|
D | UnicodeSet.java | 3981 public int span(CharSequence s, SpanCondition spanCondition) { in span() argument 3982 return span(s, 0, spanCondition); in span() 3996 public int span(CharSequence s, int start, SpanCondition spanCondition) { in span() argument 4005 return bmpSet.span(s, start, spanCondition, null); in span() 4008 return stringSpan.span(s, start, spanCondition); in span() 4010 …int which = spanCondition == SpanCondition.NOT_CONTAINED ? UnicodeSetStringSpan.FWD_UTF16_NOT_CONT… in span() 4014 return strSpan.span(s, start, spanCondition); in span() 4018 return spanCodePointsAndCount(s, start, spanCondition, null); in span() 4030 …public int spanAndCount(CharSequence s, int start, SpanCondition spanCondition, OutputInt outCount… in spanAndCount() argument 4043 return stringSpan.spanAndCount(s, start, spanCondition, outCount); in spanAndCount() [all …]
|
/external/icu/icu4c/source/common/ |
D | filterednormalizer2.cpp | 58 USetSpanCondition spanCondition, in normalize() argument 62 int32_t spanLimit=set.span(src, prevSpanLimit, spanCondition); in normalize() 64 if(spanCondition==USET_SPAN_NOT_CONTAINED) { in normalize() 68 spanCondition=USET_SPAN_SIMPLE; in normalize() 79 spanCondition=USET_SPAN_NOT_CONTAINED; in normalize() 179 USetSpanCondition spanCondition=USET_SPAN_SIMPLE; in isNormalized() local 181 int32_t spanLimit=set.span(s, prevSpanLimit, spanCondition); in isNormalized() 182 if(spanCondition==USET_SPAN_NOT_CONTAINED) { in isNormalized() 183 spanCondition=USET_SPAN_SIMPLE; in isNormalized() 190 spanCondition=USET_SPAN_NOT_CONTAINED; in isNormalized() [all …]
|
D | bmpset.cpp | 308 BMPSet::span(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { in span() 311 if(spanCondition) { in span() 397 BMPSet::spanBack(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { in spanBack() 400 if(spanCondition) { in spanBack() 495 BMPSet::spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const { in spanUTF8() 500 if(spanCondition) { in spanUTF8() 518 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in spanUTF8() 519 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in spanUTF8() 541 if(asciiBytes[0x80]!=spanCondition) { in spanUTF8() 547 if(asciiBytes[0x80]!=spanCondition) { in spanUTF8() [all …]
|
D | bmpset.h | 48 const UChar *span(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const; 55 … const UChar *spanBack(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const; 62 … const uint8_t *spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const; 69 int32_t spanBackUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const;
|
D | uniset.cpp | 2133 int32_t UnicodeSet::span(const UChar *s, int32_t length, USetSpanCondition spanCondition) const { in span() 2135 return (int32_t)(bmpSet->span(s, s+length, spanCondition)-s); in span() 2144 return stringSpan->span(s, length, spanCondition); in span() 2146 uint32_t which= spanCondition==USET_SPAN_NOT_CONTAINED ? in span() 2151 return strSpan.span(s, length, spanCondition); in span() 2155 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in span() 2156 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in span() 2163 if(spanCondition!=contains(c)) { in span() 2170 int32_t UnicodeSet::spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const… in spanBack() 2172 return (int32_t)(bmpSet->spanBack(s, s+length, spanCondition)-s); in spanBack() [all …]
|
D | unisetspan.h | 75 int32_t span(const UChar *s, int32_t length, USetSpanCondition spanCondition) const; 77 int32_t spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const; 79 int32_t spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const; 81 int32_t spanBackUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const;
|
D | unisetspan.cpp | 632 int32_t UnicodeSetStringSpan::span(const UChar *s, int32_t length, USetSpanCondition spanCondition)… in span() 633 if(spanCondition==USET_SPAN_NOT_CONTAINED) { in span() 643 if(spanCondition==USET_SPAN_CONTAINED) { in span() 650 if(spanCondition==USET_SPAN_CONTAINED) { in span() 792 …odeSetStringSpan::spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const { in spanBack() 793 if(spanCondition==USET_SPAN_NOT_CONTAINED) { in spanBack() 804 if(spanCondition==USET_SPAN_CONTAINED) { in spanBack() 814 if(spanCondition==USET_SPAN_CONTAINED) { in spanBack() 954 …eSetStringSpan::spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const { in spanUTF8() 955 if(spanCondition==USET_SPAN_NOT_CONTAINED) { in spanUTF8() [all …]
|
D | uset.cpp | 201 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition) { in uset_span() argument 202 return ((UnicodeSet*) set)->UnicodeSet::span(s, length, spanCondition); in uset_span() 206 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition) { in uset_spanBack() argument 207 return ((UnicodeSet*) set)->UnicodeSet::spanBack(s, length, spanCondition); in uset_spanBack() 211 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition) { in uset_spanUTF8() argument 212 return ((UnicodeSet*) set)->UnicodeSet::spanUTF8(s, length, spanCondition); in uset_spanUTF8() 216 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition) { in uset_spanBackUTF8() argument 217 return ((UnicodeSet*) set)->UnicodeSet::spanBackUTF8(s, length, spanCondition); in uset_spanBackUTF8()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UnicodeSetStringSpanTest.java | 173 SpanCondition spanCondition) { in containsSpanUTF16() argument 178 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanUTF16() 192 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanUTF16() 226 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanUTF16() 270 SpanCondition spanCondition) { in containsSpanBackUTF16() argument 277 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16() 291 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16() 324 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanBackUTF16() 385 static SpanCondition invertSpanCondition(SpanCondition spanCondition, SpanCondition contained) { in invertSpanCondition() argument 386 return spanCondition == SpanCondition.NOT_CONTAINED ? contained in invertSpanCondition() [all …]
|
D | UnicodeSetTest.java | 2478 …vate void checkCodePoints(String a, String b, CountMethod quantifier, SpanCondition spanCondition, in checkCodePoints() argument 2484 callCountIn(m, ab, quantifier, spanCondition) in checkCodePoints() 2501 …ckCountIn(UnicodeSetSpanner m, CountMethod countMethod, SpanCondition spanCondition, String target… in checkCountIn() argument 2502 final String message = "countIn " + countMethod + ", " + spanCondition; in checkCountIn() 2503 assertEquals(message, callCountIn(m, target, countMethod, spanCondition), expected); in checkCountIn() 2506 …untIn(UnicodeSetSpanner m, final String ab, CountMethod countMethod, SpanCondition spanCondition) { in callCountIn() argument 2507 return spanCondition != SpanCondition.SIMPLE ? m.countIn(ab, countMethod, spanCondition) in callCountIn() 2555 private int checkSpan(String longString, UnicodeSet us, SpanCondition spanCondition) { in checkSpan() argument 2558 int limit = us.span(longString, start, spanCondition); in checkSpan()
|
/external/icu/icu4c/source/common/unicode/ |
D | uniset.h | 870 int32_t span(const UChar *s, int32_t length, USetSpanCondition spanCondition) const; 884 … inline int32_t span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const; 903 int32_t spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const; 918 …inline int32_t spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) co… 938 int32_t spanUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const; 957 int32_t spanBackUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const; 1669 …_t UnicodeSet::span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const { in span() argument 1676 return start+span(s.getBuffer()+start, sLength-start, spanCondition); in span() 1679 …nicodeSet::spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) const { in spanBack() argument 1686 return spanBack(s.getBuffer(), limit, spanCondition); in spanBack()
|
D | uset.h | 932 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition); 953 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition); 975 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition); 996 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);
|
D | normalizer2.h | 642 USetSpanCondition spanCondition,
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | UnicodeSetStringSpan.java | 363 public int span(CharSequence s, int start, SpanCondition spanCondition) { in span() argument 364 if (spanCondition == SpanCondition.NOT_CONTAINED) { in span() 371 return spanWithStrings(s, start, spanLimit, spanCondition); in span() 381 SpanCondition spanCondition) { in spanWithStrings() argument 384 if (spanCondition == SpanCondition.CONTAINED) { in spanWithStrings() 394 if (spanCondition == SpanCondition.CONTAINED) { in spanWithStrings() 551 public int spanAndCount(CharSequence s, int start, SpanCondition spanCondition, in spanAndCount() argument 553 if (spanCondition == SpanCondition.NOT_CONTAINED) { in spanAndCount() 558 if (spanCondition == SpanCondition.CONTAINED) { in spanAndCount() 641 public synchronized int spanBack(CharSequence s, int length, SpanCondition spanCondition) { in spanBack() argument [all …]
|
D | BMPSet.java | 137 public final int span(CharSequence s, int start, SpanCondition spanCondition, in span() argument 143 if (SpanCondition.NOT_CONTAINED != spanCondition) { in span() 236 public final int spanBack(CharSequence s, int limit, SpanCondition spanCondition) { in spanBack() argument 239 if (SpanCondition.NOT_CONTAINED != spanCondition) { in spanBack()
|
/external/icu/icu4c/source/test/intltest/ |
D | usettest.cpp | 2418 USetSpanCondition spanCondition) { in containsSpanUTF16() argument 2421 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in containsSpanUTF16() 2422 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in containsSpanUTF16() 2429 if(realSet.contains(c)!=spanCondition) { in containsSpanUTF16() 2434 } else if(spanCondition==USET_SPAN_NOT_CONTAINED) { in containsSpanUTF16() 2472 if(spanCondition==USET_SPAN_CONTAINED) { in containsSpanUTF16() 2516 USetSpanCondition spanCondition) { in containsSpanBackUTF16() argument 2522 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in containsSpanBackUTF16() 2523 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in containsSpanBackUTF16() 2530 if(realSet.contains(c)!=spanCondition) { in containsSpanBackUTF16() [all …]
|