Home | History | Annotate | Download | only in common

Lines Matching defs:c1

63  *   get one code unit c1 from s1 (-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;
220 if(c1<0) {
223 if(s1==limit1 || ((c1=*s1)==0 && (limit1==NULL || (options&_STRNCMP_STYLE)))) {
225 c1=-1;
267 * compare c1 and c2
268 * either variable c1, c2 is -1 only if the corresponding string is finished
270 if(c1==c2) {
271 if(c1<0) {
272 return 0; /* c1==c2==-1 indicating end of strings */
274 c1=c2=-1; /* make us fetch new code units */
276 } else if(c1<0) {
281 /* c1!=c2 && c1>=0 && c2>=0 */
283 /* get complete code points for c1, c2 for lookups if either is a surrogate */
284 cp1=c1;
285 if(U_IS_SURROGATE(c1)) {
288 if(U_IS_SURROGATE_LEAD(c1)) {
291 cp1=U16_GET_SUPPLEMENTARY(c1, c);
293 } else /* isTrail(c1) */ {
295 cp1=U16_GET_SUPPLEMENTARY(c, c1);
325 if(U_IS_SURROGATE(c1)) {
326 if(U_IS_SURROGATE_LEAD(c1)) {
329 } else /* isTrail(c1) */ {
362 c1=-1;
383 c1=*(s1-1);
415 if(U_IS_SURROGATE(c1)) {
416 if(U_IS_SURROGATE_LEAD(c1)) {
419 } else /* isTrail(c1) */ {
448 c1=-1;
469 c1=*(s1-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)) {
513 (c1<=0xdbff && s1!=limit1 && U16_IS_TRAIL(*s1)) ||
514 (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2)))
519 c1-=0x2800;
533 return c1-c2;