/external/icu/libandroidicu/include/unicode/ |
D | utf16.h | 66 #define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00) macro 205 if((i)+1!=(length) && U16_IS_TRAIL(__c2=(s)[(i)+1])) { \ 244 if((i)+1!=(length) && U16_IS_TRAIL(__c2=(s)[(i)+1])) { \ 312 if((i)!=(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \ 344 if(U16_IS_SURROGATE_LEAD(c) && (i)!=(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \ 433 if(U16_IS_LEAD((s)[(i)++]) && (i)!=(length) && U16_IS_TRAIL((s)[i])) { \ 495 if(U16_IS_TRAIL((s)[i])) { \ 515 if(U16_IS_TRAIL((s)[i]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \ 544 if(U16_IS_TRAIL(c)) { \ 571 if(U16_IS_TRAIL(c)) { \ [all …]
|
D | ucptrie.h | 392 if (U16_IS_SURROGATE_LEAD(c) && (src) != (limit) && U16_IS_TRAIL(__c2 = *(src))) { \
|
/external/icu/icu4c/source/common/unicode/ |
D | utf16.h | 66 #define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00) macro 205 if((i)+1!=(length) && U16_IS_TRAIL(__c2=(s)[(i)+1])) { \ 244 if((i)+1!=(length) && U16_IS_TRAIL(__c2=(s)[(i)+1])) { \ 312 if((i)!=(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \ 344 if(U16_IS_SURROGATE_LEAD(c) && (i)!=(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \ 433 if(U16_IS_LEAD((s)[(i)++]) && (i)!=(length) && U16_IS_TRAIL((s)[i])) { \ 495 if(U16_IS_TRAIL((s)[i])) { \ 515 if(U16_IS_TRAIL((s)[i]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \ 544 if(U16_IS_TRAIL(c)) { \ 571 if(U16_IS_TRAIL(c)) { \ [all …]
|
D | ucptrie.h | 392 if (U16_IS_SURROGATE_LEAD(c) && (src) != (limit) && U16_IS_TRAIL(__c2 = *(src))) { \
|
/external/icu/icu4c/source/common/ |
D | ustring.cpp | 44 if(U16_IS_TRAIL(*match) && start!=match && U16_IS_LEAD(*(match-1))) { in isMatchAtCPBoundary() 48 if(U16_IS_LEAD(*(matchLimit-1)) && match!=limit && U16_IS_TRAIL(*matchLimit)) { in isMatchAtCPBoundary() 507 if(U16_IS_SURROGATE_LEAD(c) && U16_IS_TRAIL(c2 = string[strItr])) { in _matchFromSet() 798 (c1<=0xdbff && (s1+1)!=limit1 && U16_IS_TRAIL(*(s1+1))) || in uprv_strCompare() 799 (U16_IS_TRAIL(c1) && start1!=s1 && U16_IS_LEAD(*(s1-1))) in uprv_strCompare() 808 (c2<=0xdbff && (s2+1)!=limit2 && U16_IS_TRAIL(*(s2+1))) || in uprv_strCompare() 809 (U16_IS_TRAIL(c2) && start2!=s2 && U16_IS_LEAD(*(s2-1))) in uprv_strCompare() 860 (c1<=0xdbff && U16_IS_TRAIL(iter1->current(iter1))) || in u_strCompareIter() 861 (U16_IS_TRAIL(c1) && (iter1->previous(iter1), U16_IS_LEAD(iter1->previous(iter1)))) in u_strCompareIter() 870 (c2<=0xdbff && U16_IS_TRAIL(iter2->current(iter2))) || in u_strCompareIter() [all …]
|
D | ucnv_u16.cpp | 95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 133 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) { in _UTF16BEFromUnicodeWithOffsets() 155 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) { in _UTF16BEFromUnicodeWithOffsets() 212 if(U16_IS_TRAIL(trail=*source)) { in _UTF16BEFromUnicodeWithOffsets() 330 if(U16_IS_TRAIL(trail)) { in _UTF16BEToUnicodeWithOffsets() 394 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1]) in _UTF16BEToUnicodeWithOffsets() 413 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1]) in _UTF16BEToUnicodeWithOffsets() 450 if(U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])) { in _UTF16BEToUnicodeWithOffsets() 532 if(U16_IS_TRAIL(trail)) { in _UTF16BEGetNextUChar() 696 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16LEFromUnicodeWithOffsets() [all …]
|
D | unormcmp.cpp | 283 if(s1!=limit1 && U16_IS_TRAIL(c=*s1)) { in unorm_cmpEquivFold() 299 if(s2!=limit2 && U16_IS_TRAIL(c=*s2)) { in unorm_cmpEquivFold() 507 (c1<=0xdbff && s1!=limit1 && U16_IS_TRAIL(*s1)) || in unorm_cmpEquivFold() 508 (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2))) in unorm_cmpEquivFold() 517 (c2<=0xdbff && s2!=limit2 && U16_IS_TRAIL(*s2)) || in unorm_cmpEquivFold() 518 (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2))) in unorm_cmpEquivFold()
|
D | ustrtrns.cpp | 214 } else if(U16_IS_SURROGATE_LEAD(ch) && src < srcLimit && U16_IS_TRAIL(ch2 = *src)) { in u_strToUTF32WithSub() 855 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub() 884 } else if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub() 942 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub() 997 if(U16_IS_SURROGATE_LEAD(ch) && pSrc<pSrcLimit && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub() 1027 } else if(U16_IS_SURROGATE_LEAD(ch) && pSrc<pSrcLimit && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub()
|
D | ustrcase.cpp | 263 if (U16_IS_LEAD(lead) && srcIndex < srcLimit && U16_IS_TRAIL(trail = src[srcIndex])) { in toLower() 359 if (U16_IS_LEAD(lead) && srcIndex < srcLength && U16_IS_TRAIL(trail = src[srcIndex])) { in toUpper() 1581 if(s1!=limit1 && U16_IS_TRAIL(c=*s1)) { in _cmpFold() 1597 if(s2!=limit2 && U16_IS_TRAIL(c=*s2)) { in _cmpFold() 1725 (c1<=0xdbff && s1!=limit1 && U16_IS_TRAIL(*s1)) || in _cmpFold() 1726 (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2))) in _cmpFold() 1735 (c2<=0xdbff && s2!=limit2 && U16_IS_TRAIL(*s2)) || in _cmpFold() 1736 (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2))) in _cmpFold()
|
D | utext.cpp | 126 if (U16_IS_TRAIL(c)) { in utext_setNativeIndex() 153 if (U16_IS_TRAIL(c) == FALSE) { in utext_getPreviousNativeIndex() 231 if (U16_IS_TRAIL(trail)) { in utext_current32() 292 if (U16_IS_TRAIL(trail) == FALSE) { in utext_next32() 317 if (U16_IS_TRAIL(c) == FALSE) { in utext_previous32() 1837 if(ut->chunkNativeStart>0 && U16_IS_TRAIL(ex->s[0])) { in repTextAccess() 1878 if (start32<length && U16_IS_TRAIL(rep->charAt(start32)) && in repTextExtract() 1882 if (limit32<length && U16_IS_TRAIL(rep->charAt(limit32)) && in repTextExtract() 1923 if (start32<oldLength && U16_IS_TRAIL(rep->charAt(start32)) && in repTextReplace() 1929 U16_IS_TRAIL(rep->charAt(limit32))) in repTextReplace() [all …]
|
D | punycode.cpp | 232 } else if(U16_IS_LEAD(c) && U16_IS_TRAIL(c2=src[j+1])) { in u_strToPunycode() 265 } else if(U16_IS_LEAD(c) && (j+1)<srcLength && U16_IS_TRAIL(c2=src[j+1])) { in u_strToPunycode()
|
D | utrie2.h | 880 } else if((src)==(limit) || !U16_IS_TRAIL(__c2=*(src))) { \ 895 if(!U16_IS_TRAIL(c) || (src)==(start) || !U16_IS_LEAD(__c2=*((src)-1))) { \
|
D | uiter.cpp | 1035 if(U16_IS_TRAIL(c2=iter->current(iter))) { in uiter_current32() 1060 if(U16_IS_TRAIL(c2=iter->next(iter))) { in uiter_next32() 1075 if(U16_IS_TRAIL(c)) { in uiter_previous32()
|
D | normalizer2impl.cpp | 379 if(U16_IS_TRAIL(c) && start<codePointStart && U16_IS_LEAD(*(codePointStart-1))) { in skipPrevious() 391 if(U16_IS_TRAIL(c) && start<codePointStart && U16_IS_LEAD(c2=*(codePointStart-1))) { in previousCC() 617 if((src+1)!=limit && U16_IS_TRAIL(c2=src[1])) { in decompose() 1352 if(src!=limit && U16_IS_TRAIL(c2=*src)) { in compose() 1613 if(src!=limit && U16_IS_TRAIL(c2=*src)) { in composeQuickCheck() 2185 if((src+1)!=limit && U16_IS_TRAIL(c2=src[1])) { in makeFCD() 2220 if(U16_IS_TRAIL(*p) && prevSrc<p && U16_IS_LEAD(*(p-1))) { in makeFCD()
|
D | ucnvscsu.cpp | 1111 if(U16_IS_TRAIL(trail)) { in _SCSUFromUnicodeWithOffsets() 1308 if(U16_IS_TRAIL(trail)) { in _SCSUFromUnicodeWithOffsets() 1601 if(U16_IS_TRAIL(trail)) { in _SCSUFromUnicode() 1785 if(U16_IS_TRAIL(trail)) { in _SCSUFromUnicode()
|
D | ucnv_u8.cpp | 349 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(*mySource)) { in ucnv_fromUnicode_UTF8() 475 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(*mySource)) { in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
|
D | unisetspan.cpp | 478 !(0<start && U16_IS_LEAD(s[-1]) && U16_IS_TRAIL(s[0])) && in matches16CPB() 479 !(length<limit && U16_IS_LEAD(s[length-1]) && U16_IS_TRAIL(s[length])); in matches16CPB() 487 if(c>=0xd800 && c<=0xdbff && length>=2 && U16_IS_TRAIL(c2=s[1])) { in spanOne()
|
D | normalizer2impl.h | 331 if(U16_IS_LEAD(c) && s!=limit && U16_IS_TRAIL(c2=*s)) { in nextFCD16() 348 if(!U16_IS_TRAIL(c)) { in previousFCD16()
|
D | ucnv2022.cpp | 1713 if(U16_IS_TRAIL(trail)) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() 2062 if( U16_IS_TRAIL(args->source[sourceIndex]) && in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() 2490 if(U16_IS_TRAIL(trail)) { in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC() 2556 if( U16_IS_TRAIL(args->source[sourceIndex]) && in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC() 2962 if(U16_IS_TRAIL(trail)) { in UConverter_fromUnicode_ISO_2022_CN_OFFSETS_LOGIC() 3249 if( U16_IS_TRAIL(args->source[sourceIndex]) && in UConverter_fromUnicode_ISO_2022_CN_OFFSETS_LOGIC()
|
D | ucnvbocu.cpp | 489 if(U16_IS_TRAIL(trail)) { in _Bocu1FromUnicodeWithOffsets() 733 if(U16_IS_TRAIL(trail)) { in _Bocu1FromUnicode()
|
D | utrie.h | 229 } else if((src)!=(limit) && U16_IS_TRAIL((c2)=*(src))) { \
|
/external/icu/icu4c/source/i18n/ |
D | utf16collationiterator.cpp | 73 if(U16_IS_TRAIL(trail = *pos)) { ++pos; } in handleGetTrailSurrogate() 99 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) { in nextCodePoint() 114 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) { in previousCodePoint() 132 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(*pos)) { in forwardNumCodePoints() 143 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(*(pos-1))) { in backwardNumCodePoints() 281 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) { in nextCodePoint() 317 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) { in previousCodePoint()
|
D | uitercollationiterator.cpp | 56 if(!U16_IS_TRAIL(trail) && trail >= 0) { iter.previous(&iter); } in handleGetTrailSurrogate() 147 if(U16_IS_TRAIL(trail)) { in handleGetTrailSurrogate() 156 if(U16_IS_TRAIL(trail = normalized[pos])) { ++pos; } in handleGetTrailSurrogate() 182 if(U16_IS_TRAIL(trail)) { in nextCodePoint() 229 if(U16_IS_TRAIL(c)) { in previousCodePoint()
|
/external/icu/icu4c/source/test/cintltst/ |
D | utf16tst.c | 82 !U16_IS_SINGLE(c) || U16_IS_LEAD(c) || U16_IS_TRAIL(c)) { in TestCodeUnitValues() 91 !U16_IS_LEAD(c) || U16_IS_SINGLE(c) || U16_IS_TRAIL(c)){ in TestCodeUnitValues() 100 !U16_IS_TRAIL(c) || U16_IS_SINGLE(c) || U16_IS_LEAD(c)) { in TestCodeUnitValues()
|
D | trietest.c | 184 !U16_IS_LEAD(c) || !U16_IS_TRAIL(c2) || c!=*(p-2) || c2!=*(p-1) in testTrieIteration() 248 !U16_IS_LEAD(c) || !U16_IS_TRAIL(c2) || c!=*p || c2!=*(p+1) in testTrieIteration()
|