Lines Matching refs:c
90 static int IsAlpha(int enc, int c) in IsAlpha() argument
93 return isalpha(c); in IsAlpha()
95 if (c >= 0x41 && c <= 0x5a) return 1; in IsAlpha()
96 if (c >= 0x61 && c <= 0x7a) return 1; in IsAlpha()
102 if (c == 0xaa) return 1; in IsAlpha()
103 if (c == 0xb5) return 1; in IsAlpha()
104 if (c == 0xba) return 1; in IsAlpha()
105 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
106 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
107 if (c >= 0xf8 && c <= 0xff) return 1; in IsAlpha()
111 if (c == 0xa1 || c == 0xa3) return 1; in IsAlpha()
112 if (c == 0xa5 || c == 0xa6) return 1; in IsAlpha()
113 if (c >= 0xa9 && c <= 0xac) return 1; in IsAlpha()
114 if (c >= 0xae && c <= 0xaf) return 1; in IsAlpha()
115 if (c == 0xb1 || c == 0xb3) return 1; in IsAlpha()
116 if (c == 0xb5 || c == 0xb6) return 1; in IsAlpha()
117 if (c >= 0xb9 && c <= 0xbc) return 1; in IsAlpha()
118 if (c >= 0xbe && c <= 0xbf) return 1; in IsAlpha()
119 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
120 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
121 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
125 if (c == 0xa1) return 1; in IsAlpha()
126 if (c == 0xa6) return 1; in IsAlpha()
127 if (c >= 0xa9 && c <= 0xac) return 1; in IsAlpha()
128 if (c == 0xaf) return 1; in IsAlpha()
129 if (c == 0xb1) return 1; in IsAlpha()
130 if (c == 0xb5 || c == 0xb6) return 1; in IsAlpha()
131 if (c >= 0xb9 && c <= 0xbc) return 1; in IsAlpha()
132 if (c == 0xbf) return 1; in IsAlpha()
133 if (c >= 0xc0 && c <= 0xc2) return 1; in IsAlpha()
134 if (c >= 0xc4 && c <= 0xcf) return 1; in IsAlpha()
135 if (c >= 0xd1 && c <= 0xd6) return 1; in IsAlpha()
136 if (c >= 0xd8 && c <= 0xe2) return 1; in IsAlpha()
137 if (c >= 0xe4 && c <= 0xef) return 1; in IsAlpha()
138 if (c >= 0xf1 && c <= 0xf6) return 1; in IsAlpha()
139 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
143 if (c >= 0xa1 && c <= 0xa3) return 1; in IsAlpha()
144 if (c == 0xa5 || c == 0xa6) return 1; in IsAlpha()
145 if (c >= 0xa9 && c <= 0xac) return 1; in IsAlpha()
146 if (c == 0xae) return 1; in IsAlpha()
147 if (c == 0xb1 || c == 0xb3) return 1; in IsAlpha()
148 if (c == 0xb5 || c == 0xb6) return 1; in IsAlpha()
149 if (c >= 0xb9 && c <= 0xbf) return 1; in IsAlpha()
150 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
151 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
152 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
156 if (c >= 0xa1 && c <= 0xcf && c != 0xad) return 1; in IsAlpha()
157 if (c >= 0xd0 && c <= 0xff && c != 0xf0 && c != 0xfd) return 1; in IsAlpha()
161 if (c >= 0xc1 && c <= 0xda) return 1; in IsAlpha()
162 if (c >= 0xe0 && c <= 0xf2) return 1; in IsAlpha()
166 if (c == 0xb6) return 1; in IsAlpha()
167 if (c >= 0xb8 && c <= 0xba) return 1; in IsAlpha()
168 if (c == 0xbc) return 1; in IsAlpha()
169 if (c >= 0xbe && c <= 0xbf) return 1; in IsAlpha()
170 if (c == 0xc0) return 1; in IsAlpha()
171 if (c >= 0xc1 && c <= 0xdb && c != 0xd2) return 1; in IsAlpha()
172 if (c >= 0xdc && c <= 0xfe) return 1; in IsAlpha()
176 if (c == 0xb5) return 1; in IsAlpha()
177 if (c >= 0xe0 && c <= 0xfa) return 1; in IsAlpha()
181 if (c >= 0xa1 && c <= 0xa6) return 1; in IsAlpha()
182 if (c >= 0xa8 && c <= 0xac) return 1; in IsAlpha()
183 if (c == 0xae || c == 0xaf) return 1; in IsAlpha()
184 if (c >= 0xb1 && c <= 0xb6) return 1; in IsAlpha()
185 if (c >= 0xb8 && c <= 0xbc) return 1; in IsAlpha()
186 if (c >= 0xbe && c <= 0xff) return 1; in IsAlpha()
190 if (c >= 0xa1 && c <= 0xda) return 1; in IsAlpha()
191 if (c >= 0xdf && c <= 0xfb) return 1; in IsAlpha()
195 if (c == 0xa8) return 1; in IsAlpha()
196 if (c == 0xaa) return 1; in IsAlpha()
197 if (c == 0xaf) return 1; in IsAlpha()
198 if (c == 0xb5) return 1; in IsAlpha()
199 if (c == 0xb8) return 1; in IsAlpha()
200 if (c == 0xba) return 1; in IsAlpha()
201 if (c >= 0xbf && c <= 0xd6) return 1; in IsAlpha()
202 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
203 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
207 if (c == 0xa1 || c == 0xa2) return 1; in IsAlpha()
208 if (c == 0xa4 || c == 0xa5) return 1; in IsAlpha()
209 if (c == 0xa6 || c == 0xa8) return 1; in IsAlpha()
210 if (c >= 0xaa && c <= 0xac) return 1; in IsAlpha()
211 if (c >= 0xaf && c <= 0xb5) return 1; in IsAlpha()
212 if (c >= 0xb7 && c <= 0xff) return 1; in IsAlpha()
216 if (c == 0xaa) return 1; in IsAlpha()
217 if (c == 0xb5) return 1; in IsAlpha()
218 if (c == 0xba) return 1; in IsAlpha()
219 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
220 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
221 if (c >= 0xf8 && c <= 0xff) return 1; in IsAlpha()
222 if (c == 0xa6) return 1; in IsAlpha()
223 if (c == 0xa8) return 1; in IsAlpha()
224 if (c == 0xb4) return 1; in IsAlpha()
225 if (c == 0xb8) return 1; in IsAlpha()
226 if (c == 0xbc) return 1; in IsAlpha()
227 if (c == 0xbd) return 1; in IsAlpha()
228 if (c == 0xbe) return 1; in IsAlpha()
232 if (c == 0xa1) return 1; in IsAlpha()
233 if (c == 0xa2) return 1; in IsAlpha()
234 if (c == 0xa3) return 1; in IsAlpha()
235 if (c == 0xa6) return 1; in IsAlpha()
236 if (c == 0xa8) return 1; in IsAlpha()
237 if (c == 0xaa) return 1; in IsAlpha()
238 if (c == 0xac) return 1; in IsAlpha()
239 if (c == 0xae) return 1; in IsAlpha()
240 if (c == 0xaf) return 1; in IsAlpha()
241 if (c == 0xb2) return 1; in IsAlpha()
242 if (c == 0xb3) return 1; in IsAlpha()
243 if (c == 0xb4) return 1; in IsAlpha()
244 if (c >= 0xb8 && c <= 0xba) return 1; in IsAlpha()
245 if (c == 0xbc) return 1; in IsAlpha()
246 if (c == 0xbd) return 1; in IsAlpha()
247 if (c == 0xbe) return 1; in IsAlpha()
248 if (c == 0xbf) return 1; in IsAlpha()
249 if (c >= 0xc0 && c <= 0xde) return 1; in IsAlpha()
250 if (c >= 0xdf && c <= 0xff) return 1; in IsAlpha()
254 if (c == 0xa3 || c == 0xb3) return 1; in IsAlpha()
257 if (c >= 0xc0 && c <= 0xff) return 1; in IsAlpha()
267 static int IsBlank(int enc, int c) in IsBlank() argument
270 return isblank(c); in IsBlank()
272 if (c == 0x09 || c == 0x20) return 1; in IsBlank()
292 if (c == 0xa0) return 1; in IsBlank()
296 if (c == 0x9a) return 1; in IsBlank()
306 static int IsCntrl(int enc, int c) in IsCntrl() argument
309 return iscntrl(c); in IsCntrl()
311 if (c >= 0x00 && c <= 0x1F) return 1; in IsCntrl()
315 if (c == 0xad) return 1; in IsCntrl()
333 if (c >= 0x7f && c <= 0x9F) return 1; in IsCntrl()
338 if (c == 0x7f) return 1; in IsCntrl()
348 static int IsDigit(int enc ARG_UNUSED, int c) in IsDigit() argument
350 if (c >= 0x30 && c <= 0x39) return 1; in IsDigit()
354 static int IsGraph(int enc, int c) in IsGraph() argument
357 return isgraph(c); in IsGraph()
359 if (c >= 0x21 && c <= 0x7e) return 1; in IsGraph()
373 if (c >= 0xa1 && c <= 0xff) return 1; in IsGraph()
377 if (c >= 0xa1) { in IsGraph()
378 if (c == 0xa5 || c == 0xae || c == 0xbe || c == 0xc3 || c == 0xd0 || in IsGraph()
379 c == 0xe3 || c == 0xf0) in IsGraph()
387 if (c == 0xa4 || c == 0xac || c == 0xad || c == 0xbb || c == 0xbf) in IsGraph()
389 if (c >= 0xc1 && c <= 0xda) return 1; in IsGraph()
390 if (c >= 0xe0 && c <= 0xf2) return 1; in IsGraph()
394 if (c >= 0xa1 && c <= 0xfe && in IsGraph()
395 c != 0xa4 && c != 0xa5 && c != 0xaa && in IsGraph()
396 c != 0xae && c != 0xd2) return 1; in IsGraph()
400 if (c >= 0xa2 && c <= 0xfa) { in IsGraph()
401 if (c >= 0xbf && c <= 0xde) return 0; in IsGraph()
407 if (c >= 0xa1 && c <= 0xda) return 1; in IsGraph()
408 if (c >= 0xdf && c <= 0xfb) return 1; in IsGraph()
412 if (c >= 0xc0 && c <= 0xff) return 1; in IsGraph()
416 if (c >= 0x80 && c <= 0xff && c != 0x9a) return 1; in IsGraph()
426 static int IsLower(int enc, int c) in IsLower() argument
429 return islower(c); in IsLower()
431 if (c >= 0x61 && c <= 0x7a) return 1; in IsLower()
437 if (c == 0xaa) return 1; in IsLower()
438 if (c == 0xb5) return 1; in IsLower()
439 if (c == 0xba) return 1; in IsLower()
440 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
441 if (c >= 0xf8 && c <= 0xff) return 1; in IsLower()
445 if (c == 0xb1 || c == 0xb3) return 1; in IsLower()
446 if (c == 0xb5 || c == 0xb6) return 1; in IsLower()
447 if (c >= 0xb9 && c <= 0xbc) return 1; in IsLower()
448 if (c >= 0xbe && c <= 0xbf) return 1; in IsLower()
449 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
450 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
454 if (c == 0xb1) return 1; in IsLower()
455 if (c == 0xb5 || c == 0xb6) return 1; in IsLower()
456 if (c >= 0xb9 && c <= 0xbc) return 1; in IsLower()
457 if (c == 0xbf) return 1; in IsLower()
458 if (c == 0xdf) return 1; in IsLower()
459 if (c >= 0xe0 && c <= 0xe2) return 1; in IsLower()
460 if (c >= 0xe4 && c <= 0xef) return 1; in IsLower()
461 if (c >= 0xf1 && c <= 0xf6) return 1; in IsLower()
462 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
466 if (c == 0xa2) return 1; in IsLower()
467 if (c == 0xb1 || c == 0xb3) return 1; in IsLower()
468 if (c == 0xb5 || c == 0xb6) return 1; in IsLower()
469 if (c >= 0xb9 && c <= 0xbc) return 1; in IsLower()
470 if (c >= 0xbe && c <= 0xbf) return 1; in IsLower()
471 if (c == 0xdf) return 1; in IsLower()
472 if (c >= 0xe0 && c <= 0xf6) return 1; in IsLower()
473 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
477 if (c >= 0xd0 && c <= 0xff && c != 0xf0 && c != 0xfd) return 1; in IsLower()
484 if (c == 0xc0) return 1; in IsLower()
485 if (c >= 0xdc && c <= 0xfe) return 1; in IsLower()
489 if (c == 0xb5) return 1; in IsLower()
493 if (c >= 0xb1 && c <= 0xb6) return 1; in IsLower()
494 if (c >= 0xb8 && c <= 0xbc) return 1; in IsLower()
495 if (c == 0xbe || c == 0xbf) return 1; in IsLower()
496 if (c >= 0xdf && c <= 0xff) return 1; in IsLower()
503 if (c == 0xb5) return 1; in IsLower()
504 if (c == 0xb8) return 1; in IsLower()
505 if (c == 0xba) return 1; in IsLower()
506 if (c == 0xbf) return 1; in IsLower()
507 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
508 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
512 if (c == 0xa2) return 1; in IsLower()
513 if (c == 0xa5) return 1; in IsLower()
514 if (c == 0xab) return 1; in IsLower()
515 if (c == 0xb1 || c == 0xb3 || c == 0xb5) return 1; in IsLower()
516 if (c >= 0xb8 && c <= 0xba) return 1; in IsLower()
517 if (c == 0xbc) return 1; in IsLower()
518 if (c == 0xbe || c == 0xbf) return 1; in IsLower()
519 if (c >= 0xdf && c <= 0xff) return 1; in IsLower()
523 if (c == 0xaa) return 1; in IsLower()
524 if (c == 0xb5) return 1; in IsLower()
525 if (c == 0xba) return 1; in IsLower()
526 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
527 if (c >= 0xf8 && c <= 0xff) return 1; in IsLower()
528 if (c == 0xa8) return 1; in IsLower()
529 if (c == 0xb8) return 1; in IsLower()
530 if (c == 0xbd) return 1; in IsLower()
534 if (c == 0xa2) return 1; in IsLower()
535 if (c == 0xa8) return 1; in IsLower()
536 if (c == 0xae) return 1; in IsLower()
537 if (c == 0xb3) return 1; in IsLower()
538 if (c >= 0xb8 && c <= 0xba) return 1; in IsLower()
539 if (c == 0xbd) return 1; in IsLower()
540 if (c == 0xbf) return 1; in IsLower()
541 if (c >= 0xdf && c <= 0xff) return 1; in IsLower()
545 if (c == 0xa3) return 1; in IsLower()
548 if (c >= 0xc0 && c <= 0xdf) return 1; in IsLower()
558 static int IsPrint(int enc, int c) in IsPrint() argument
561 return isprint(c); in IsPrint()
563 if (c >= 0x20 && c <= 0x7e) return 1; in IsPrint()
567 if (c >= 0x09 && c <= 0x0d) return 1; in IsPrint()
568 if (c == 0x85) return 1; in IsPrint()
580 if (c >= 0xa0 && c <= 0xff) return 1; in IsPrint()
584 if (c >= 0xa0) { in IsPrint()
585 if (c == 0xa5 || c == 0xae || c == 0xbe || c == 0xc3 || c == 0xd0 || in IsPrint()
586 c == 0xe3 || c == 0xf0) in IsPrint()
594 if (c == 0xa0) return 1; in IsPrint()
595 if (c == 0xa4 || c == 0xac || c == 0xad || c == 0xbb || c == 0xbf) in IsPrint()
597 if (c >= 0xc1 && c <= 0xda) return 1; in IsPrint()
598 if (c >= 0xe0 && c <= 0xf2) return 1; in IsPrint()
602 if (c >= 0xa0 && c <= 0xfe && in IsPrint()
603 c != 0xa4 && c != 0xa5 && c != 0xaa && in IsPrint()
604 c != 0xae && c != 0xd2) return 1; in IsPrint()
608 if (c >= 0xa0 && c <= 0xfa) { in IsPrint()
609 if (c >= 0xbf && c <= 0xde) return 0; in IsPrint()
610 if (c == 0xa1) return 0; in IsPrint()
616 if (c >= 0xa0 && c <= 0xda) return 1; in IsPrint()
617 if (c >= 0xdf && c <= 0xfb) return 1; in IsPrint()
621 if (c == 0xa0) return 1; in IsPrint()
622 if (c >= 0xc0 && c <= 0xff) return 1; in IsPrint()
626 if (c >= 0x80 && c <= 0xff) return 1; in IsPrint()
636 static int IsPunct(int enc, int c) in IsPunct() argument
639 return ispunct(c); in IsPunct()
642 if (c == 0x24 || c == 0x2b || c == 0x5e || c == 0x60 || in IsPunct()
643 c == 0x7c || c == 0x7e) return 1; in IsPunct()
644 if (c >= 0x3c && c <= 0x3e) return 1; in IsPunct()
647 if (c >= 0x21 && c <= 0x2f) return 1; in IsPunct()
648 if (c >= 0x3a && c <= 0x40) return 1; in IsPunct()
649 if (c >= 0x5b && c <= 0x60) return 1; in IsPunct()
650 if (c >= 0x7b && c <= 0x7e) return 1; in IsPunct()
656 if (c == 0xad) return 1; in IsPunct()
659 if (c == 0xa1) return 1; in IsPunct()
660 if (c == 0xab) return 1; in IsPunct()
661 if (c == 0xb7) return 1; in IsPunct()
662 if (c == 0xbb) return 1; in IsPunct()
663 if (c == 0xbf) return 1; in IsPunct()
670 if (c == 0xad) return 1; in IsPunct()
675 if (c == 0xad) return 1; in IsPunct()
676 if (c == 0xb7) return 1; in IsPunct()
677 if (c == 0xbd) return 1; in IsPunct()
681 if (c == 0xac) return 1; in IsPunct()
682 if (c == 0xad) return 1; in IsPunct()
683 if (c == 0xbb) return 1; in IsPunct()
684 if (c == 0xbf) return 1; in IsPunct()
688 if (c == 0xa1 || c == 0xa2) return 1; in IsPunct()
689 if (c == 0xab) return 1; in IsPunct()
690 if (c == 0xaf) return 1; in IsPunct()
691 if (c == 0xad) return 1; in IsPunct()
692 if (c == 0xb7 || c == 0xbb) return 1; in IsPunct()
696 if (c == 0xab) return 1; in IsPunct()
697 if (c == 0xad) return 1; in IsPunct()
698 if (c == 0xb7) return 1; in IsPunct()
699 if (c == 0xbb) return 1; in IsPunct()
700 if (c == 0xdf) return 1; in IsPunct()
704 if (c == 0xa1 || c == 0xa5) return 1; in IsPunct()
705 if (c == 0xab || c == 0xad) return 1; in IsPunct()
706 if (c == 0xb4 || c == 0xb7) return 1; in IsPunct()
707 if (c == 0xbb) return 1; in IsPunct()
708 if (c == 0xff) return 1; in IsPunct()
712 if (c == 0xa5) return 1; in IsPunct()
713 if (c == 0xab) return 1; in IsPunct()
714 if (c == 0xad) return 1; in IsPunct()
715 if (c == 0xb5) return 1; in IsPunct()
716 if (c == 0xb7) return 1; in IsPunct()
717 if (c == 0xbb) return 1; in IsPunct()
721 if (c == 0x9e) return 1; in IsPunct()
735 static int IsSpace(int enc, int c) in IsSpace() argument
738 return isspace(c); in IsSpace()
740 if (c >= 0x09 && c <= 0x0d) return 1; in IsSpace()
741 if (c == 0x20) return 1; in IsSpace()
745 if (c == 0x85) return 1; in IsSpace()
763 if (c == 0xa0) return 1; in IsSpace()
767 if (c == 0x9a) return 1; in IsSpace()
777 static int IsUpper(int enc, int c) in IsUpper() argument
780 return isupper(c); in IsUpper()
782 if (c >= 0x41 && c <= 0x5a) return 1; in IsUpper()
788 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
789 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
793 if (c == 0xa1 || c == 0xa3) return 1; in IsUpper()
794 if (c == 0xa5 || c == 0xa6) return 1; in IsUpper()
795 if (c >= 0xa9 && c <= 0xac) return 1; in IsUpper()
796 if (c >= 0xae && c <= 0xaf) return 1; in IsUpper()
797 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
798 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
802 if (c == 0xa1) return 1; in IsUpper()
803 if (c == 0xa6) return 1; in IsUpper()
804 if (c >= 0xa9 && c <= 0xac) return 1; in IsUpper()
805 if (c == 0xaf) return 1; in IsUpper()
806 if (c >= 0xc0 && c <= 0xc2) return 1; in IsUpper()
807 if (c >= 0xc4 && c <= 0xcf) return 1; in IsUpper()
808 if (c >= 0xd1 && c <= 0xd6) return 1; in IsUpper()
809 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
813 if (c == 0xa1 || c == 0xa3) return 1; in IsUpper()
814 if (c == 0xa5 || c == 0xa6) return 1; in IsUpper()
815 if (c >= 0xa9 && c <= 0xac) return 1; in IsUpper()
816 if (c == 0xae) return 1; in IsUpper()
817 if (c == 0xbd) return 1; in IsUpper()
818 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
819 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
823 if (c >= 0xa1 && c <= 0xcf && c != 0xad) return 1; in IsUpper()
830 if (c == 0xb6) return 1; in IsUpper()
831 if (c >= 0xb8 && c <= 0xba) return 1; in IsUpper()
832 if (c == 0xbc) return 1; in IsUpper()
833 if (c >= 0xbe && c <= 0xbf) return 1; in IsUpper()
834 if (c >= 0xc1 && c <= 0xdb && c != 0xd2) return 1; in IsUpper()
842 if (c >= 0xa1 && c <= 0xa6) return 1; in IsUpper()
843 if (c >= 0xa8 && c <= 0xac) return 1; in IsUpper()
844 if (c == 0xae || c == 0xaf) return 1; in IsUpper()
845 if (c >= 0xc0 && c <= 0xde) return 1; in IsUpper()
849 if (c == 0xa8) return 1; in IsUpper()
850 if (c == 0xaa) return 1; in IsUpper()
851 if (c == 0xaf) return 1; in IsUpper()
852 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
853 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
857 if (c == 0xa1) return 1; in IsUpper()
858 if (c == 0xa4 || c == 0xa6) return 1; in IsUpper()
859 if (c == 0xa8) return 1; in IsUpper()
860 if (c == 0xaa || c == 0xac) return 1; in IsUpper()
861 if (c == 0xaf || c == 0xb0) return 1; in IsUpper()
862 if (c == 0xb2 || c == 0xb4 || c == 0xb7) return 1; in IsUpper()
863 if (c == 0xbb || c == 0xbd) return 1; in IsUpper()
864 if (c >= 0xc0 && c <= 0xde) return 1; in IsUpper()
868 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
869 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
870 if (c == 0xa6) return 1; in IsUpper()
871 if (c == 0xb4) return 1; in IsUpper()
872 if (c == 0xbc) return 1; in IsUpper()
873 if (c == 0xbe) return 1; in IsUpper()
877 if (c == 0xa1) return 1; in IsUpper()
878 if (c == 0xa3) return 1; in IsUpper()
879 if (c == 0xa6) return 1; in IsUpper()
880 if (c == 0xaa) return 1; in IsUpper()
881 if (c == 0xac) return 1; in IsUpper()
882 if (c == 0xaf) return 1; in IsUpper()
883 if (c == 0xb2) return 1; in IsUpper()
884 if (c == 0xb4) return 1; in IsUpper()
885 if (c == 0xbc) return 1; in IsUpper()
886 if (c == 0xbe) return 1; in IsUpper()
887 if (c >= 0xc0 && c <= 0xde) return 1; in IsUpper()
891 if (c == 0xb3) return 1; in IsUpper()
894 if (c >= 0xe0 && c <= 0xff) return 1; in IsUpper()
904 static int IsXDigit(int enc, int c) in IsXDigit() argument
907 return isxdigit(c); in IsXDigit()
909 if (c >= 0x30 && c <= 0x39) return 1; in IsXDigit()
910 if (c >= 0x41 && c <= 0x46) return 1; in IsXDigit()
911 if (c >= 0x61 && c <= 0x66) return 1; in IsXDigit()
915 static int IsWord(int enc, int c) in IsWord() argument
918 return (isalpha(c) || isdigit(c) || c == 0x5f); in IsWord()
921 if (c >= 0x30 && c <= 0x39) return 1; in IsWord()
922 if (c >= 0x41 && c <= 0x5a) return 1; in IsWord()
923 if (c == 0x5f) return 1; in IsWord()
924 if (c >= 0x61 && c <= 0x7a) return 1; in IsWord()
930 if (c == 0xaa) return 1; in IsWord()
931 if (c >= 0xb2 && c <= 0xb3) return 1; in IsWord()
932 if (c == 0xb5) return 1; in IsWord()
933 if (c >= 0xb9 && c <= 0xba) return 1; in IsWord()
934 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
935 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
936 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
937 if (c >= 0xf8 && c <= 0xff) return 1; in IsWord()
941 if (c == 0xa1 || c == 0xa3) return 1; in IsWord()
942 if (c == 0xa5 || c == 0xa6) return 1; in IsWord()
943 if (c >= 0xa9 && c <= 0xac) return 1; in IsWord()
944 if (c >= 0xae && c <= 0xaf) return 1; in IsWord()
945 if (c == 0xb1 || c == 0xb3) return 1; in IsWord()
946 if (c == 0xb5 || c == 0xb6) return 1; in IsWord()
947 if (c >= 0xb9 && c <= 0xbc) return 1; in IsWord()
948 if (c >= 0xbe && c <= 0xbf) return 1; in IsWord()
949 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
950 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
951 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
955 if (c == 0xa1) return 1; in IsWord()
956 if (c == 0xa6) return 1; in IsWord()
957 if (c >= 0xa9 && c <= 0xac) return 1; in IsWord()
958 if (c == 0xaf) return 1; in IsWord()
959 if (c >= 0xb1 && c <= 0xb3) return 1; in IsWord()
960 if (c == 0xb5 || c == 0xb6) return 1; in IsWord()
961 if (c >= 0xb9 && c <= 0xbd) return 1; in IsWord()
962 if (c == 0xbf) return 1; in IsWord()
963 if (c >= 0xc0 && c <= 0xc2) return 1; in IsWord()
964 if (c >= 0xc4 && c <= 0xcf) return 1; in IsWord()
965 if (c >= 0xd1 && c <= 0xd6) return 1; in IsWord()
966 if (c >= 0xd8 && c <= 0xe2) return 1; in IsWord()
967 if (c >= 0xe4 && c <= 0xef) return 1; in IsWord()
968 if (c >= 0xf1 && c <= 0xf6) return 1; in IsWord()
969 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
973 if (c >= 0xa1 && c <= 0xa3) return 1; in IsWord()
974 if (c == 0xa5 || c == 0xa6) return 1; in IsWord()
975 if (c >= 0xa9 && c <= 0xac) return 1; in IsWord()
976 if (c == 0xae) return 1; in IsWord()
977 if (c == 0xb1 || c == 0xb3) return 1; in IsWord()
978 if (c == 0xb5 || c == 0xb6) return 1; in IsWord()
979 if (c >= 0xb9 && c <= 0xbf) return 1; in IsWord()
980 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
981 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
982 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
986 if (c >= 0xa1 && c <= 0xcf && c != 0xad) return 1; in IsWord()
987 if (c >= 0xd0 && c <= 0xff && c != 0xf0 && c != 0xfd) return 1; in IsWord()
991 if (c >= 0xc1 && c <= 0xda) return 1; in IsWord()
992 if (c >= 0xe0 && c <= 0xea) return 1; in IsWord()
993 if (c >= 0xeb && c <= 0xf2) return 1; in IsWord()
997 if (c == 0xb2 || c == 0xb3) return 1; in IsWord()
998 if (c == 0xb6) return 1; in IsWord()
999 if (c >= 0xb8 && c <= 0xba) return 1; in IsWord()
1000 if (c >= 0xbc && c <= 0xbf) return 1; in IsWord()
1001 if (c == 0xc0) return 1; in IsWord()
1002 if (c >= 0xc1 && c <= 0xdb && c != 0xd2) return 1; in IsWord()
1003 if (c >= 0xdc && c <= 0xfe) return 1; in IsWord()
1007 if (c == 0xb2 || c == 0xb3 || c == 0xb5 || c == 0xb9) return 1; in IsWord()
1008 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
1009 if (c >= 0xe0 && c <= 0xfa) return 1; in IsWord()
1013 if (c >= 0xa1 && c <= 0xff) { in IsWord()
1014 if (c != 0xa7 && c != 0xad && c != 0xb0 && c != 0xb7 && c != 0xbd) in IsWord()
1020 if (c >= 0xa1 && c <= 0xda) return 1; in IsWord()
1021 if (c >= 0xdf && c <= 0xfb) return 1; in IsWord()
1025 if (c == 0xa8) return 1; in IsWord()
1026 if (c == 0xaa) return 1; in IsWord()
1027 if (c == 0xaf) return 1; in IsWord()
1028 if (c == 0xb2 || c == 0xb3 || c == 0xb5 || c == 0xb9) return 1; in IsWord()
1029 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
1030 if (c == 0xb8) return 1; in IsWord()
1031 if (c == 0xba) return 1; in IsWord()
1032 if (c >= 0xbf && c <= 0xd6) return 1; in IsWord()
1033 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
1034 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
1038 if (c >= 0xa1 && c <= 0xff) { in IsWord()
1039 if (c == 0xa3 || c == 0xa7 || c == 0xa9 || c == 0xad || c == 0xae || in IsWord()
1040 c == 0xb6) return 0; in IsWord()
1046 if (c == 0xaa) return 1; in IsWord()
1047 if (c >= 0xb2 && c <= 0xb3) return 1; in IsWord()
1048 if (c == 0xb5) return 1; in IsWord()
1049 if (c >= 0xb9 && c <= 0xba) return 1; in IsWord()
1050 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
1051 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
1052 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
1053 if (c >= 0xf8 && c <= 0xff) return 1; in IsWord()
1054 if (c == 0xa6) return 1; in IsWord()
1055 if (c == 0xa8) return 1; in IsWord()
1056 if (c == 0xb4) return 1; in IsWord()
1057 if (c == 0xb8) return 1; in IsWord()
1061 if (c == 0xa1) return 1; in IsWord()
1062 if (c == 0xa2) return 1; in IsWord()
1063 if (c == 0xa3) return 1; in IsWord()
1064 if (c == 0xa6) return 1; in IsWord()
1065 if (c == 0xa8) return 1; in IsWord()
1066 if (c == 0xaa) return 1; in IsWord()
1067 if (c == 0xac) return 1; in IsWord()
1068 if (c == 0xae) return 1; in IsWord()
1069 if (c == 0xaf) return 1; in IsWord()
1070 if (c == 0xb2) return 1; in IsWord()
1071 if (c == 0xb3) return 1; in IsWord()
1072 if (c == 0xb4) return 1; in IsWord()
1073 if (c >= 0xb8 && c <= 0xba) return 1; in IsWord()
1074 if (c == 0xbc) return 1; in IsWord()
1075 if (c == 0xbd) return 1; in IsWord()
1076 if (c == 0xbe) return 1; in IsWord()
1077 if (c == 0xbf) return 1; in IsWord()
1078 if (c >= 0xc0 && c <= 0xde) return 1; in IsWord()
1079 if (c >= 0xdf && c <= 0xff) return 1; in IsWord()
1083 if (c == 0x9d) return 1; in IsWord()
1084 if (c == 0xa3 || c == 0xb3) return 1; in IsWord()
1087 if (c >= 0xc0 && c <= 0xff) return 1; in IsWord()
1097 static int IsAscii(int enc ARG_UNUSED, int c) in IsAscii() argument
1099 if (c >= 0x00 && c <= 0x7f) return 1; in IsAscii()
1103 static int IsNewline(int enc ARG_UNUSED, int c) in IsNewline() argument
1105 if (c == 0x0a) return 1; in IsNewline()
1113 int c, val, enc; in exec() local
1122 for (c = 0; c < 256; c++) { in exec()
1124 if (IsNewline(enc, c)) val |= BIT_CTYPE_NEWLINE; in exec()
1125 if (IsAlpha (enc, c)) val |= (BIT_CTYPE_ALPHA | BIT_CTYPE_ALNUM); in exec()
1126 if (IsBlank (enc, c)) val |= BIT_CTYPE_BLANK; in exec()
1127 if (IsCntrl (enc, c)) val |= BIT_CTYPE_CNTRL; in exec()
1128 if (IsDigit (enc, c)) val |= (BIT_CTYPE_DIGIT | BIT_CTYPE_ALNUM); in exec()
1129 if (IsGraph (enc, c)) val |= BIT_CTYPE_GRAPH; in exec()
1130 if (IsLower (enc, c)) val |= BIT_CTYPE_LOWER; in exec()
1131 if (IsPrint (enc, c)) val |= BIT_CTYPE_PRINT; in exec()
1132 if (IsPunct (enc, c)) val |= BIT_CTYPE_PUNCT; in exec()
1133 if (IsSpace (enc, c)) val |= BIT_CTYPE_SPACE; in exec()
1134 if (IsUpper (enc, c)) val |= BIT_CTYPE_UPPER; in exec()
1135 if (IsXDigit(enc, c)) val |= BIT_CTYPE_XDIGIT; in exec()
1136 if (IsWord (enc, c)) val |= BIT_CTYPE_WORD; in exec()
1137 if (IsAscii (enc, c)) val |= BIT_CTYPE_ASCII; in exec()
1139 if (c % NCOL == 0) { in exec()
1146 if (c != 255) { in exec()
1150 if (c != 0 && c % NCOL == (NCOL-1)) in exec()