Home | History | Annotate | Download | only in common

Lines Matching defs:c2

64  *   get one code unit c2 from s2 (-1 if end of source)
69 * if(c1==c2) {
73 * // c1!=c2
74 * try to decompose/case-fold c1/c2, and continue if one does;
76 * // still c1!=c2 and neither decomposes/case-folds, return result
77 * return c1-c2;
170 UChar32 c1, c2, cp1, cp2;
211 c1=c2=-1;
243 if(c2<0) {
246 if(s2==limit2 || ((c2=*s2)==0 && (limit2==NULL || (options&_STRNCMP_STYLE)))) {
248 c2=-1;
267 * compare c1 and c2
268 * either variable c1, c2 is -1 only if the corresponding string is finished
270 if(c1==c2) {
272 return 0; /* c1==c2==-1 indicating end of strings */
274 c1=c2=-1; /* make us fetch new code units */
278 } else if(c2<0) {
281 /* c1!=c2 && c1>=0 && c2>=0 */
283 /* get complete code points for c1, c2 for lookups if either is a surrogate */
300 cp2=c2;
301 if(U_IS_SURROGATE(c2)) {
304 if(U_IS_SURROGATE_LEAD(c2)) {
307 cp2=U16_GET_SUPPLEMENTARY(c2, c);
309 } else /* isTrail(c2) */ {
311 cp2=U16_GET_SUPPLEMENTARY(c, c2);
338 c2=*(s2-1);
370 if(U_IS_SURROGATE(c2)) {
371 if(U_IS_SURROGATE_LEAD(c2)) {
374 } else /* isTrail(c2) */ {
407 c2=-1;
428 c2=*(s2-1);
456 if(U_IS_SURROGATE(c2)) {
457 if(U_IS_SURROGATE_LEAD(c2)) {
460 } else /* isTrail(c2) */ {
489 c2=-1;
502 * c1=d800 cp1=10001 c2=dc00 cp2=10000
503 * cp1-cp2>0 but c1-c2<0 and in fact in UTF-32 it is { d800 10001 } < { 10000 }
510 if(c1>=0xd800 && c2>=0xd800 && (options&U_COMPARE_CODE_POINT_ORDER)) {
523 (c2<=0xdbff && s2!=limit2 && U16_IS_TRAIL(*s2)) ||
524 (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2)))
529 c2-=0x2800;
533 return c1-c2;