Home
last modified time | relevance | path

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

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DFilteredNormalizer2.java125 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 …]
DUnicodeSetSpanner.java167 … public int countIn(CharSequence sequence, CountMethod countMethod, SpanCondition spanCondition) { in countIn() argument
170 SpanCondition skipSpan = spanCondition == SpanCondition.NOT_CONTAINED ? SpanCondition.SIMPLE in countIn()
180 start = unicodeSet.span(sequence, endOfSpan, spanCondition); in countIn()
186 start = unicodeSet.spanAndCount(sequence, endOfSpan, spanCondition, spanCount); in countIn()
217 public String deleteFrom(CharSequence sequence, SpanCondition spanCondition) { in deleteFrom() argument
218 return replaceFrom(sequence, "", CountMethod.WHOLE_SPAN, spanCondition); in deleteFrom()
272 SpanCondition spanCondition) { in replaceFrom() argument
273 SpanCondition copySpan = spanCondition == SpanCondition.NOT_CONTAINED ? SpanCondition.SIMPLE in replaceFrom()
285 endModify = unicodeSet.span(sequence, endCopy, spanCondition); in replaceFrom()
290 endModify = unicodeSet.spanAndCount(sequence, endCopy, spanCondition, spanCount); in replaceFrom()
[all …]
DUnicodeSet.java4028 public int span(CharSequence s, SpanCondition spanCondition) { in span() argument
4029 return span(s, 0, spanCondition); in span()
4043 public int span(CharSequence s, int start, SpanCondition spanCondition) { in span() argument
4052 return bmpSet.span(s, start, spanCondition, null); in span()
4055 return stringSpan.span(s, start, spanCondition); in span()
4057 …int which = spanCondition == SpanCondition.NOT_CONTAINED ? UnicodeSetStringSpan.FWD_UTF16_NOT_CONT… in span()
4061 return strSpan.span(s, start, spanCondition); in span()
4065 return spanCodePointsAndCount(s, start, spanCondition, null); in span()
4077 …public int spanAndCount(CharSequence s, int start, SpanCondition spanCondition, OutputInt outCount… in spanAndCount() argument
4090 return stringSpan.spanAndCount(s, start, spanCondition, outCount); in spanAndCount()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DFilteredNormalizer2.java116 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized() local
118 int spanLimit=set.span(s, prevSpanLimit, spanCondition); in isNormalized()
119 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in isNormalized()
120 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized()
125 spanCondition=UnicodeSet.SpanCondition.NOT_CONTAINED; in isNormalized()
138 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck() local
140 int spanLimit=set.span(s, prevSpanLimit, spanCondition); in quickCheck()
141 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in quickCheck()
142 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck()
151 spanCondition=UnicodeSet.SpanCondition.NOT_CONTAINED; in quickCheck()
[all …]
DUnicodeSetSpanner.java146 … public int countIn(CharSequence sequence, CountMethod countMethod, SpanCondition spanCondition) { in countIn() argument
149 SpanCondition skipSpan = spanCondition == SpanCondition.NOT_CONTAINED ? SpanCondition.SIMPLE in countIn()
159 start = unicodeSet.span(sequence, endOfSpan, spanCondition); in countIn()
165 start = unicodeSet.spanAndCount(sequence, endOfSpan, spanCondition, spanCount); in countIn()
192 public String deleteFrom(CharSequence sequence, SpanCondition spanCondition) { in deleteFrom() argument
193 return replaceFrom(sequence, "", CountMethod.WHOLE_SPAN, spanCondition); in deleteFrom()
241 SpanCondition spanCondition) { in replaceFrom() argument
242 SpanCondition copySpan = spanCondition == SpanCondition.NOT_CONTAINED ? SpanCondition.SIMPLE in replaceFrom()
254 endModify = unicodeSet.span(sequence, endCopy, spanCondition); in replaceFrom()
259 endModify = unicodeSet.spanAndCount(sequence, endCopy, spanCondition, spanCount); in replaceFrom()
[all …]
DUnicodeSet.java3936 public int span(CharSequence s, SpanCondition spanCondition) { in span() argument
3937 return span(s, 0, spanCondition); in span()
3950 public int span(CharSequence s, int start, SpanCondition spanCondition) { in span() argument
3959 return bmpSet.span(s, start, spanCondition, null); in span()
3962 return stringSpan.span(s, start, spanCondition); in span()
3964 …int which = spanCondition == SpanCondition.NOT_CONTAINED ? UnicodeSetStringSpan.FWD_UTF16_NOT_CONT… in span()
3968 return strSpan.span(s, start, spanCondition); in span()
3972 return spanCodePointsAndCount(s, start, spanCondition, null); in span()
3985 …public int spanAndCount(CharSequence s, int start, SpanCondition spanCondition, OutputInt outCount… in spanAndCount() argument
3998 return stringSpan.spanAndCount(s, start, spanCondition, outCount); in spanAndCount()
[all …]
/external/icu/icu4c/source/common/
Dfilterednormalizer2.cpp58 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 …]
Dbmpset.cpp308 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 …]
Dbmpset.h48 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;
Duniset.cpp2210 int32_t UnicodeSet::span(const UChar *s, int32_t length, USetSpanCondition spanCondition) const { in span()
2212 return (int32_t)(bmpSet->span(s, s+length, spanCondition)-s); in span()
2221 return stringSpan->span(s, length, spanCondition); in span()
2223 uint32_t which= spanCondition==USET_SPAN_NOT_CONTAINED ? in span()
2228 return strSpan.span(s, length, spanCondition); in span()
2232 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in span()
2233 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in span()
2240 if(spanCondition!=contains(c)) { in span()
2247 int32_t UnicodeSet::spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const… in spanBack()
2249 return (int32_t)(bmpSet->spanBack(s, s+length, spanCondition)-s); in spanBack()
[all …]
Dunisetspan.h75 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;
Dunisetspan.cpp632 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 …]
Duset.cpp201 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/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUnicodeSetStringSpanTest.java177 SpanCondition spanCondition) { in containsSpanUTF16() argument
182 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanUTF16()
196 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanUTF16()
230 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanUTF16()
274 SpanCondition spanCondition) { in containsSpanBackUTF16() argument
281 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16()
295 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16()
328 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanBackUTF16()
389 static SpanCondition invertSpanCondition(SpanCondition spanCondition, SpanCondition contained) { in invertSpanCondition() argument
390 return spanCondition == SpanCondition.NOT_CONTAINED ? contained in invertSpanCondition()
[all …]
DUnicodeSetTest.java2482 …vate void checkCodePoints(String a, String b, CountMethod quantifier, SpanCondition spanCondition, in checkCodePoints() argument
2488 callCountIn(m, ab, quantifier, spanCondition) in checkCodePoints()
2505 …ckCountIn(UnicodeSetSpanner m, CountMethod countMethod, SpanCondition spanCondition, String target… in checkCountIn() argument
2506 final String message = "countIn " + countMethod + ", " + spanCondition; in checkCountIn()
2507 assertEquals(message, callCountIn(m, target, countMethod, spanCondition), expected); in checkCountIn()
2510 …untIn(UnicodeSetSpanner m, final String ab, CountMethod countMethod, SpanCondition spanCondition) { in callCountIn() argument
2511 return spanCondition != SpanCondition.SIMPLE ? m.countIn(ab, countMethod, spanCondition) in callCountIn()
2559 private int checkSpan(String longString, UnicodeSet us, SpanCondition spanCondition) { in checkSpan() argument
2562 int limit = us.span(longString, start, spanCondition); in checkSpan()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUnicodeSetStringSpanTest.java173 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 …]
DUnicodeSetTest.java2478 …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/
Duniset.h892 int32_t span(const UChar *s, int32_t length, USetSpanCondition spanCondition) const;
906 … inline int32_t span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const;
925 int32_t spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const;
940 …inline int32_t spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) co…
960 int32_t spanUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const;
979 int32_t spanBackUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const;
1691 …_t UnicodeSet::span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const { in span() argument
1698 return start+span(s.getBuffer()+start, sLength-start, spanCondition); in span()
1701 …nicodeSet::spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) const { in spanBack() argument
1708 return spanBack(s.getBuffer(), limit, spanCondition); in spanBack()
Duset.h932 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);
Dnormalizer2.h642 USetSpanCondition spanCondition,
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUnicodeSetStringSpan.java363 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 …]
DBMPSet.java137 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/android_icu4j/src/main/java/android/icu/impl/
DUnicodeSetStringSpan.java367 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 …]
DBMPSet.java139 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()
/external/icu/icu4c/source/test/intltest/
Dusettest.cpp2472 USetSpanCondition spanCondition) { in containsSpanUTF16() argument
2475 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in containsSpanUTF16()
2476 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in containsSpanUTF16()
2483 if(realSet.contains(c)!=spanCondition) { in containsSpanUTF16()
2488 } else if(spanCondition==USET_SPAN_NOT_CONTAINED) { in containsSpanUTF16()
2526 if(spanCondition==USET_SPAN_CONTAINED) { in containsSpanUTF16()
2570 USetSpanCondition spanCondition) { in containsSpanBackUTF16() argument
2576 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in containsSpanBackUTF16()
2577 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in containsSpanBackUTF16()
2584 if(realSet.contains(c)!=spanCondition) { in containsSpanBackUTF16()
[all …]