Home
last modified time | relevance | path

Searched refs:U16_IS_LEAD (Results 1 – 25 of 33) sorted by relevance

12

/external/icu/icu4c/source/common/unicode/
Dutf16.h56 #define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800) macro
207 if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
237 if(U16_IS_LEAD(c)) { \
266 if(U16_IS_LEAD(c)) { \
336 if(U16_IS_LEAD((s)[(i)++])) { \
355 if(U16_IS_LEAD((s)[(i)++]) && (i)!=(length) && U16_IS_TRAIL((s)[i])) { \
437 if(U16_IS_TRAIL((s)[i]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
496 if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
533 if(U16_IS_TRAIL((s)[--(i)]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
595 if(U16_IS_LEAD((s)[(i)-1])) { \
[all …]
Dutf_old.h1006 #define UTF_IS_LEAD(uchar) U16_IS_LEAD(uchar)
/external/icu/icu4c/source/common/
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()
796 (U16_IS_TRAIL(c1) && start1!=s1 && U16_IS_LEAD(*(s1-1))) in uprv_strCompare()
806 (U16_IS_TRAIL(c2) && start2!=s2 && U16_IS_LEAD(*(s2-1))) in uprv_strCompare()
858 (U16_IS_TRAIL(c1) && (iter1->previous(iter1), U16_IS_LEAD(iter1->previous(iter1)))) in u_strCompareIter()
868 (U16_IS_TRAIL(c2) && (iter2->previous(iter2), U16_IS_LEAD(iter2->previous(iter2)))) in u_strCompareIter()
908 if(!U16_IS_LEAD(iter1->previous(iter1))) {
1016 if(U16_IS_LEAD(*s) && length>=2 && U16_IS_TRAIL(*(s+1))) { in u_countChar32()
1037 if(U16_IS_LEAD(c) && U16_IS_TRAIL(*s)) { in u_countChar32()
1067 if(U16_IS_LEAD(c) && U16_IS_TRAIL(*s)) { in u_strHasMoreChar32Than()
[all …]
Dunormcmp.cpp292 if(start1<=(s1-2) && U16_IS_LEAD(c=*(s1-2))) { in unorm_cmpEquivFold()
308 if(start2<=(s2-2) && U16_IS_LEAD(c=*(s2-2))) { in unorm_cmpEquivFold()
512 (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2))) in unorm_cmpEquivFold()
522 (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2))) in unorm_cmpEquivFold()
Dustrcase.cpp676 if(start1<=(s1-2) && U16_IS_LEAD(c=*(s1-2))) { in _cmpFold()
692 if(start2<=(s2-2) && U16_IS_LEAD(c=*(s2-2))) { in _cmpFold()
816 (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2))) in _cmpFold()
826 (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2))) in _cmpFold()
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()
515 if(prevSrc<src && U16_IS_LEAD(c2=*(src-1))) { in decompose()
1134 if(prevSrc<src && U16_IS_LEAD(c2=*(src-1))) { in compose()
1161 U16_IS_LEAD(*(prevBoundary-1)) in compose()
1381 if(prevSrc<src && U16_IS_LEAD(c2=*(src-1))) { in composeQuickCheck()
1397 U16_IS_LEAD(*(prevBoundary-1)) in composeQuickCheck()
1668 if(prevSrc<src && U16_IS_LEAD(c2=*(src-1))) { in makeFCD()
1701 if(U16_IS_TRAIL(*p) && prevSrc<p && U16_IS_LEAD(*(p-1))) { in makeFCD()
Dutrie.h224 if(!U16_IS_LEAD(c)) { \
245 if((start)!=(src) && U16_IS_LEAD((c2)=*((src)-1))) { \
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()
Dutext.cpp130 if (U16_IS_LEAD(lead)) { in utext_setNativeIndex()
195 if (U16_IS_LEAD(c) == FALSE) { in utext_current32()
275 if (U16_IS_LEAD(c) == FALSE) { in utext_next32()
331 if (U16_IS_LEAD(lead) == FALSE) { in utext_previous32()
1812 U16_IS_LEAD(ex->s[ut->chunkLength-1])) { in repTextAccess()
1909 start32>0 && U16_IS_LEAD(rep->charAt(start32-1))) in repTextReplace()
1913 if (limit32<oldLength && U16_IS_LEAD(rep->charAt(limit32-1)) && in repTextReplace()
2461 if (U16_IS_LEAD(str[chunkLimit-1])) { in ucstrTextAccess()
2547 if (si>0 && U16_IS_LEAD(s[si-1]) && in ucstrTextExtract()
Dutrie2.h904 if(!U16_IS_LEAD(c)) { \
921 if(!U16_IS_TRAIL(c) || (src)==(start) || !U16_IS_LEAD(__c2=*((src)-1))) { \
Duiter.cpp1040 if(U16_IS_LEAD(c2=iter->previous(iter))) { in uiter_current32()
1057 if(U16_IS_LEAD(c)) { in uiter_next32()
1074 if(U16_IS_LEAD(c2=iter->previous(iter))) { in uiter_previous32()
Dunistr.cpp1489 hasSupplementary |= (UBool)U16_IS_LEAD(swap = *left); in doReverse()
1490 hasSupplementary |= (UBool)U16_IS_LEAD(*left++ = *right); in doReverse()
1495 hasSupplementary |= (UBool)U16_IS_LEAD(*left); in doReverse()
1504 if(U16_IS_TRAIL(swap = *left) && U16_IS_LEAD(swap2 = *(left + 1))) { in doReverse()
Dnormalizer2impl.h298 if(U16_IS_LEAD(c) && s!=limit && U16_IS_TRAIL(c2=*s)) { in nextFCD16()
321 if(start<s && U16_IS_LEAD(c2=*(s-1))) { in previousFCD16()
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()
494 if(c>=0xdc00 && c<=0xdfff && length>=2 && U16_IS_LEAD(c2=s[length-2])) { in spanOneBack()
Ducnvbocu.cpp484 if(U16_IS_LEAD(c)) { in _Bocu1FromUnicodeWithOffsets()
719 if(U16_IS_LEAD(c)) { in _Bocu1FromUnicode()
Ducnv_u32.c731 if (U16_IS_LEAD(ch)) in T_UConverter_fromUnicode_UTF32_LE()
843 if (U16_IS_LEAD(ch)) in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
Dutrie2.cpp732 if(!U16_IS_LEAD(lead)) { in utrie2_enumForLeadSurrogate()
Ducnv2022.cpp2074 (sourceIndex==0 || U16_IS_LEAD(args->source[sourceIndex-1])) in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2569 (sourceIndex==0 || U16_IS_LEAD(args->source[sourceIndex-1])) in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC()
3262 (sourceIndex==0 || U16_IS_LEAD(args->source[sourceIndex-1])) in UConverter_fromUnicode_ISO_2022_CN_OFFSETS_LOGIC()
/external/icu/icu4c/source/i18n/
Dutf16collationiterator.cpp97 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.cpp178 if(U16_IS_LEAD(c)) { in nextCodePoint()
231 if(U16_IS_LEAD(prev)) { in previousCodePoint()
Dcoleitr.cpp236 (U16_IS_LEAD(c) && !rbc_->isUnsafe(string_.char32At(offset)))) { in setOffset()
Dcollationruleparser.cpp851 if(U16_IS_LEAD(rules->charAt(ruleIndex + length - 1))) { in setErrorContext()
/external/icu/icu4c/source/test/cintltst/
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()
388 if(!U16_IS_LEAD(start)) { in testTrieRangesWithMalloc()
597 if(!U16_IS_LEAD(start)) { in testTrieRanges()
Dutf16tst.c63 …LE(c) || UTF16_IS_LEAD(c) || UTF16_IS_TRAIL(c) || !U16_IS_SINGLE(c) || U16_IS_LEAD(c) || U16_IS_TR… in TestCodeUnitValues()
68 …if(!UTF16_IS_LEAD(c) || UTF16_IS_SINGLE(c) || UTF16_IS_TRAIL(c) || !U16_IS_LEAD(c) || U16_IS_SINGL… in TestCodeUnitValues()
73 … UTF16_IS_SINGLE(c) || UTF16_IS_LEAD(c) || !U16_IS_TRAIL(c) || U16_IS_SINGLE(c) || U16_IS_LEAD(c)){ in TestCodeUnitValues()
/external/icu/icu4c/source/tools/toolutil/
Ducbuf.c356 if(U16_IS_LEAD(*(buf->currentPos))){ in ucbuf_getc32()

12