Home
last modified time | relevance | path

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

12

/external/icu/icu4c/source/common/unicode/
Dutf16.h58 #define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800) macro
209 if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
252 if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
286 if(U16_IS_LEAD(c)) { \
314 if(U16_IS_LEAD(c)) { \
422 if(U16_IS_LEAD((s)[(i)++])) { \
441 if(U16_IS_LEAD((s)[(i)++]) && (i)!=(length) && U16_IS_TRAIL((s)[i])) { \
523 if(U16_IS_TRAIL((s)[i]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
581 if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
614 if(U16_IS_SURROGATE_TRAIL(c) && (i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
[all …]
Dutf_old.h1042 #define UTF_IS_LEAD(uchar) U16_IS_LEAD(uchar)
/external/icu/icu4c/source/common/
Dustring.cpp44 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()
799 (U16_IS_TRAIL(c1) && start1!=s1 && U16_IS_LEAD(*(s1-1))) in uprv_strCompare()
809 (U16_IS_TRAIL(c2) && start2!=s2 && U16_IS_LEAD(*(s2-1))) in uprv_strCompare()
861 (U16_IS_TRAIL(c1) && (iter1->previous(iter1), U16_IS_LEAD(iter1->previous(iter1)))) in u_strCompareIter()
871 (U16_IS_TRAIL(c2) && (iter2->previous(iter2), U16_IS_LEAD(iter2->previous(iter2)))) in u_strCompareIter()
911 if(!U16_IS_LEAD(iter1->previous(iter1))) {
1019 if(U16_IS_LEAD(*s) && length>=2 && U16_IS_TRAIL(*(s+1))) { in u_countChar32()
1040 if(U16_IS_LEAD(c) && U16_IS_TRAIL(*s)) { in u_countChar32()
1070 if(U16_IS_LEAD(c) && U16_IS_TRAIL(*s)) { in u_strHasMoreChar32Than()
[all …]
Dunormcmp.cpp288 if(start1<=(s1-2) && U16_IS_LEAD(c=*(s1-2))) { in unorm_cmpEquivFold()
304 if(start2<=(s2-2) && U16_IS_LEAD(c=*(s2-2))) { in unorm_cmpEquivFold()
508 (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2))) in unorm_cmpEquivFold()
518 (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2))) in unorm_cmpEquivFold()
Dutrie.h226 if(!U16_IS_LEAD(c)) { \
247 if((start)!=(src) && U16_IS_LEAD((c2)=*((src)-1))) { \
Dpunycode.cpp232 } 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()
Dutext.cpp132 if (U16_IS_LEAD(lead)) { in utext_setNativeIndex()
197 if (U16_IS_LEAD(c) == FALSE) { in utext_current32()
277 if (U16_IS_LEAD(c) == FALSE) { in utext_next32()
333 if (U16_IS_LEAD(lead) == FALSE) { in utext_previous32()
1827 U16_IS_LEAD(ex->s[ut->chunkLength-1])) { in repTextAccess()
1924 start32>0 && U16_IS_LEAD(rep->charAt(start32-1))) in repTextReplace()
1928 if (limit32<oldLength && U16_IS_LEAD(rep->charAt(limit32-1)) && in repTextReplace()
2479 if (U16_IS_LEAD(str[chunkLimit-1])) { in ucstrTextAccess()
2566 if (si>0 && U16_IS_LEAD(s[si-1]) && in ucstrTextExtract()
Dutrie2.h909 if(!U16_IS_LEAD(c)) { \
926 if(!U16_IS_TRAIL(c) || (src)==(start) || !U16_IS_LEAD(__c2=*((src)-1))) { \
Duiter.cpp1042 if(U16_IS_LEAD(c2=iter->previous(iter))) { in uiter_current32()
1059 if(U16_IS_LEAD(c)) { in uiter_next32()
1076 if(U16_IS_LEAD(c2=iter->previous(iter))) { in uiter_previous32()
Dustrcase.cpp1435 if(start1<=(s1-2) && U16_IS_LEAD(c=*(s1-2))) { in _cmpFold()
1451 if(start2<=(s2-2) && U16_IS_LEAD(c=*(s2-2))) { in _cmpFold()
1575 (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2))) in _cmpFold()
1585 (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2))) in _cmpFold()
Dnormalizer2impl.cpp373 if(U16_IS_TRAIL(c) && start<codePointStart && U16_IS_LEAD(*(codePointStart-1))) { in skipPrevious()
385 if(U16_IS_TRAIL(c) && start<codePointStart && U16_IS_LEAD(c2=*(codePointStart-1))) { in previousCC()
648 if(prevSrc<src && U16_IS_LEAD(c2=*(src-1))) { in decompose()
1377 if(prevBoundary<prevSrc && U16_IS_LEAD(c2=*(prevSrc-1))) { in compose()
1644 if(prevBoundary<prevSrc && U16_IS_LEAD(c2=*(prevSrc-1))) { in composeQuickCheck()
2205 if(prevSrc<src && U16_IS_LEAD(c2=*(src-1))) { in makeFCD()
2242 if(U16_IS_TRAIL(*p) && prevSrc<p && U16_IS_LEAD(*(p-1))) { in makeFCD()
Dunistr.cpp1630 hasSupplementary |= (UBool)U16_IS_LEAD(swap = *left); in doReverse()
1631 hasSupplementary |= (UBool)U16_IS_LEAD(*left++ = *right); in doReverse()
1636 hasSupplementary |= (UBool)U16_IS_LEAD(*left); in doReverse()
1645 if(U16_IS_TRAIL(swap = *left) && U16_IS_LEAD(swap2 = *(left + 1))) { in doReverse()
Dunisetspan.cpp478 !(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()
496 if(c>=0xdc00 && c<=0xdfff && length>=2 && U16_IS_LEAD(c2=s[length-2])) { in spanOneBack()
Dnormalizer2impl.h319 if(U16_IS_LEAD(c) && s!=limit && U16_IS_TRAIL(c2=*s)) { in nextFCD16()
342 if(start<s && U16_IS_LEAD(c2=*(s-1))) { in previousFCD16()
Ducnvbocu.cpp484 if(U16_IS_LEAD(c)) { in _Bocu1FromUnicodeWithOffsets()
728 if(U16_IS_LEAD(c)) { in _Bocu1FromUnicode()
Ducnv_u32.cpp733 if (U16_IS_LEAD(ch)) in T_UConverter_fromUnicode_UTF32_LE()
845 if (U16_IS_LEAD(ch)) in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
Dutrie2.cpp734 if(!U16_IS_LEAD(lead)) { in utrie2_enumForLeadSurrogate()
Ducnv2022.cpp2063 (sourceIndex==0 || U16_IS_LEAD(args->source[sourceIndex-1])) in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
2557 (sourceIndex==0 || U16_IS_LEAD(args->source[sourceIndex-1])) in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC()
3250 (sourceIndex==0 || U16_IS_LEAD(args->source[sourceIndex-1])) in UConverter_fromUnicode_ISO_2022_CN_OFFSETS_LOGIC()
/external/icu/icu4c/source/i18n/
Dutf16collationiterator.cpp99 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()
Duitercollationiterator.cpp180 if(U16_IS_LEAD(c)) { in nextCodePoint()
233 if(U16_IS_LEAD(prev)) { in previousCodePoint()
Dnumber_types.h112 if (U16_IS_LEAD(leading) && length() > index + 1) { in codePointAt()
Dcoleitr.cpp239 (U16_IS_LEAD(c) && !rbc_->isUnsafe(string_.char32At(offset)))) { in setOffset()
/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.c82 !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()
/external/icu/icu4c/source/tools/toolutil/
Ducbuf.cpp358 if(U16_IS_LEAD(*(buf->currentPos))){ in ucbuf_getc32()

12