Home | History | Annotate | Download | only in common

Lines Matching refs:c2

128     UChar32 c, c2 = 0;
142 if((destIndex<destCapacity) && (c<0 ? (c2=~c)<=0xffff : UCASE_MAX_STRING_LENGTH<c && (c2=c)<=0xffff)) {
144 dest[destIndex++]=(UChar)c2;
424 UChar32 c, c2 = 0;
431 if((destIndex<destCapacity) && (c<0 ? (c2=~c)<=0xffff : UCASE_MAX_STRING_LENGTH<c && (c2=c)<=0xffff)) {
433 dest[destIndex++]=(UChar)c2;
672 UChar32 c1, c2, cp1, cp2;
701 c1=c2=-1;
733 if(c2<0) {
736 if(s2==limit2 || ((c2=*s2)==0 && (limit2==NULL || (options&_STRNCMP_STYLE)))) {
738 c2=-1;
757 * compare c1 and c2
758 * either variable c1, c2 is -1 only if the corresponding string is finished
760 if(c1==c2) {
762 return 0; /* c1==c2==-1 indicating end of strings */
764 c1=c2=-1; /* make us fetch new code units */
768 } else if(c2<0) {
771 /* c1!=c2 && c1>=0 && c2>=0 */
773 /* get complete code points for c1, c2 for lookups if either is a surrogate */
790 cp2=c2;
791 if(U_IS_SURROGATE(c2)) {
794 if(U_IS_SURROGATE_LEAD(c2)) {
797 cp2=U16_GET_SUPPLEMENTARY(c2, c);
799 } else /* isTrail(c2) */ {
801 cp2=U16_GET_SUPPLEMENTARY(c, c2);
828 c2=*(s2-1);
860 if(U_IS_SURROGATE(c2)) {
861 if(U_IS_SURROGATE_LEAD(c2)) {
864 } else /* isTrail(c2) */ {
897 c2=-1;
910 * c1=d800 cp1=10001 c2=dc00 cp2=10000
911 * cp1-cp2>0 but c1-c2<0 and in fact in UTF-32 it is { d800 10001 } < { 10000 }
918 if(c1>=0xd800 && c2>=0xd800 && (options&U_COMPARE_CODE_POINT_ORDER)) {
931 (c2<=0xdbff && s2!=limit2 && U16_IS_TRAIL(*s2)) ||
932 (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2)))
937 c2-=0x2800;
941 return c1-c2;