Lines Matching refs:c1
672 UChar32 c1, c2, cp1, cp2;
701 c1=c2=-1;
710 if(c1<0) {
713 if(s1==limit1 || ((c1=*s1)==0 && (limit1==NULL || (options&_STRNCMP_STYLE)))) {
715 c1=-1;
757 * compare c1 and c2
758 * either variable c1, c2 is -1 only if the corresponding string is finished
760 if(c1==c2) {
761 if(c1<0) {
762 return 0; /* c1==c2==-1 indicating end of strings */
764 c1=c2=-1; /* make us fetch new code units */
766 } else if(c1<0) {
771 /* c1!=c2 && c1>=0 && c2>=0 */
773 /* get complete code points for c1, c2 for lookups if either is a surrogate */
774 cp1=c1;
775 if(U_IS_SURROGATE(c1)) {
778 if(U_IS_SURROGATE_LEAD(c1)) {
781 cp1=U16_GET_SUPPLEMENTARY(c1, c);
783 } else /* isTrail(c1) */ {
785 cp1=U16_GET_SUPPLEMENTARY(c, c1);
815 if(U_IS_SURROGATE(c1)) {
816 if(U_IS_SURROGATE_LEAD(c1)) {
819 } else /* isTrail(c1) */ {
852 c1=-1;
873 c1=*(s1-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)) {
921 (c1<=0xdbff && s1!=limit1 && U16_IS_TRAIL(*s1)) ||
922 (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2)))
927 c1-=0x2800;
941 return c1-c2;