Home
last modified time | relevance | path

Searched refs:spanCondition (Results 1 – 25 of 32) 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 …]
/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 …]
/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 …]
/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/libicu/cts_headers/
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;
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;
/external/icu/icu4c/source/common/unicode/
Duniset.h909 int32_t span(const char16_t *s, int32_t length, USetSpanCondition spanCondition) const;
923 … inline int32_t span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const;
942 int32_t spanBack(const char16_t *s, int32_t length, USetSpanCondition spanCondition) const;
957 …inline int32_t spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) co…
977 int32_t spanUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const;
996 int32_t spanBackUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const;
1720 …_t UnicodeSet::span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const { in span() argument
1727 return start+span(s.getBuffer()+start, sLength-start, spanCondition); in span()
1730 …nicodeSet::spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) const { in spanBack() argument
1737 return spanBack(s.getBuffer(), limit, spanCondition); in spanBack()
Duset.h943 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
964 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
986 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);
1007 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);
/external/icu/libicu/cts_headers/unicode/
Duniset.h909 int32_t span(const char16_t *s, int32_t length, USetSpanCondition spanCondition) const;
923 … inline int32_t span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const;
942 int32_t spanBack(const char16_t *s, int32_t length, USetSpanCondition spanCondition) const;
957 …inline int32_t spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) co…
977 int32_t spanUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const;
996 int32_t spanBackUTF8(const char *s, int32_t length, USetSpanCondition spanCondition) const;
1720 …_t UnicodeSet::span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const { in span() argument
1727 return start+span(s.getBuffer()+start, sLength-start, spanCondition); in span()
1730 …nicodeSet::spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) const { in spanBack() argument
1737 return spanBack(s.getBuffer(), limit, spanCondition); in spanBack()
Duset.h943 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
964 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
986 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);
1007 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, 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.cpp2478 USetSpanCondition spanCondition) { in containsSpanUTF16() argument
2481 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in containsSpanUTF16()
2482 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in containsSpanUTF16()
2489 if(realSet.contains(c)!=spanCondition) { in containsSpanUTF16()
2494 } else if(spanCondition==USET_SPAN_NOT_CONTAINED) { in containsSpanUTF16()
2532 if(spanCondition==USET_SPAN_CONTAINED) { in containsSpanUTF16()
2576 USetSpanCondition spanCondition) { in containsSpanBackUTF16() argument
2582 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { in containsSpanBackUTF16()
2583 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. in containsSpanBackUTF16()
2590 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.h943 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
964 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
986 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);
1007 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);

12