Home | History | Annotate | Download | only in common

Lines Matching defs:c1

61  *   get one code unit c1 from s1 (-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;
218 if(c1<0) {
221 if(s1==limit1 || ((c1=*s1)==0 && (limit1==NULL || (options&_STRNCMP_STYLE)))) {
223 c1=-1;
265 * compare c1 and c2
266 * either variable c1, c2 is -1 only if the corresponding string is finished
268 if(c1==c2) {
269 if(c1<0) {
270 return 0; /* c1==c2==-1 indicating end of strings */
272 c1=c2=-1; /* make us fetch new code units */
274 } else if(c1<0) {
279 /* c1!=c2 && c1>=0 && c2>=0 */
281 /* get complete code points for c1, c2 for lookups if either is a surrogate */
282 cp1=c1;
283 if(U_IS_SURROGATE(c1)) {
286 if(U_IS_SURROGATE_LEAD(c1)) {
289 cp1=U16_GET_SUPPLEMENTARY(c1, c);
291 } else /* isTrail(c1) */ {
293 cp1=U16_GET_SUPPLEMENTARY(c, c1);
323 if(U_IS_SURROGATE(c1)) {
324 if(U_IS_SURROGATE_LEAD(c1)) {
327 } else /* isTrail(c1) */ {
360 c1=-1;
381 c1=*(s1-1);
413 if(U_IS_SURROGATE(c1)) {
414 if(U_IS_SURROGATE_LEAD(c1)) {
417 } else /* isTrail(c1) */ {
446 c1=-1;
467 c1=*(s1-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)) {
511 (c1<=0xdbff && s1!=limit1 && U16_IS_TRAIL(*s1)) ||
512 (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2)))
517 c1-=0x2800;
531 return c1-c2;