/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | FilteredNormalizer2.java | 127 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized() local 129 int spanLimit=set.span(s, prevSpanLimit, spanCondition); in isNormalized() 130 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in isNormalized() 131 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized() 136 spanCondition=UnicodeSet.SpanCondition.NOT_CONTAINED; in isNormalized() 150 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck() local 152 int spanLimit=set.span(s, prevSpanLimit, spanCondition); in quickCheck() 153 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in quickCheck() 154 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck() 163 spanCondition=UnicodeSet.SpanCondition.NOT_CONTAINED; in quickCheck() [all …]
|
D | UnicodeSetSpanner.java | 169 … public int countIn(CharSequence sequence, CountMethod countMethod, SpanCondition spanCondition) { in countIn() argument 172 SpanCondition skipSpan = spanCondition == SpanCondition.NOT_CONTAINED ? SpanCondition.SIMPLE in countIn() 182 start = unicodeSet.span(sequence, endOfSpan, spanCondition); in countIn() 188 start = unicodeSet.spanAndCount(sequence, endOfSpan, spanCondition, spanCount); in countIn() 219 public String deleteFrom(CharSequence sequence, SpanCondition spanCondition) { in deleteFrom() argument 220 return replaceFrom(sequence, "", CountMethod.WHOLE_SPAN, spanCondition); in deleteFrom() 274 SpanCondition spanCondition) { in replaceFrom() argument 275 SpanCondition copySpan = spanCondition == SpanCondition.NOT_CONTAINED ? SpanCondition.SIMPLE in replaceFrom() 287 endModify = unicodeSet.span(sequence, endCopy, spanCondition); in replaceFrom() 292 endModify = unicodeSet.spanAndCount(sequence, endCopy, spanCondition, spanCount); in replaceFrom() [all …]
|
D | UnicodeSet.java | 4049 public int span(CharSequence s, SpanCondition spanCondition) { in span() argument 4050 return span(s, 0, spanCondition); in span() 4064 public int span(CharSequence s, int start, SpanCondition spanCondition) { in span() argument 4073 return bmpSet.span(s, start, spanCondition, null); in span() 4076 return stringSpan.span(s, start, spanCondition); in span() 4078 …int which = spanCondition == SpanCondition.NOT_CONTAINED ? UnicodeSetStringSpan.FWD_UTF16_NOT_CONT… in span() 4082 return strSpan.span(s, start, spanCondition); in span() 4086 return spanCodePointsAndCount(s, start, spanCondition, null); in span() 4098 …public int spanAndCount(CharSequence s, int start, SpanCondition spanCondition, OutputInt outCount… in spanAndCount() argument 4111 return stringSpan.spanAndCount(s, start, spanCondition, outCount); in spanAndCount() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | FilteredNormalizer2.java | 118 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized() local 120 int spanLimit=set.span(s, prevSpanLimit, spanCondition); in isNormalized() 121 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in isNormalized() 122 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized() 127 spanCondition=UnicodeSet.SpanCondition.NOT_CONTAINED; in isNormalized() 140 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck() local 142 int spanLimit=set.span(s, prevSpanLimit, spanCondition); in quickCheck() 143 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in quickCheck() 144 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck() 153 spanCondition=UnicodeSet.SpanCondition.NOT_CONTAINED; in quickCheck() [all …]
|
D | UnicodeSetSpanner.java | 148 … public int countIn(CharSequence sequence, CountMethod countMethod, SpanCondition spanCondition) { in countIn() argument 151 SpanCondition skipSpan = spanCondition == SpanCondition.NOT_CONTAINED ? SpanCondition.SIMPLE in countIn() 161 start = unicodeSet.span(sequence, endOfSpan, spanCondition); in countIn() 167 start = unicodeSet.spanAndCount(sequence, endOfSpan, spanCondition, spanCount); in countIn() 194 public String deleteFrom(CharSequence sequence, SpanCondition spanCondition) { in deleteFrom() argument 195 return replaceFrom(sequence, "", CountMethod.WHOLE_SPAN, spanCondition); in deleteFrom() 243 SpanCondition spanCondition) { in replaceFrom() argument 244 SpanCondition copySpan = spanCondition == SpanCondition.NOT_CONTAINED ? SpanCondition.SIMPLE in replaceFrom() 256 endModify = unicodeSet.span(sequence, endCopy, spanCondition); in replaceFrom() 261 endModify = unicodeSet.spanAndCount(sequence, endCopy, spanCondition, spanCount); in replaceFrom() [all …]
|
D | UnicodeSet.java | 3957 public int span(CharSequence s, SpanCondition spanCondition) { in span() argument 3958 return span(s, 0, spanCondition); in span() 3971 public int span(CharSequence s, int start, SpanCondition spanCondition) { in span() argument 3980 return bmpSet.span(s, start, spanCondition, null); in span() 3983 return stringSpan.span(s, start, spanCondition); in span() 3985 …int which = spanCondition == SpanCondition.NOT_CONTAINED ? UnicodeSetStringSpan.FWD_UTF16_NOT_CONT… in span() 3989 return strSpan.span(s, start, spanCondition); in span() 3993 return spanCodePointsAndCount(s, start, spanCondition, null); in span() 4006 …public int spanAndCount(CharSequence s, int start, SpanCondition spanCondition, OutputInt outCount… in spanAndCount() argument 4019 return stringSpan.spanAndCount(s, start, spanCondition, outCount); in spanAndCount() [all …]
|
/external/icu/icu4c/source/common/ |
D | filterednormalizer2.cpp | 60 USetSpanCondition spanCondition, in normalize() argument 64 int32_t spanLimit=set.span(src, prevSpanLimit, spanCondition); in normalize() 66 if(spanCondition==USET_SPAN_NOT_CONTAINED) { in normalize() 70 spanCondition=USET_SPAN_SIMPLE; in normalize() 81 spanCondition=USET_SPAN_NOT_CONTAINED; in normalize() 181 USetSpanCondition spanCondition=USET_SPAN_SIMPLE; in isNormalized() local 183 int32_t spanLimit=set.span(s, prevSpanLimit, spanCondition); in isNormalized() 184 if(spanCondition==USET_SPAN_NOT_CONTAINED) { in isNormalized() 185 spanCondition=USET_SPAN_SIMPLE; in isNormalized() 192 spanCondition=USET_SPAN_NOT_CONTAINED; in isNormalized() [all …]
|
D | bmpset.cpp | 310 BMPSet::span(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { in span() 313 if(spanCondition) { in span() 399 BMPSet::spanBack(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { in spanBack() 402 if(spanCondition) { in spanBack() 497 BMPSet::spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const { in spanUTF8() 502 if(spanCondition) { in spanUTF8() 520 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in spanUTF8() 521 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in spanUTF8() 543 if(asciiBytes[0x80]!=spanCondition) { in spanUTF8() 549 if(asciiBytes[0x80]!=spanCondition) { in spanUTF8() [all …]
|
D | bmpset.h | 50 const UChar *span(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const; 57 … const UChar *spanBack(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const; 64 … const uint8_t *spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const; 71 int32_t spanBackUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const;
|
D | uniset.cpp | 2212 int32_t UnicodeSet::span(const UChar *s, int32_t length, USetSpanCondition spanCondition) const { in span() 2214 return (int32_t)(bmpSet->span(s, s+length, spanCondition)-s); in span() 2223 return stringSpan->span(s, length, spanCondition); in span() 2225 uint32_t which= spanCondition==USET_SPAN_NOT_CONTAINED ? in span() 2230 return strSpan.span(s, length, spanCondition); in span() 2234 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in span() 2235 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in span() 2242 if(spanCondition!=contains(c)) { in span() 2249 int32_t UnicodeSet::spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const… in spanBack() 2251 return (int32_t)(bmpSet->spanBack(s, s+length, spanCondition)-s); in spanBack() [all …]
|
D | unisetspan.h | 77 int32_t span(const UChar *s, int32_t length, USetSpanCondition spanCondition) const; 79 int32_t spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const; 81 int32_t spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const; 83 int32_t spanBackUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const;
|
D | unisetspan.cpp | 634 int32_t UnicodeSetStringSpan::span(const UChar *s, int32_t length, USetSpanCondition spanCondition)… in span() 635 if(spanCondition==USET_SPAN_NOT_CONTAINED) { in span() 645 if(spanCondition==USET_SPAN_CONTAINED) { in span() 652 if(spanCondition==USET_SPAN_CONTAINED) { in span() 794 …odeSetStringSpan::spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const { in spanBack() 795 if(spanCondition==USET_SPAN_NOT_CONTAINED) { in spanBack() 806 if(spanCondition==USET_SPAN_CONTAINED) { in spanBack() 816 if(spanCondition==USET_SPAN_CONTAINED) { in spanBack() 956 …eSetStringSpan::spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const { in spanUTF8() 957 if(spanCondition==USET_SPAN_NOT_CONTAINED) { in spanUTF8() [all …]
|
D | uset.cpp | 203 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition) { in uset_span() argument 204 return ((UnicodeSet*) set)->UnicodeSet::span(s, length, spanCondition); in uset_span() 208 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition) { in uset_spanBack() argument 209 return ((UnicodeSet*) set)->UnicodeSet::spanBack(s, length, spanCondition); in uset_spanBack() 213 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition) { in uset_spanUTF8() argument 214 return ((UnicodeSet*) set)->UnicodeSet::spanUTF8(s, length, spanCondition); in uset_spanUTF8() 218 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition) { in uset_spanBackUTF8() argument 219 return ((UnicodeSet*) set)->UnicodeSet::spanBackUTF8(s, length, spanCondition); in uset_spanBackUTF8()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
D | UnicodeSetStringSpanTest.java | 176 SpanCondition spanCondition) { in containsSpanUTF16() argument 181 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanUTF16() 195 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanUTF16() 229 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanUTF16() 273 SpanCondition spanCondition) { in containsSpanBackUTF16() argument 280 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16() 294 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16() 327 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanBackUTF16() 388 static SpanCondition invertSpanCondition(SpanCondition spanCondition, SpanCondition contained) { in invertSpanCondition() argument 389 return spanCondition == SpanCondition.NOT_CONTAINED ? contained in invertSpanCondition() [all …]
|
D | UnicodeSetTest.java | 2515 …vate void checkCodePoints(String a, String b, CountMethod quantifier, SpanCondition spanCondition, in checkCodePoints() argument 2521 callCountIn(m, ab, quantifier, spanCondition) in checkCodePoints() 2539 …ckCountIn(UnicodeSetSpanner m, CountMethod countMethod, SpanCondition spanCondition, String target… in checkCountIn() argument 2540 final String message = "countIn " + countMethod + ", " + spanCondition; in checkCountIn() 2541 assertEquals(message, callCountIn(m, target, countMethod, spanCondition), expected); in checkCountIn() 2544 …untIn(UnicodeSetSpanner m, final String ab, CountMethod countMethod, SpanCondition spanCondition) { in callCountIn() argument 2545 return spanCondition != SpanCondition.SIMPLE ? m.countIn(ab, countMethod, spanCondition) in callCountIn() 2594 private int checkSpan(String longString, UnicodeSet us, SpanCondition spanCondition) { in checkSpan() argument 2597 int limit = us.span(longString, start, spanCondition); in checkSpan()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UnicodeSetStringSpanTest.java | 175 SpanCondition spanCondition) { in containsSpanUTF16() argument 180 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanUTF16() 194 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanUTF16() 228 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanUTF16() 272 SpanCondition spanCondition) { in containsSpanBackUTF16() argument 279 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16() 293 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16() 326 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanBackUTF16() 387 static SpanCondition invertSpanCondition(SpanCondition spanCondition, SpanCondition contained) { in invertSpanCondition() argument 388 return spanCondition == SpanCondition.NOT_CONTAINED ? contained in invertSpanCondition() [all …]
|
D | UnicodeSetTest.java | 2514 …vate void checkCodePoints(String a, String b, CountMethod quantifier, SpanCondition spanCondition, in checkCodePoints() argument 2520 callCountIn(m, ab, quantifier, spanCondition) in checkCodePoints() 2538 …ckCountIn(UnicodeSetSpanner m, CountMethod countMethod, SpanCondition spanCondition, String target… in checkCountIn() argument 2539 final String message = "countIn " + countMethod + ", " + spanCondition; in checkCountIn() 2540 assertEquals(message, callCountIn(m, target, countMethod, spanCondition), expected); in checkCountIn() 2543 …untIn(UnicodeSetSpanner m, final String ab, CountMethod countMethod, SpanCondition spanCondition) { in callCountIn() argument 2544 return spanCondition != SpanCondition.SIMPLE ? m.countIn(ab, countMethod, spanCondition) in callCountIn() 2593 private int checkSpan(String longString, UnicodeSet us, SpanCondition spanCondition) { in checkSpan() argument 2596 int limit = us.span(longString, start, spanCondition); in checkSpan()
|
/external/icu/icu4c/source/common/unicode/ |
D | uniset.h | 894 int32_t span(const UChar *s, int32_t length, USetSpanCondition spanCondition) const; 908 … inline int32_t span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const; 927 int32_t spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const; 942 …inline int32_t spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) co… 962 int32_t spanUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const; 981 int32_t spanBackUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const; 1693 …_t UnicodeSet::span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const { in span() argument 1700 return start+span(s.getBuffer()+start, sLength-start, spanCondition); in span() 1703 …nicodeSet::spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) const { in spanBack() argument 1710 return spanBack(s.getBuffer(), limit, spanCondition); in spanBack()
|
D | uset.h | 936 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition); 957 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition); 979 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition); 1000 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);
|
D | normalizer2.h | 644 USetSpanCondition spanCondition,
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | UnicodeSetStringSpan.java | 371 public int span(CharSequence s, int start, SpanCondition spanCondition) { in span() argument 372 if (spanCondition == SpanCondition.NOT_CONTAINED) { in span() 379 return spanWithStrings(s, start, spanLimit, spanCondition); in span() 389 SpanCondition spanCondition) { in spanWithStrings() argument 392 if (spanCondition == SpanCondition.CONTAINED) { in spanWithStrings() 402 if (spanCondition == SpanCondition.CONTAINED) { in spanWithStrings() 559 public int spanAndCount(CharSequence s, int start, SpanCondition spanCondition, in spanAndCount() argument 561 if (spanCondition == SpanCondition.NOT_CONTAINED) { in spanAndCount() 566 if (spanCondition == SpanCondition.CONTAINED) { in spanAndCount() 649 public synchronized int spanBack(CharSequence s, int length, SpanCondition spanCondition) { in spanBack() argument [all …]
|
D | BMPSet.java | 141 public final int span(CharSequence s, int start, SpanCondition spanCondition, in span() argument 147 if (SpanCondition.NOT_CONTAINED != spanCondition) { in span() 240 public final int spanBack(CharSequence s, int limit, SpanCondition spanCondition) { in spanBack() argument 243 if (SpanCondition.NOT_CONTAINED != spanCondition) { in spanBack()
|
/external/icu/icu4c/source/test/intltest/ |
D | usettest.cpp | 2475 USetSpanCondition spanCondition) { in containsSpanUTF16() argument 2478 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in containsSpanUTF16() 2479 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in containsSpanUTF16() 2486 if(realSet.contains(c)!=spanCondition) { in containsSpanUTF16() 2491 } else if(spanCondition==USET_SPAN_NOT_CONTAINED) { in containsSpanUTF16() 2529 if(spanCondition==USET_SPAN_CONTAINED) { in containsSpanUTF16() 2573 USetSpanCondition spanCondition) { in containsSpanBackUTF16() argument 2579 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in containsSpanBackUTF16() 2580 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in containsSpanBackUTF16() 2587 if(realSet.contains(c)!=spanCondition) { in containsSpanBackUTF16() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | UnicodeSetStringSpan.java | 367 public int span(CharSequence s, int start, SpanCondition spanCondition) { in span() argument 368 if (spanCondition == SpanCondition.NOT_CONTAINED) { in span() 375 return spanWithStrings(s, start, spanLimit, spanCondition); in span() 385 SpanCondition spanCondition) { in spanWithStrings() argument 388 if (spanCondition == SpanCondition.CONTAINED) { in spanWithStrings() 398 if (spanCondition == SpanCondition.CONTAINED) { in spanWithStrings() 555 public int spanAndCount(CharSequence s, int start, SpanCondition spanCondition, in spanAndCount() argument 557 if (spanCondition == SpanCondition.NOT_CONTAINED) { in spanAndCount() 562 if (spanCondition == SpanCondition.CONTAINED) { in spanAndCount() 645 public synchronized int spanBack(CharSequence s, int length, SpanCondition spanCondition) { in spanBack() argument [all …]
|
D | BMPSet.java | 139 public final int span(CharSequence s, int start, SpanCondition spanCondition, in span() argument 145 if (SpanCondition.NOT_CONTAINED != spanCondition) { in span() 238 public final int spanBack(CharSequence s, int limit, SpanCondition spanCondition) { in spanBack() argument 241 if (SpanCondition.NOT_CONTAINED != spanCondition) { in spanBack()
|