Home | History | Annotate | Download | only in common

Lines Matching defs:c2

62  *   get one code unit c2 from s2 (-1 if end of source)
67 * if(c1==c2) {
71 * // c1!=c2
72 * try to decompose/case-fold c1/c2, and continue if one does;
74 * // still c1!=c2 and neither decomposes/case-folds, return result
75 * return c1-c2;
168 UChar32 c1, c2, cp1, cp2;
209 c1=c2=-1;
241 if(c2<0) {
244 if(s2==limit2 || ((c2=*s2)==0 && (limit2==NULL || (options&_STRNCMP_STYLE)))) {
246 c2=-1;
265 * compare c1 and c2
266 * either variable c1, c2 is -1 only if the corresponding string is finished
268 if(c1==c2) {
270 return 0; /* c1==c2==-1 indicating end of strings */
272 c1=c2=-1; /* make us fetch new code units */
276 } else if(c2<0) {
279 /* c1!=c2 && c1>=0 && c2>=0 */
281 /* get complete code points for c1, c2 for lookups if either is a surrogate */
298 cp2=c2;
299 if(U_IS_SURROGATE(c2)) {
302 if(U_IS_SURROGATE_LEAD(c2)) {
305 cp2=U16_GET_SUPPLEMENTARY(c2, c);
307 } else /* isTrail(c2) */ {
309 cp2=U16_GET_SUPPLEMENTARY(c, c2);
336 c2=*(s2-1);
368 if(U_IS_SURROGATE(c2)) {
369 if(U_IS_SURROGATE_LEAD(c2)) {
372 } else /* isTrail(c2) */ {
405 c2=-1;
426 c2=*(s2-1);
454 if(U_IS_SURROGATE(c2)) {
455 if(U_IS_SURROGATE_LEAD(c2)) {
458 } else /* isTrail(c2) */ {
487 c2=-1;
500 * c1=d800 cp1=10001 c2=dc00 cp2=10000
501 * cp1-cp2>0 but c1-c2<0 and in fact in UTF-32 it is { d800 10001 } < { 10000 }
508 if(c1>=0xd800 && c2>=0xd800 && (options&U_COMPARE_CODE_POINT_ORDER)) {
521 (c2<=0xdbff && s2!=limit2 && U16_IS_TRAIL(*s2)) ||
522 (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2)))
527 c2-=0x2800;
531 return c1-c2;