/external/icu/android_icu4j/src/main/java/android/icu/text/ |
UnicodeSetSpanner.java | 10 import android.icu.text.UnicodeSet.SpanCondition; 16 * <p><b>Note:</b> The counting, deletion, and replacement depend on alternating a {@link SpanCondition} with 20 * <li>{@link UnicodeSet.SpanCondition#SIMPLE} ? {@link UnicodeSet.SpanCondition#NOT_CONTAINED}</li> 21 * <li>{@link UnicodeSet.SpanCondition#CONTAINED} ? {@link UnicodeSet.SpanCondition#NOT_CONTAINED}</li> 22 * <li>{@link UnicodeSet.SpanCondition#NOT_CONTAINED} ? {@link UnicodeSet.SpanCondition#SIMPLE}</li> 95 * based on the {@link UnicodeSet.SpanCondition}. 97 * <p>For example, in the string "abab" with SpanCondition.SIMPLE [all...] |
FilteredNormalizer2.java | 18 * Filtering is done via UnicodeSet.span(..., UnicodeSet.SpanCondition.SIMPLE). 49 normalize(src, dest, UnicodeSet.SpanCondition.SIMPLE); 60 return normalize(src, dest, UnicodeSet.SpanCondition.SIMPLE); 116 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; 118 int spanLimit=set.span(s, prevSpanLimit, spanCondition); 119 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { 120 spanCondition=UnicodeSet.SpanCondition.SIMPLE [all...] |
UnicodeSet.java | [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
UnicodeSetSpanner.java | 9 import com.ibm.icu.text.UnicodeSet.SpanCondition; 15 * <p><b>Note:</b> The counting, deletion, and replacement depend on alternating a {@link SpanCondition} with 19 * <li>{@link UnicodeSet.SpanCondition#SIMPLE} ? {@link UnicodeSet.SpanCondition#NOT_CONTAINED}</li> 20 * <li>{@link UnicodeSet.SpanCondition#CONTAINED} ? {@link UnicodeSet.SpanCondition#NOT_CONTAINED}</li> 21 * <li>{@link UnicodeSet.SpanCondition#NOT_CONTAINED} ? {@link UnicodeSet.SpanCondition#SIMPLE}</li> 108 * based on the {@link UnicodeSet.SpanCondition}. 110 * <p>For example, in the string "abab" with SpanCondition.SIMPLE [all...] |
FilteredNormalizer2.java | 17 * Filtering is done via UnicodeSet.span(..., UnicodeSet.SpanCondition.SIMPLE). 50 normalize(src, dest, UnicodeSet.SpanCondition.SIMPLE); 62 return normalize(src, dest, UnicodeSet.SpanCondition.SIMPLE); 125 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; 127 int spanLimit=set.span(s, prevSpanLimit, spanCondition); 128 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { 129 spanCondition=UnicodeSet.SpanCondition.SIMPLE [all...] |
UnicodeSet.java | [all...] |
/external/icu/icu4c/source/common/ |
filterednormalizer2.cpp | 49 // Pass as input spanCondition the one that is likely to yield a non-zero 58 USetSpanCondition spanCondition, 62 int32_t spanLimit=set.span(src, prevSpanLimit, spanCondition); 64 if(spanCondition==USET_SPAN_NOT_CONTAINED) { 68 spanCondition=USET_SPAN_SIMPLE; 79 spanCondition=USET_SPAN_NOT_CONTAINED; 179 USetSpanCondition spanCondition=USET_SPAN_SIMPLE; 181 int32_t spanLimit=set.span(s, prevSpanLimit, spanCondition); 182 if(spanCondition==USET_SPAN_NOT_CONTAINED) { 183 spanCondition=USET_SPAN_SIMPLE [all...] |
bmpset.h | 44 * Span the initial substring for which each character c has spanCondition==contains(c). 45 * It must be s<limit and spanCondition==0 or 1. 48 const UChar *span(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const; 51 * Span the trailing substring for which each character c has spanCondition==contains(c). 52 * It must be s<limit and spanCondition==0 or 1. 55 const UChar *spanBack(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const; 58 * Span the initial substring for which each character c has spanCondition==contains(c). 59 * It must be length>0 and spanCondition==0 or 1. 62 const uint8_t *spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const; 65 * Span the trailing substring for which each character c has spanCondition==contains(c) [all...] |
bmpset.cpp | 308 BMPSet::span(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { 311 if(spanCondition) { 397 BMPSet::spanBack(const UChar *s, const UChar *limit, USetSpanCondition spanCondition) const { 400 if(spanCondition) { 495 BMPSet::spanUTF8(const uint8_t *s, int32_t length, USetSpanCondition spanCondition) const { 500 if(spanCondition) { 518 if(spanCondition!=USET_SPAN_NOT_CONTAINED) { 519 spanCondition=USET_SPAN_CONTAINED; // Pin to 0/1 values. 541 if(asciiBytes[0x80]!=spanCondition) { 547 if(asciiBytes[0x80]!=spanCondition) { [all...] |
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;
|
uniset.cpp | [all...] |
unisetspan.cpp | 632 int32_t UnicodeSetStringSpan::span(const UChar *s, int32_t length, USetSpanCondition spanCondition) const { 633 if(spanCondition==USET_SPAN_NOT_CONTAINED) { 643 if(spanCondition==USET_SPAN_CONTAINED) { 650 if(spanCondition==USET_SPAN_CONTAINED) { 792 int32_t UnicodeSetStringSpan::spanBack(const UChar *s, int32_t length, USetSpanCondition spanCondition) const { 793 if(spanCondition==USET_SPAN_NOT_CONTAINED) { 804 if(spanCondition==USET_SPAN_CONTAINED) { 814 if(spanCondition==USET_SPAN_CONTAINED) { [all...] |
uset.cpp | 201 uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition) { 202 return ((UnicodeSet*) set)->UnicodeSet::span(s, length, spanCondition); 206 uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition) { 207 return ((UnicodeSet*) set)->UnicodeSet::spanBack(s, length, spanCondition); 211 uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition) { 212 return ((UnicodeSet*) set)->UnicodeSet::spanUTF8(s, length, spanCondition); 216 uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition) { 217 return ((UnicodeSet*) set)->UnicodeSet::spanBackUTF8(s, length, spanCondition);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
UnicodeSetStringSpanTest.java | 16 import android.icu.text.UnicodeSet.SpanCondition; 38 int pos = set.spanBack(string, 3, SpanCondition.SIMPLE); 43 pos = set.span(string, SpanCondition.SIMPLE); 48 pos = set.span(string, 1, SpanCondition.SIMPLE); 63 int length = containsSpanBackUTF16(set, string, 3, SpanCondition.SIMPLE); 68 length = containsSpanUTF16(set, string, SpanCondition.SIMPLE); 73 length = containsSpanUTF16(set, string.substring(1), SpanCondition.SIMPLE); 100 if ( set.span(s16.substring(0, 8), SpanCondition.NOT_CONTAINED) != 4 101 || set.span(s16.substring(0, 7), SpanCondition.NOT_CONTAINED) != 4 102 || set.span(s16.substring(0, 6), SpanCondition.NOT_CONTAINED) != [all...] |
UnicodeSetTest.java | 39 import android.icu.text.UnicodeSet.SpanCondition; [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
UnicodeSetStringSpanTest.java | 15 import com.ibm.icu.text.UnicodeSet.SpanCondition; 34 int pos = set.spanBack(string, 3, SpanCondition.SIMPLE); 39 pos = set.span(string, SpanCondition.SIMPLE); 44 pos = set.span(string, 1, SpanCondition.SIMPLE); 59 int length = containsSpanBackUTF16(set, string, 3, SpanCondition.SIMPLE); 64 length = containsSpanUTF16(set, string, SpanCondition.SIMPLE); 69 length = containsSpanUTF16(set, string.substring(1), SpanCondition.SIMPLE); 96 if ( set.span(s16.substring(0, 8), SpanCondition.NOT_CONTAINED) != 4 97 || set.span(s16.substring(0, 7), SpanCondition.NOT_CONTAINED) != 4 98 || set.span(s16.substring(0, 6), SpanCondition.NOT_CONTAINED) != [all...] |
UnicodeSetTest.java | 38 import com.ibm.icu.text.UnicodeSet.SpanCondition; [all...] |
/external/icu/icu4c/source/common/unicode/ |
uniset.h | [all...] |
uset.h | [all...] |
normalizer2.h | 642 USetSpanCondition spanCondition,
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
UnicodeSetStringSpan.java | 16 import android.icu.text.UnicodeSet.SpanCondition; 117 spanLength = spanSet.span(string, SpanCondition.CONTAINED); 160 spanLength = spanSet.span(string, SpanCondition.CONTAINED); 169 - spanSet.spanBack(string, length16, SpanCondition.CONTAINED); 271 * Algorithm for span(SpanCondition.CONTAINED) 292 * - Start with spanLength=spanSet.span(SpanCondition.CONTAINED). 299 * are irrelevant for span(SpanCondition.CONTAINED) 313 * then try another spanLength=spanSet.span(SpanCondition.CONTAINED). 337 * - Start with spanLength=spanSet.span(SpanCondition.CONTAINED). 356 * then try another spanLength=spanSet.span(SpanCondition.CONTAINED) [all...] |
BMPSet.java | 13 import android.icu.text.UnicodeSet.SpanCondition; 128 * Span the initial substring for which each character c has spanCondition==contains(c). It must be 129 * spanCondition==0 or 1. 139 public final int span(CharSequence s, int start, SpanCondition spanCondition, 145 if (SpanCondition.NOT_CONTAINED != spanCondition) { 233 * Span the trailing substring for which each character c has spanCondition==contains(c). It must be s.length >= 234 * limit and spanCondition==0 or 1. 238 public final int spanBack(CharSequence s, int limit, SpanCondition spanCondition) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
UnicodeSetStringSpan.java | 15 import com.ibm.icu.text.UnicodeSet.SpanCondition; 113 spanLength = spanSet.span(string, SpanCondition.CONTAINED); 156 spanLength = spanSet.span(string, SpanCondition.CONTAINED); 165 - spanSet.spanBack(string, length16, SpanCondition.CONTAINED); 267 * Algorithm for span(SpanCondition.CONTAINED) 288 * - Start with spanLength=spanSet.span(SpanCondition.CONTAINED). 295 * are irrelevant for span(SpanCondition.CONTAINED) 309 * then try another spanLength=spanSet.span(SpanCondition.CONTAINED). 333 * - Start with spanLength=spanSet.span(SpanCondition.CONTAINED). 352 * then try another spanLength=spanSet.span(SpanCondition.CONTAINED) [all...] |
BMPSet.java | 12 import com.ibm.icu.text.UnicodeSet.SpanCondition; 126 * Span the initial substring for which each character c has spanCondition==contains(c). It must be 127 * spanCondition==0 or 1. 137 public final int span(CharSequence s, int start, SpanCondition spanCondition, 143 if (SpanCondition.NOT_CONTAINED != spanCondition) { 231 * Span the trailing substring for which each character c has spanCondition==contains(c). It must be s.length >= 232 * limit and spanCondition==0 or 1. 236 public final int spanBack(CharSequence s, int limit, SpanCondition spanCondition) [all...] |
/external/icu/icu4c/source/test/intltest/ |
usettest.cpp | [all...] |