Home
last modified time | relevance | path

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

12

/external/icu/icu4c/source/common/
Dfilterednormalizer2.cpp62 USetSpanCondition spanCondition, in normalize() argument
66 int32_t spanLimit=set.span(src, prevSpanLimit, spanCondition); in normalize()
68 if(spanCondition==USET_SPAN_NOT_CONTAINED) { in normalize()
72 spanCondition=USET_SPAN_SIMPLE; in normalize()
83 spanCondition=USET_SPAN_NOT_CONTAINED; in normalize()
106 USetSpanCondition spanCondition, in normalizeUTF8() argument
109 int32_t spanLength = set.spanUTF8(src, length, spanCondition); in normalizeUTF8()
110 if (spanCondition == USET_SPAN_NOT_CONTAINED) { in normalizeUTF8()
119 spanCondition = USET_SPAN_SIMPLE; in normalizeUTF8()
129 spanCondition = USET_SPAN_NOT_CONTAINED; in normalizeUTF8()
[all …]
Dbmpset.cpp323 BMPSet::span(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { in span()
326 if(spanCondition) { in span()
412 BMPSet::spanBack(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { in spanBack()
415 if(spanCondition) { in spanBack()
510 BMPSet::spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const { in spanUTF8()
515 if(spanCondition) { in spanUTF8()
533 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in spanUTF8()
534 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in spanUTF8()
556 if(containsFFFD!=spanCondition) { in spanUTF8()
562 if(containsFFFD!=spanCondition) { in spanUTF8()
[all …]
Dbmpset.h51 const UChar *span(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const;
58 … const UChar *spanBack(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const;
65 … const uint8_t *spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const;
72 int32_t spanBackUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const;
Duniset.cpp2206 int32_t UnicodeSet::span(const UChar *s, int32_t length, USetSpanCondition spanCondition) const { in span()
2208 return (int32_t)(bmpSet->span(s, s+length, spanCondition)-s); in span()
2217 return stringSpan->span(s, length, spanCondition); in span()
2219 uint32_t which= spanCondition==USET_SPAN_NOT_CONTAINED ? in span()
2224 return strSpan.span(s, length, spanCondition); in span()
2228 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in span()
2229 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in span()
2236 if(spanCondition!=contains(c)) { in span()
2243 int32_t UnicodeSet::spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const… in spanBack()
2245 return (int32_t)(bmpSet->spanBack(s, s+length, spanCondition)-s); in spanBack()
[all …]
Dunisetspan.h77 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;
Dunisetspan.cpp634 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 …]
Duset.cpp203 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/icu4j/main/classes/core/src/com/ibm/icu/text/
DFilteredNormalizer2.java127 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 …]
DUnicodeSetSpanner.java169 … 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 …]
DUnicodeSet.java4096 public int span(CharSequence s, SpanCondition spanCondition) { in span() argument
4097 return span(s, 0, spanCondition); in span()
4111 public int span(CharSequence s, int start, SpanCondition spanCondition) { in span() argument
4120 return bmpSet.span(s, start, spanCondition, null); in span()
4123 return stringSpan.span(s, start, spanCondition); in span()
4125 …int which = spanCondition == SpanCondition.NOT_CONTAINED ? UnicodeSetStringSpan.FWD_UTF16_NOT_CONT… in span()
4129 return strSpan.span(s, start, spanCondition); in span()
4133 return spanCodePointsAndCount(s, start, spanCondition, null); in span()
4145 …public int spanAndCount(CharSequence s, int start, SpanCondition spanCondition, OutputInt outCount… in spanAndCount() argument
4158 return stringSpan.spanAndCount(s, start, spanCondition, outCount); in spanAndCount()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DFilteredNormalizer2.java118 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 …]
DUnicodeSetSpanner.java148 … 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 …]
DUnicodeSet.java4005 public int span(CharSequence s, SpanCondition spanCondition) { in span() argument
4006 return span(s, 0, spanCondition); in span()
4019 public int span(CharSequence s, int start, SpanCondition spanCondition) { in span() argument
4028 return bmpSet.span(s, start, spanCondition, null); in span()
4031 return stringSpan.span(s, start, spanCondition); in span()
4033 …int which = spanCondition == SpanCondition.NOT_CONTAINED ? UnicodeSetStringSpan.FWD_UTF16_NOT_CONT… in span()
4037 return strSpan.span(s, start, spanCondition); in span()
4041 return spanCodePointsAndCount(s, start, spanCondition, null); in span()
4054 …public int spanAndCount(CharSequence s, int start, SpanCondition spanCondition, OutputInt outCount… in spanAndCount() argument
4067 return stringSpan.spanAndCount(s, start, spanCondition, outCount); in spanAndCount()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUnicodeSetStringSpanTest.java181 SpanCondition spanCondition) { in containsSpanUTF16() argument
186 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanUTF16()
200 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanUTF16()
234 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanUTF16()
278 SpanCondition spanCondition) { in containsSpanBackUTF16() argument
285 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16()
299 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16()
332 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanBackUTF16()
393 static SpanCondition invertSpanCondition(SpanCondition spanCondition, SpanCondition contained) { in invertSpanCondition() argument
394 return spanCondition == SpanCondition.NOT_CONTAINED ? contained in invertSpanCondition()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUnicodeSetStringSpanTest.java178 SpanCondition spanCondition) { in containsSpanUTF16() argument
183 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanUTF16()
197 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanUTF16()
231 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanUTF16()
275 SpanCondition spanCondition) { in containsSpanBackUTF16() argument
282 if (spanCondition != SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16()
296 } else if (spanCondition == SpanCondition.NOT_CONTAINED) { in containsSpanBackUTF16()
329 if (spanCondition == SpanCondition.CONTAINED) { in containsSpanBackUTF16()
390 static SpanCondition invertSpanCondition(SpanCondition spanCondition, SpanCondition contained) { in invertSpanCondition() argument
391 return spanCondition == SpanCondition.NOT_CONTAINED ? contained in invertSpanCondition()
[all …]
DUnicodeSetTest.java2522 …ivate void checkCodePoints(String a, String b, CountMethod quantifier, SpanCondition spanCondition, in checkCodePoints() argument
2528 callCountIn(m, ab, quantifier, spanCondition) in checkCodePoints()
2546 …ckCountIn(UnicodeSetSpanner m, CountMethod countMethod, SpanCondition spanCondition, String target… in checkCountIn() argument
2547 final String message = "countIn " + countMethod + ", " + spanCondition; in checkCountIn()
2548 assertEquals(message, callCountIn(m, target, countMethod, spanCondition), expected); in checkCountIn()
2551 …untIn(UnicodeSetSpanner m, final String ab, CountMethod countMethod, SpanCondition spanCondition) { in callCountIn() argument
2552 return spanCondition != SpanCondition.SIMPLE ? m.countIn(ab, countMethod, spanCondition) in callCountIn()
2598 private int checkSpan(String longString, UnicodeSet us, SpanCondition spanCondition) { in checkSpan() argument
2601 int limit = us.span(longString, start, spanCondition); in checkSpan()
/external/icu/icu4c/source/common/unicode/
Duniset.h905 int32_t span(const char16_t *s, int32_t length, USetSpanCondition spanCondition) const;
919 … inline int32_t span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const;
938 int32_t spanBack(const char16_t *s, int32_t length, USetSpanCondition spanCondition) const;
953 …inline int32_t spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) co…
973 int32_t spanUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const;
992 int32_t spanBackUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const;
1717 …_t UnicodeSet::span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const { in span() argument
1724 return start+span(s.getBuffer()+start, sLength-start, spanCondition); in span()
1727 …nicodeSet::spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) const { in spanBack() argument
1734 return spanBack(s.getBuffer(), limit, spanCondition); in spanBack()
Duset.h940 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
961 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
983 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);
1004 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);
Dnormalizer2.h752 USetSpanCondition spanCondition,
758 USetSpanCondition spanCondition,
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUnicodeSetStringSpan.java371 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 …]
DBMPSet.java140 public final int span(CharSequence s, int start, SpanCondition spanCondition, in span() argument
146 if (SpanCondition.NOT_CONTAINED != spanCondition) { in span()
239 public final int spanBack(CharSequence s, int limit, SpanCondition spanCondition) { in spanBack() argument
242 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 …]
/external/icu/icu4j/main/classes/core/src/com/ibm/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.java138 public final int span(CharSequence s, int start, SpanCondition spanCondition, in span() argument
144 if (SpanCondition.NOT_CONTAINED != spanCondition) { in span()
237 public final int spanBack(CharSequence s, int limit, SpanCondition spanCondition) { in spanBack() argument
240 if (SpanCondition.NOT_CONTAINED != spanCondition) { in spanBack()
/external/icu/libandroidicu/include/unicode/
Duset.h940 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
961 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
983 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);
1004 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);

12