/external/icu/icu4c/source/common/unicode/ |
D | utf16.h | 64 #define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00) macro 203 if((i)+1!=(length) && U16_IS_TRAIL(__c2=(s)[(i)+1])) { \ 268 if((i)!=(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \ 355 if(U16_IS_LEAD((s)[(i)++]) && (i)!=(length) && U16_IS_TRAIL((s)[i])) { \ 417 if(U16_IS_TRAIL((s)[i])) { \ 437 if(U16_IS_TRAIL((s)[i]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \ 466 if(U16_IS_TRAIL(c)) { \ 494 if(U16_IS_TRAIL(c)) { \ 515 if(U16_IS_TRAIL((s)[--(i)])) { \ 533 if(U16_IS_TRAIL((s)[--(i)]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \ [all …]
|
/external/icu/icu4c/source/common/ |
D | ucnv_u16.c | 91 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 129 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) { in _UTF16BEFromUnicodeWithOffsets() 151 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) { in _UTF16BEFromUnicodeWithOffsets() 208 if(U16_IS_TRAIL(trail=*source)) { in _UTF16BEFromUnicodeWithOffsets() 326 if(U16_IS_TRAIL(trail)) { in _UTF16BEToUnicodeWithOffsets() 390 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1]) in _UTF16BEToUnicodeWithOffsets() 409 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1]) in _UTF16BEToUnicodeWithOffsets() 446 if(U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])) { in _UTF16BEToUnicodeWithOffsets() 528 if(U16_IS_TRAIL(trail)) { in _UTF16BEGetNextUChar() 687 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16LEFromUnicodeWithOffsets() [all …]
|
D | ustring.cpp | 41 if(U16_IS_TRAIL(*match) && start!=match && U16_IS_LEAD(*(match-1))) { in isMatchAtCPBoundary() 45 if(U16_IS_LEAD(*(matchLimit-1)) && match!=limit && U16_IS_TRAIL(*matchLimit)) { in isMatchAtCPBoundary() 504 if(U16_IS_SURROGATE_LEAD(c) && U16_IS_TRAIL(c2 = string[strItr])) { in _matchFromSet() 795 (c1<=0xdbff && (s1+1)!=limit1 && U16_IS_TRAIL(*(s1+1))) || in uprv_strCompare() 796 (U16_IS_TRAIL(c1) && start1!=s1 && U16_IS_LEAD(*(s1-1))) in uprv_strCompare() 805 (c2<=0xdbff && (s2+1)!=limit2 && U16_IS_TRAIL(*(s2+1))) || in uprv_strCompare() 806 (U16_IS_TRAIL(c2) && start2!=s2 && U16_IS_LEAD(*(s2-1))) in uprv_strCompare() 857 (c1<=0xdbff && U16_IS_TRAIL(iter1->current(iter1))) || in u_strCompareIter() 858 (U16_IS_TRAIL(c1) && (iter1->previous(iter1), U16_IS_LEAD(iter1->previous(iter1)))) in u_strCompareIter() 867 (c2<=0xdbff && U16_IS_TRAIL(iter2->current(iter2))) || in u_strCompareIter() [all …]
|
D | unormcmp.cpp | 287 if(s1!=limit1 && U16_IS_TRAIL(c=*s1)) { in unorm_cmpEquivFold() 303 if(s2!=limit2 && U16_IS_TRAIL(c=*s2)) { in unorm_cmpEquivFold() 511 (c1<=0xdbff && s1!=limit1 && U16_IS_TRAIL(*s1)) || in unorm_cmpEquivFold() 512 (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2))) in unorm_cmpEquivFold() 521 (c2<=0xdbff && s2!=limit2 && U16_IS_TRAIL(*s2)) || in unorm_cmpEquivFold() 522 (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2))) in unorm_cmpEquivFold()
|
D | ustrcase.cpp | 671 if(s1!=limit1 && U16_IS_TRAIL(c=*s1)) { in _cmpFold() 687 if(s2!=limit2 && U16_IS_TRAIL(c=*s2)) { in _cmpFold() 815 (c1<=0xdbff && s1!=limit1 && U16_IS_TRAIL(*s1)) || in _cmpFold() 816 (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2))) in _cmpFold() 825 (c2<=0xdbff && s2!=limit2 && U16_IS_TRAIL(*s2)) || in _cmpFold() 826 (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2))) in _cmpFold()
|
D | ustrtrns.cpp | 212 } else if(U16_IS_SURROGATE_LEAD(ch) && src < srcLimit && U16_IS_TRAIL(ch2 = *src)) { in u_strToUTF32WithSub() 1039 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub() 1068 } else if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub() 1126 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub() 1181 if(U16_IS_SURROGATE_LEAD(ch) && pSrc<pSrcLimit && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub() 1211 } else if(U16_IS_SURROGATE_LEAD(ch) && pSrc<pSrcLimit && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub()
|
D | normalizer2impl.cpp | 206 if(U16_IS_TRAIL(c) && start<codePointStart && U16_IS_LEAD(*(codePointStart-1))) { in skipPrevious() 222 if(U16_IS_TRAIL(c) && start<codePointStart && U16_IS_LEAD(c2=*(codePointStart-1))) { in previousCC() 511 if((src+1)!=limit && U16_IS_TRAIL(c2=src[1])) { in decompose() 1130 if((src+1)!=limit && U16_IS_TRAIL(c2=src[1])) { in compose() 1160 if( U16_IS_TRAIL(*prevBoundary) && prevSrc<prevBoundary && in compose() 1377 if((src+1)!=limit && U16_IS_TRAIL(c2=src[1])) { in composeQuickCheck() 1396 if( U16_IS_TRAIL(*prevBoundary) && prevSrc<prevBoundary && in composeQuickCheck() 1664 if((src+1)!=limit && U16_IS_TRAIL(c2=src[1])) { in makeFCD() 1701 if(U16_IS_TRAIL(*p) && prevSrc<p && U16_IS_LEAD(*(p-1))) { in makeFCD()
|
D | utext.cpp | 124 if (U16_IS_TRAIL(c)) { in utext_setNativeIndex() 151 if (U16_IS_TRAIL(c) == FALSE) { in utext_getPreviousNativeIndex() 229 if (U16_IS_TRAIL(trail)) { in utext_current32() 290 if (U16_IS_TRAIL(trail) == FALSE) { in utext_next32() 315 if (U16_IS_TRAIL(c) == FALSE) { in utext_previous32() 1822 if(ut->chunkNativeStart>0 && U16_IS_TRAIL(ex->s[0])) { in repTextAccess() 1863 if (start32<length && U16_IS_TRAIL(rep->charAt(start32)) && in repTextExtract() 1867 if (limit32<length && U16_IS_TRAIL(rep->charAt(limit32)) && in repTextExtract() 1908 if (start32<oldLength && U16_IS_TRAIL(rep->charAt(start32)) && in repTextReplace() 1914 U16_IS_TRAIL(rep->charAt(limit32))) in repTextReplace() [all …]
|
D | punycode.cpp | 230 } else if(U16_IS_LEAD(c) && U16_IS_TRAIL(c2=src[j+1])) { in u_strToPunycode() 263 } else if(U16_IS_LEAD(c) && (j+1)<srcLength && U16_IS_TRAIL(c2=src[j+1])) { in u_strToPunycode()
|
D | utrie2.h | 906 } else if((src)==(limit) || !U16_IS_TRAIL(__c2=*(src))) { \ 921 if(!U16_IS_TRAIL(c) || (src)==(start) || !U16_IS_LEAD(__c2=*((src)-1))) { \
|
D | uiter.cpp | 1033 if(U16_IS_TRAIL(c2=iter->current(iter))) { in uiter_current32() 1058 if(U16_IS_TRAIL(c2=iter->next(iter))) { in uiter_next32() 1073 if(U16_IS_TRAIL(c)) { in uiter_previous32()
|
D | ucnvscsu.c | 1109 if(U16_IS_TRAIL(trail)) { in _SCSUFromUnicodeWithOffsets() 1306 if(U16_IS_TRAIL(trail)) { in _SCSUFromUnicodeWithOffsets() 1584 if(U16_IS_TRAIL(trail)) { in _SCSUFromUnicode() 1768 if(U16_IS_TRAIL(trail)) { in _SCSUFromUnicode()
|
D | normalizer2impl.h | 298 if(U16_IS_LEAD(c) && s!=limit && U16_IS_TRAIL(c2=*s)) { in nextFCD16() 315 if(!U16_IS_TRAIL(c)) { in previousFCD16()
|
D | ucnv_u8.c | 406 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(*mySource)) { in ucnv_fromUnicode_UTF8() 532 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(*mySource)) { in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
|
D | unisetspan.cpp | 476 !(0<start && U16_IS_LEAD(s[-1]) && U16_IS_TRAIL(s[0])) && in matches16CPB() 477 !(length<limit && U16_IS_LEAD(s[length-1]) && U16_IS_TRAIL(s[length])); in matches16CPB() 485 if(c>=0xd800 && c<=0xdbff && length>=2 && U16_IS_TRAIL(c2=s[1])) { in spanOne()
|
D | ucnv2022.cpp | 1724 if(U16_IS_TRAIL(trail)) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() 2073 if( U16_IS_TRAIL(args->source[sourceIndex]) && in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() 2502 if(U16_IS_TRAIL(trail)) { in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC() 2568 if( U16_IS_TRAIL(args->source[sourceIndex]) && in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC() 2974 if(U16_IS_TRAIL(trail)) { in UConverter_fromUnicode_ISO_2022_CN_OFFSETS_LOGIC() 3261 if( U16_IS_TRAIL(args->source[sourceIndex]) && in UConverter_fromUnicode_ISO_2022_CN_OFFSETS_LOGIC()
|
D | ucnvbocu.cpp | 487 if(U16_IS_TRAIL(trail)) { in _Bocu1FromUnicodeWithOffsets() 722 if(U16_IS_TRAIL(trail)) { in _Bocu1FromUnicode()
|
D | utrie.h | 227 } else if((src)!=(limit) && U16_IS_TRAIL((c2)=*(src))) { \
|
D | ucnv_u32.c | 734 if (U16_IS_TRAIL(ch2)) { in T_UConverter_fromUnicode_UTF32_LE() 846 if (U16_IS_TRAIL(ch2)) in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
|
D | ucnvhz.c | 455 if(U16_IS_TRAIL(trail)) { in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
|
/external/icu/icu4c/source/i18n/ |
D | utf16collationiterator.cpp | 71 if(U16_IS_TRAIL(trail = *pos)) { ++pos; } in handleGetTrailSurrogate() 97 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) { in nextCodePoint() 112 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) { in previousCodePoint() 130 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(*pos)) { in forwardNumCodePoints() 141 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(*(pos-1))) { in backwardNumCodePoints() 279 if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) { in nextCodePoint() 315 if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) { in previousCodePoint()
|
D | uitercollationiterator.cpp | 54 if(!U16_IS_TRAIL(trail) && trail >= 0) { iter.previous(&iter); } in handleGetTrailSurrogate() 145 if(U16_IS_TRAIL(trail)) { in handleGetTrailSurrogate() 154 if(U16_IS_TRAIL(trail = normalized[pos])) { ++pos; } in handleGetTrailSurrogate() 180 if(U16_IS_TRAIL(trail)) { in nextCodePoint() 227 if(U16_IS_TRAIL(c)) { in previousCodePoint()
|
D | utf8collationiterator.cpp | 250 if(U16_IS_TRAIL(trail = normalized[pos])) { ++pos; } in handleGetTrailSurrogate()
|
/external/icu/icu4c/source/test/cintltst/ |
D | utf16tst.c | 63 …| UTF16_IS_LEAD(c) || UTF16_IS_TRAIL(c) || !U16_IS_SINGLE(c) || U16_IS_LEAD(c) || U16_IS_TRAIL(c)){ in TestCodeUnitValues() 68 …UTF16_IS_SINGLE(c) || UTF16_IS_TRAIL(c) || !U16_IS_LEAD(c) || U16_IS_SINGLE(c) || U16_IS_TRAIL(c)){ in TestCodeUnitValues() 73 …if(!UTF16_IS_TRAIL(c) || UTF16_IS_SINGLE(c) || UTF16_IS_LEAD(c) || !U16_IS_TRAIL(c) || U16_IS_SING… in TestCodeUnitValues()
|
D | trietest.c | 183 !U16_IS_LEAD(c) || !U16_IS_TRAIL(c2) || c!=*(p-2) || c2!=*(p-1) in testTrieIteration() 247 !U16_IS_LEAD(c) || !U16_IS_TRAIL(c2) || c!=*p || c2!=*(p+1) in testTrieIteration()
|