Home
last modified time | relevance | path

Searched refs:U16_IS_TRAIL (Results 1 – 25 of 41) sorted by relevance

12

/external/icu/icu4c/source/common/unicode/
Dutf16.h64 #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/
Ducnv_u16.c91 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 …]
Dustring.cpp41 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 …]
Dunormcmp.cpp287 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()
Dustrcase.cpp671 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()
Dustrtrns.cpp212 } 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()
Dnormalizer2impl.cpp206 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()
Dutext.cpp124 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 …]
Dpunycode.cpp230 } 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()
Dutrie2.h906 } else if((src)==(limit) || !U16_IS_TRAIL(__c2=*(src))) { \
921 if(!U16_IS_TRAIL(c) || (src)==(start) || !U16_IS_LEAD(__c2=*((src)-1))) { \
Duiter.cpp1033 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()
Ducnvscsu.c1109 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()
Dnormalizer2impl.h298 if(U16_IS_LEAD(c) && s!=limit && U16_IS_TRAIL(c2=*s)) { in nextFCD16()
315 if(!U16_IS_TRAIL(c)) { in previousFCD16()
Ducnv_u8.c406 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()
Dunisetspan.cpp476 !(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()
Ducnv2022.cpp1724 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()
Ducnvbocu.cpp487 if(U16_IS_TRAIL(trail)) { in _Bocu1FromUnicodeWithOffsets()
722 if(U16_IS_TRAIL(trail)) { in _Bocu1FromUnicode()
Dutrie.h227 } else if((src)!=(limit) && U16_IS_TRAIL((c2)=*(src))) { \
Ducnv_u32.c734 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()
Ducnvhz.c455 if(U16_IS_TRAIL(trail)) { in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
/external/icu/icu4c/source/i18n/
Dutf16collationiterator.cpp71 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()
Duitercollationiterator.cpp54 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()
Dutf8collationiterator.cpp250 if(U16_IS_TRAIL(trail = normalized[pos])) { ++pos; } in handleGetTrailSurrogate()
/external/icu/icu4c/source/test/cintltst/
Dutf16tst.c63 …| 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()
Dtrietest.c183 !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()

12