Lines Matching refs:c
87 static int IsAlpha(int enc, int c) in IsAlpha() argument
90 return isalpha(c); in IsAlpha()
92 if (c >= 0x41 && c <= 0x5a) return 1; in IsAlpha()
93 if (c >= 0x61 && c <= 0x7a) return 1; in IsAlpha()
99 if (c == 0xaa) return 1; in IsAlpha()
100 if (c == 0xb5) return 1; in IsAlpha()
101 if (c == 0xba) return 1; in IsAlpha()
102 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
103 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
104 if (c >= 0xf8 && c <= 0xff) return 1; in IsAlpha()
108 if (c == 0xa1 || c == 0xa3) return 1; in IsAlpha()
109 if (c == 0xa5 || c == 0xa6) return 1; in IsAlpha()
110 if (c >= 0xa9 && c <= 0xac) return 1; in IsAlpha()
111 if (c >= 0xae && c <= 0xaf) return 1; in IsAlpha()
112 if (c == 0xb1 || c == 0xb3) return 1; in IsAlpha()
113 if (c == 0xb5 || c == 0xb6) return 1; in IsAlpha()
114 if (c >= 0xb9 && c <= 0xbc) return 1; in IsAlpha()
115 if (c >= 0xbe && c <= 0xbf) return 1; in IsAlpha()
116 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
117 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
118 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
122 if (c == 0xa1) return 1; in IsAlpha()
123 if (c == 0xa6) return 1; in IsAlpha()
124 if (c >= 0xa9 && c <= 0xac) return 1; in IsAlpha()
125 if (c == 0xaf) return 1; in IsAlpha()
126 if (c == 0xb1) return 1; in IsAlpha()
127 if (c == 0xb5 || c == 0xb6) return 1; in IsAlpha()
128 if (c >= 0xb9 && c <= 0xbc) return 1; in IsAlpha()
129 if (c == 0xbf) return 1; in IsAlpha()
130 if (c >= 0xc0 && c <= 0xc2) return 1; in IsAlpha()
131 if (c >= 0xc4 && c <= 0xcf) return 1; in IsAlpha()
132 if (c >= 0xd1 && c <= 0xd6) return 1; in IsAlpha()
133 if (c >= 0xd8 && c <= 0xe2) return 1; in IsAlpha()
134 if (c >= 0xe4 && c <= 0xef) return 1; in IsAlpha()
135 if (c >= 0xf1 && c <= 0xf6) return 1; in IsAlpha()
136 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
140 if (c >= 0xa1 && c <= 0xa3) return 1; in IsAlpha()
141 if (c == 0xa5 || c == 0xa6) return 1; in IsAlpha()
142 if (c >= 0xa9 && c <= 0xac) return 1; in IsAlpha()
143 if (c == 0xae) return 1; in IsAlpha()
144 if (c == 0xb1 || c == 0xb3) return 1; in IsAlpha()
145 if (c == 0xb5 || c == 0xb6) return 1; in IsAlpha()
146 if (c >= 0xb9 && c <= 0xbf) return 1; in IsAlpha()
147 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
148 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
149 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
153 if (c >= 0xa1 && c <= 0xcf && c != 0xad) return 1; in IsAlpha()
154 if (c >= 0xd0 && c <= 0xff && c != 0xf0 && c != 0xfd) return 1; in IsAlpha()
158 if (c >= 0xc1 && c <= 0xda) return 1; in IsAlpha()
159 if (c >= 0xe0 && c <= 0xf2) return 1; in IsAlpha()
163 if (c == 0xb6) return 1; in IsAlpha()
164 if (c >= 0xb8 && c <= 0xba) return 1; in IsAlpha()
165 if (c == 0xbc) return 1; in IsAlpha()
166 if (c >= 0xbe && c <= 0xbf) return 1; in IsAlpha()
167 if (c == 0xc0) return 1; in IsAlpha()
168 if (c >= 0xc1 && c <= 0xdb && c != 0xd2) return 1; in IsAlpha()
169 if (c >= 0xdc && c <= 0xfe) return 1; in IsAlpha()
173 if (c == 0xb5) return 1; in IsAlpha()
174 if (c >= 0xe0 && c <= 0xfa) return 1; in IsAlpha()
178 if (c >= 0xa1 && c <= 0xa6) return 1; in IsAlpha()
179 if (c >= 0xa8 && c <= 0xac) return 1; in IsAlpha()
180 if (c == 0xae || c == 0xaf) return 1; in IsAlpha()
181 if (c >= 0xb1 && c <= 0xb6) return 1; in IsAlpha()
182 if (c >= 0xb8 && c <= 0xbc) return 1; in IsAlpha()
183 if (c >= 0xbe && c <= 0xff) return 1; in IsAlpha()
187 if (c >= 0xa1 && c <= 0xda) return 1; in IsAlpha()
188 if (c >= 0xdf && c <= 0xfb) return 1; in IsAlpha()
192 if (c == 0xa8) return 1; in IsAlpha()
193 if (c == 0xaa) return 1; in IsAlpha()
194 if (c == 0xaf) return 1; in IsAlpha()
195 if (c == 0xb5) return 1; in IsAlpha()
196 if (c == 0xb8) return 1; in IsAlpha()
197 if (c == 0xba) return 1; in IsAlpha()
198 if (c >= 0xbf && c <= 0xd6) return 1; in IsAlpha()
199 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
200 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
204 if (c == 0xa1 || c == 0xa2) return 1; in IsAlpha()
205 if (c == 0xa4 || c == 0xa5) return 1; in IsAlpha()
206 if (c == 0xa6 || c == 0xa8) return 1; in IsAlpha()
207 if (c >= 0xaa && c <= 0xac) return 1; in IsAlpha()
208 if (c >= 0xaf && c <= 0xb5) return 1; in IsAlpha()
209 if (c >= 0xb7 && c <= 0xff) return 1; in IsAlpha()
213 if (c == 0xaa) return 1; in IsAlpha()
214 if (c == 0xb5) return 1; in IsAlpha()
215 if (c == 0xba) return 1; in IsAlpha()
216 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
217 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
218 if (c >= 0xf8 && c <= 0xff) return 1; in IsAlpha()
219 if (c == 0xa6) return 1; in IsAlpha()
220 if (c == 0xa8) return 1; in IsAlpha()
221 if (c == 0xb4) return 1; in IsAlpha()
222 if (c == 0xb8) return 1; in IsAlpha()
223 if (c == 0xbc) return 1; in IsAlpha()
224 if (c == 0xbd) return 1; in IsAlpha()
225 if (c == 0xbe) return 1; in IsAlpha()
229 if (c == 0xa1) return 1; in IsAlpha()
230 if (c == 0xa2) return 1; in IsAlpha()
231 if (c == 0xa3) return 1; in IsAlpha()
232 if (c == 0xa6) return 1; in IsAlpha()
233 if (c == 0xa8) return 1; in IsAlpha()
234 if (c == 0xaa) return 1; in IsAlpha()
235 if (c == 0xac) return 1; in IsAlpha()
236 if (c == 0xae) return 1; in IsAlpha()
237 if (c == 0xaf) return 1; in IsAlpha()
238 if (c == 0xb2) return 1; in IsAlpha()
239 if (c == 0xb3) return 1; in IsAlpha()
240 if (c == 0xb4) return 1; in IsAlpha()
241 if (c >= 0xb8 && c <= 0xba) return 1; in IsAlpha()
242 if (c == 0xbc) return 1; in IsAlpha()
243 if (c == 0xbd) return 1; in IsAlpha()
244 if (c == 0xbe) return 1; in IsAlpha()
245 if (c == 0xbf) return 1; in IsAlpha()
246 if (c >= 0xc0 && c <= 0xde) return 1; in IsAlpha()
247 if (c >= 0xdf && c <= 0xff) return 1; in IsAlpha()
251 if (c == 0xa3 || c == 0xb3) return 1; in IsAlpha()
254 if (c >= 0xc0 && c <= 0xff) return 1; in IsAlpha()
264 static int IsBlank(int enc, int c) in IsBlank() argument
267 return isblank(c); in IsBlank()
269 if (c == 0x09 || c == 0x20) return 1; in IsBlank()
289 if (c == 0xa0) return 1; in IsBlank()
293 if (c == 0x9a) return 1; in IsBlank()
303 static int IsCntrl(int enc, int c) in IsCntrl() argument
306 return iscntrl(c); in IsCntrl()
308 if (c >= 0x00 && c <= 0x1F) return 1; in IsCntrl()
312 if (c == 0xad) return 1; in IsCntrl()
330 if (c >= 0x7f && c <= 0x9F) return 1; in IsCntrl()
335 if (c == 0x7f) return 1; in IsCntrl()
345 static int IsDigit(int enc ARG_UNUSED, int c) in IsDigit() argument
347 if (c >= 0x30 && c <= 0x39) return 1; in IsDigit()
351 static int IsGraph(int enc, int c) in IsGraph() argument
354 return isgraph(c); in IsGraph()
356 if (c >= 0x21 && c <= 0x7e) return 1; in IsGraph()
370 if (c >= 0xa1 && c <= 0xff) return 1; in IsGraph()
374 if (c >= 0xa1) { in IsGraph()
375 if (c == 0xa5 || c == 0xae || c == 0xbe || c == 0xc3 || c == 0xd0 || in IsGraph()
376 c == 0xe3 || c == 0xf0) in IsGraph()
384 if (c == 0xa4 || c == 0xac || c == 0xad || c == 0xbb || c == 0xbf) in IsGraph()
386 if (c >= 0xc1 && c <= 0xda) return 1; in IsGraph()
387 if (c >= 0xe0 && c <= 0xf2) return 1; in IsGraph()
391 if (c >= 0xa1 && c <= 0xfe && in IsGraph()
392 c != 0xa4 && c != 0xa5 && c != 0xaa && in IsGraph()
393 c != 0xae && c != 0xd2) return 1; in IsGraph()
397 if (c >= 0xa2 && c <= 0xfa) { in IsGraph()
398 if (c >= 0xbf && c <= 0xde) return 0; in IsGraph()
404 if (c >= 0xa1 && c <= 0xda) return 1; in IsGraph()
405 if (c >= 0xdf && c <= 0xfb) return 1; in IsGraph()
409 if (c >= 0xc0 && c <= 0xff) return 1; in IsGraph()
413 if (c >= 0x80 && c <= 0xff && c != 0x9a) return 1; in IsGraph()
423 static int IsLower(int enc, int c) in IsLower() argument
426 return islower(c); in IsLower()
428 if (c >= 0x61 && c <= 0x7a) return 1; in IsLower()
434 if (c == 0xaa) return 1; in IsLower()
435 if (c == 0xb5) return 1; in IsLower()
436 if (c == 0xba) return 1; in IsLower()
437 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
438 if (c >= 0xf8 && c <= 0xff) return 1; in IsLower()
442 if (c == 0xb1 || c == 0xb3) return 1; in IsLower()
443 if (c == 0xb5 || c == 0xb6) return 1; in IsLower()
444 if (c >= 0xb9 && c <= 0xbc) return 1; in IsLower()
445 if (c >= 0xbe && c <= 0xbf) return 1; in IsLower()
446 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
447 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
451 if (c == 0xb1) return 1; in IsLower()
452 if (c == 0xb5 || c == 0xb6) return 1; in IsLower()
453 if (c >= 0xb9 && c <= 0xbc) return 1; in IsLower()
454 if (c == 0xbf) return 1; in IsLower()
455 if (c == 0xdf) return 1; in IsLower()
456 if (c >= 0xe0 && c <= 0xe2) return 1; in IsLower()
457 if (c >= 0xe4 && c <= 0xef) return 1; in IsLower()
458 if (c >= 0xf1 && c <= 0xf6) return 1; in IsLower()
459 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
463 if (c == 0xa2) return 1; in IsLower()
464 if (c == 0xb1 || c == 0xb3) return 1; in IsLower()
465 if (c == 0xb5 || c == 0xb6) return 1; in IsLower()
466 if (c >= 0xb9 && c <= 0xbc) return 1; in IsLower()
467 if (c >= 0xbe && c <= 0xbf) return 1; in IsLower()
468 if (c == 0xdf) return 1; in IsLower()
469 if (c >= 0xe0 && c <= 0xf6) return 1; in IsLower()
470 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
474 if (c >= 0xd0 && c <= 0xff && c != 0xf0 && c != 0xfd) return 1; in IsLower()
481 if (c == 0xc0) return 1; in IsLower()
482 if (c >= 0xdc && c <= 0xfe) return 1; in IsLower()
486 if (c == 0xb5) return 1; in IsLower()
490 if (c >= 0xb1 && c <= 0xb6) return 1; in IsLower()
491 if (c >= 0xb8 && c <= 0xbc) return 1; in IsLower()
492 if (c == 0xbe || c == 0xbf) return 1; in IsLower()
493 if (c >= 0xdf && c <= 0xff) return 1; in IsLower()
500 if (c == 0xb5) return 1; in IsLower()
501 if (c == 0xb8) return 1; in IsLower()
502 if (c == 0xba) return 1; in IsLower()
503 if (c == 0xbf) return 1; in IsLower()
504 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
505 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
509 if (c == 0xa2) return 1; in IsLower()
510 if (c == 0xa5) return 1; in IsLower()
511 if (c == 0xab) return 1; in IsLower()
512 if (c == 0xb1 || c == 0xb3 || c == 0xb5) return 1; in IsLower()
513 if (c >= 0xb8 && c <= 0xba) return 1; in IsLower()
514 if (c == 0xbc) return 1; in IsLower()
515 if (c == 0xbe || c == 0xbf) return 1; in IsLower()
516 if (c >= 0xdf && c <= 0xff) return 1; in IsLower()
520 if (c == 0xaa) return 1; in IsLower()
521 if (c == 0xb5) return 1; in IsLower()
522 if (c == 0xba) return 1; in IsLower()
523 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
524 if (c >= 0xf8 && c <= 0xff) return 1; in IsLower()
525 if (c == 0xa8) return 1; in IsLower()
526 if (c == 0xb8) return 1; in IsLower()
527 if (c == 0xbd) return 1; in IsLower()
531 if (c == 0xa2) return 1; in IsLower()
532 if (c == 0xa8) return 1; in IsLower()
533 if (c == 0xae) return 1; in IsLower()
534 if (c == 0xb3) return 1; in IsLower()
535 if (c >= 0xb8 && c <= 0xba) return 1; in IsLower()
536 if (c == 0xbd) return 1; in IsLower()
537 if (c == 0xbf) return 1; in IsLower()
538 if (c >= 0xdf && c <= 0xff) return 1; in IsLower()
542 if (c == 0xa3) return 1; in IsLower()
545 if (c >= 0xc0 && c <= 0xdf) return 1; in IsLower()
555 static int IsPrint(int enc, int c) in IsPrint() argument
558 return isprint(c); in IsPrint()
560 if (c >= 0x20 && c <= 0x7e) return 1; in IsPrint()
564 if (c >= 0x09 && c <= 0x0d) return 1; in IsPrint()
565 if (c == 0x85) return 1; in IsPrint()
577 if (c >= 0xa0 && c <= 0xff) return 1; in IsPrint()
581 if (c >= 0xa0) { in IsPrint()
582 if (c == 0xa5 || c == 0xae || c == 0xbe || c == 0xc3 || c == 0xd0 || in IsPrint()
583 c == 0xe3 || c == 0xf0) in IsPrint()
591 if (c == 0xa0) return 1; in IsPrint()
592 if (c == 0xa4 || c == 0xac || c == 0xad || c == 0xbb || c == 0xbf) in IsPrint()
594 if (c >= 0xc1 && c <= 0xda) return 1; in IsPrint()
595 if (c >= 0xe0 && c <= 0xf2) return 1; in IsPrint()
599 if (c >= 0xa0 && c <= 0xfe && in IsPrint()
600 c != 0xa4 && c != 0xa5 && c != 0xaa && in IsPrint()
601 c != 0xae && c != 0xd2) return 1; in IsPrint()
605 if (c >= 0xa0 && c <= 0xfa) { in IsPrint()
606 if (c >= 0xbf && c <= 0xde) return 0; in IsPrint()
607 if (c == 0xa1) return 0; in IsPrint()
613 if (c >= 0xa0 && c <= 0xda) return 1; in IsPrint()
614 if (c >= 0xdf && c <= 0xfb) return 1; in IsPrint()
618 if (c == 0xa0) return 1; in IsPrint()
619 if (c >= 0xc0 && c <= 0xff) return 1; in IsPrint()
623 if (c >= 0x80 && c <= 0xff) return 1; in IsPrint()
633 static int IsPunct(int enc, int c) in IsPunct() argument
636 return ispunct(c); in IsPunct()
639 if (c == 0x24 || c == 0x2b || c == 0x5e || c == 0x60 || in IsPunct()
640 c == 0x7c || c == 0x7e) return 1; in IsPunct()
641 if (c >= 0x3c && c <= 0x3e) return 1; in IsPunct()
644 if (c >= 0x21 && c <= 0x2f) return 1; in IsPunct()
645 if (c >= 0x3a && c <= 0x40) return 1; in IsPunct()
646 if (c >= 0x5b && c <= 0x60) return 1; in IsPunct()
647 if (c >= 0x7b && c <= 0x7e) return 1; in IsPunct()
653 if (c == 0xad) return 1; in IsPunct()
656 if (c == 0xa1) return 1; in IsPunct()
657 if (c == 0xab) return 1; in IsPunct()
658 if (c == 0xb7) return 1; in IsPunct()
659 if (c == 0xbb) return 1; in IsPunct()
660 if (c == 0xbf) return 1; in IsPunct()
667 if (c == 0xad) return 1; in IsPunct()
672 if (c == 0xad) return 1; in IsPunct()
673 if (c == 0xb7) return 1; in IsPunct()
674 if (c == 0xbd) return 1; in IsPunct()
678 if (c == 0xac) return 1; in IsPunct()
679 if (c == 0xad) return 1; in IsPunct()
680 if (c == 0xbb) return 1; in IsPunct()
681 if (c == 0xbf) return 1; in IsPunct()
685 if (c == 0xa1 || c == 0xa2) return 1; in IsPunct()
686 if (c == 0xab) return 1; in IsPunct()
687 if (c == 0xaf) return 1; in IsPunct()
688 if (c == 0xad) return 1; in IsPunct()
689 if (c == 0xb7 || c == 0xbb) return 1; in IsPunct()
693 if (c == 0xab) return 1; in IsPunct()
694 if (c == 0xad) return 1; in IsPunct()
695 if (c == 0xb7) return 1; in IsPunct()
696 if (c == 0xbb) return 1; in IsPunct()
697 if (c == 0xdf) return 1; in IsPunct()
701 if (c == 0xa1 || c == 0xa5) return 1; in IsPunct()
702 if (c == 0xab || c == 0xad) return 1; in IsPunct()
703 if (c == 0xb4 || c == 0xb7) return 1; in IsPunct()
704 if (c == 0xbb) return 1; in IsPunct()
705 if (c == 0xff) return 1; in IsPunct()
709 if (c == 0xa5) return 1; in IsPunct()
710 if (c == 0xab) return 1; in IsPunct()
711 if (c == 0xad) return 1; in IsPunct()
712 if (c == 0xb5) return 1; in IsPunct()
713 if (c == 0xb7) return 1; in IsPunct()
714 if (c == 0xbb) return 1; in IsPunct()
718 if (c == 0x9e) return 1; in IsPunct()
732 static int IsSpace(int enc, int c) in IsSpace() argument
735 return isspace(c); in IsSpace()
737 if (c >= 0x09 && c <= 0x0d) return 1; in IsSpace()
738 if (c == 0x20) return 1; in IsSpace()
742 if (c == 0x85) return 1; in IsSpace()
760 if (c == 0xa0) return 1; in IsSpace()
764 if (c == 0x9a) return 1; in IsSpace()
774 static int IsUpper(int enc, int c) in IsUpper() argument
777 return isupper(c); in IsUpper()
779 if (c >= 0x41 && c <= 0x5a) return 1; in IsUpper()
785 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
786 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
790 if (c == 0xa1 || c == 0xa3) return 1; in IsUpper()
791 if (c == 0xa5 || c == 0xa6) return 1; in IsUpper()
792 if (c >= 0xa9 && c <= 0xac) return 1; in IsUpper()
793 if (c >= 0xae && c <= 0xaf) return 1; in IsUpper()
794 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
795 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
799 if (c == 0xa1) return 1; in IsUpper()
800 if (c == 0xa6) return 1; in IsUpper()
801 if (c >= 0xa9 && c <= 0xac) return 1; in IsUpper()
802 if (c == 0xaf) return 1; in IsUpper()
803 if (c >= 0xc0 && c <= 0xc2) return 1; in IsUpper()
804 if (c >= 0xc4 && c <= 0xcf) return 1; in IsUpper()
805 if (c >= 0xd1 && c <= 0xd6) return 1; in IsUpper()
806 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
810 if (c == 0xa1 || c == 0xa3) return 1; in IsUpper()
811 if (c == 0xa5 || c == 0xa6) return 1; in IsUpper()
812 if (c >= 0xa9 && c <= 0xac) return 1; in IsUpper()
813 if (c == 0xae) return 1; in IsUpper()
814 if (c == 0xbd) return 1; in IsUpper()
815 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
816 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
820 if (c >= 0xa1 && c <= 0xcf && c != 0xad) return 1; in IsUpper()
827 if (c == 0xb6) return 1; in IsUpper()
828 if (c >= 0xb8 && c <= 0xba) return 1; in IsUpper()
829 if (c == 0xbc) return 1; in IsUpper()
830 if (c >= 0xbe && c <= 0xbf) return 1; in IsUpper()
831 if (c >= 0xc1 && c <= 0xdb && c != 0xd2) return 1; in IsUpper()
839 if (c >= 0xa1 && c <= 0xa6) return 1; in IsUpper()
840 if (c >= 0xa8 && c <= 0xac) return 1; in IsUpper()
841 if (c == 0xae || c == 0xaf) return 1; in IsUpper()
842 if (c >= 0xc0 && c <= 0xde) return 1; in IsUpper()
846 if (c == 0xa8) return 1; in IsUpper()
847 if (c == 0xaa) return 1; in IsUpper()
848 if (c == 0xaf) return 1; in IsUpper()
849 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
850 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
854 if (c == 0xa1) return 1; in IsUpper()
855 if (c == 0xa4 || c == 0xa6) return 1; in IsUpper()
856 if (c == 0xa8) return 1; in IsUpper()
857 if (c == 0xaa || c == 0xac) return 1; in IsUpper()
858 if (c == 0xaf || c == 0xb0) return 1; in IsUpper()
859 if (c == 0xb2 || c == 0xb4 || c == 0xb7) return 1; in IsUpper()
860 if (c == 0xbb || c == 0xbd) return 1; in IsUpper()
861 if (c >= 0xc0 && c <= 0xde) return 1; in IsUpper()
865 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
866 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
867 if (c == 0xa6) return 1; in IsUpper()
868 if (c == 0xb4) return 1; in IsUpper()
869 if (c == 0xbc) return 1; in IsUpper()
870 if (c == 0xbe) return 1; in IsUpper()
874 if (c == 0xa1) return 1; in IsUpper()
875 if (c == 0xa3) return 1; in IsUpper()
876 if (c == 0xa6) return 1; in IsUpper()
877 if (c == 0xaa) return 1; in IsUpper()
878 if (c == 0xac) return 1; in IsUpper()
879 if (c == 0xaf) return 1; in IsUpper()
880 if (c == 0xb2) return 1; in IsUpper()
881 if (c == 0xb4) return 1; in IsUpper()
882 if (c == 0xbc) return 1; in IsUpper()
883 if (c == 0xbe) return 1; in IsUpper()
884 if (c >= 0xc0 && c <= 0xde) return 1; in IsUpper()
888 if (c == 0xb3) return 1; in IsUpper()
891 if (c >= 0xe0 && c <= 0xff) return 1; in IsUpper()
901 static int IsXDigit(int enc, int c) in IsXDigit() argument
904 return isxdigit(c); in IsXDigit()
906 if (c >= 0x30 && c <= 0x39) return 1; in IsXDigit()
907 if (c >= 0x41 && c <= 0x46) return 1; in IsXDigit()
908 if (c >= 0x61 && c <= 0x66) return 1; in IsXDigit()
912 static int IsWord(int enc, int c) in IsWord() argument
915 return (isalpha(c) || isdigit(c) || c == 0x5f); in IsWord()
918 if (c >= 0x30 && c <= 0x39) return 1; in IsWord()
919 if (c >= 0x41 && c <= 0x5a) return 1; in IsWord()
920 if (c == 0x5f) return 1; in IsWord()
921 if (c >= 0x61 && c <= 0x7a) return 1; in IsWord()
927 if (c == 0xaa) return 1; in IsWord()
928 if (c >= 0xb2 && c <= 0xb3) return 1; in IsWord()
929 if (c == 0xb5) return 1; in IsWord()
930 if (c >= 0xb9 && c <= 0xba) return 1; in IsWord()
931 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
932 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
933 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
934 if (c >= 0xf8 && c <= 0xff) return 1; in IsWord()
938 if (c == 0xa1 || c == 0xa3) return 1; in IsWord()
939 if (c == 0xa5 || c == 0xa6) return 1; in IsWord()
940 if (c >= 0xa9 && c <= 0xac) return 1; in IsWord()
941 if (c >= 0xae && c <= 0xaf) return 1; in IsWord()
942 if (c == 0xb1 || c == 0xb3) return 1; in IsWord()
943 if (c == 0xb5 || c == 0xb6) return 1; in IsWord()
944 if (c >= 0xb9 && c <= 0xbc) return 1; in IsWord()
945 if (c >= 0xbe && c <= 0xbf) return 1; in IsWord()
946 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
947 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
948 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
952 if (c == 0xa1) return 1; in IsWord()
953 if (c == 0xa6) return 1; in IsWord()
954 if (c >= 0xa9 && c <= 0xac) return 1; in IsWord()
955 if (c == 0xaf) return 1; in IsWord()
956 if (c >= 0xb1 && c <= 0xb3) return 1; in IsWord()
957 if (c == 0xb5 || c == 0xb6) return 1; in IsWord()
958 if (c >= 0xb9 && c <= 0xbd) return 1; in IsWord()
959 if (c == 0xbf) return 1; in IsWord()
960 if (c >= 0xc0 && c <= 0xc2) return 1; in IsWord()
961 if (c >= 0xc4 && c <= 0xcf) return 1; in IsWord()
962 if (c >= 0xd1 && c <= 0xd6) return 1; in IsWord()
963 if (c >= 0xd8 && c <= 0xe2) return 1; in IsWord()
964 if (c >= 0xe4 && c <= 0xef) return 1; in IsWord()
965 if (c >= 0xf1 && c <= 0xf6) return 1; in IsWord()
966 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
970 if (c >= 0xa1 && c <= 0xa3) return 1; in IsWord()
971 if (c == 0xa5 || c == 0xa6) return 1; in IsWord()
972 if (c >= 0xa9 && c <= 0xac) return 1; in IsWord()
973 if (c == 0xae) return 1; in IsWord()
974 if (c == 0xb1 || c == 0xb3) return 1; in IsWord()
975 if (c == 0xb5 || c == 0xb6) return 1; in IsWord()
976 if (c >= 0xb9 && c <= 0xbf) return 1; in IsWord()
977 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
978 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
979 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
983 if (c >= 0xa1 && c <= 0xcf && c != 0xad) return 1; in IsWord()
984 if (c >= 0xd0 && c <= 0xff && c != 0xf0 && c != 0xfd) return 1; in IsWord()
988 if (c >= 0xc1 && c <= 0xda) return 1; in IsWord()
989 if (c >= 0xe0 && c <= 0xea) return 1; in IsWord()
990 if (c >= 0xeb && c <= 0xf2) return 1; in IsWord()
994 if (c == 0xb2 || c == 0xb3) return 1; in IsWord()
995 if (c == 0xb6) return 1; in IsWord()
996 if (c >= 0xb8 && c <= 0xba) return 1; in IsWord()
997 if (c >= 0xbc && c <= 0xbf) return 1; in IsWord()
998 if (c == 0xc0) return 1; in IsWord()
999 if (c >= 0xc1 && c <= 0xdb && c != 0xd2) return 1; in IsWord()
1000 if (c >= 0xdc && c <= 0xfe) return 1; in IsWord()
1004 if (c == 0xb2 || c == 0xb3 || c == 0xb5 || c == 0xb9) return 1; in IsWord()
1005 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
1006 if (c >= 0xe0 && c <= 0xfa) return 1; in IsWord()
1010 if (c >= 0xa1 && c <= 0xff) { in IsWord()
1011 if (c != 0xa7 && c != 0xad && c != 0xb0 && c != 0xb7 && c != 0xbd) in IsWord()
1017 if (c >= 0xa1 && c <= 0xda) return 1; in IsWord()
1018 if (c >= 0xdf && c <= 0xfb) return 1; in IsWord()
1022 if (c == 0xa8) return 1; in IsWord()
1023 if (c == 0xaa) return 1; in IsWord()
1024 if (c == 0xaf) return 1; in IsWord()
1025 if (c == 0xb2 || c == 0xb3 || c == 0xb5 || c == 0xb9) return 1; in IsWord()
1026 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
1027 if (c == 0xb8) return 1; in IsWord()
1028 if (c == 0xba) return 1; in IsWord()
1029 if (c >= 0xbf && c <= 0xd6) return 1; in IsWord()
1030 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
1031 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
1035 if (c >= 0xa1 && c <= 0xff) { in IsWord()
1036 if (c == 0xa3 || c == 0xa7 || c == 0xa9 || c == 0xad || c == 0xae || in IsWord()
1037 c == 0xb6) return 0; in IsWord()
1043 if (c == 0xaa) return 1; in IsWord()
1044 if (c >= 0xb2 && c <= 0xb3) return 1; in IsWord()
1045 if (c == 0xb5) return 1; in IsWord()
1046 if (c >= 0xb9 && c <= 0xba) return 1; in IsWord()
1047 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
1048 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
1049 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
1050 if (c >= 0xf8 && c <= 0xff) return 1; in IsWord()
1051 if (c == 0xa6) return 1; in IsWord()
1052 if (c == 0xa8) return 1; in IsWord()
1053 if (c == 0xb4) return 1; in IsWord()
1054 if (c == 0xb8) return 1; in IsWord()
1058 if (c == 0xa1) return 1; in IsWord()
1059 if (c == 0xa2) return 1; in IsWord()
1060 if (c == 0xa3) return 1; in IsWord()
1061 if (c == 0xa6) return 1; in IsWord()
1062 if (c == 0xa8) return 1; in IsWord()
1063 if (c == 0xaa) return 1; in IsWord()
1064 if (c == 0xac) return 1; in IsWord()
1065 if (c == 0xae) return 1; in IsWord()
1066 if (c == 0xaf) return 1; in IsWord()
1067 if (c == 0xb2) return 1; in IsWord()
1068 if (c == 0xb3) return 1; in IsWord()
1069 if (c == 0xb4) return 1; in IsWord()
1070 if (c >= 0xb8 && c <= 0xba) return 1; in IsWord()
1071 if (c == 0xbc) return 1; in IsWord()
1072 if (c == 0xbd) return 1; in IsWord()
1073 if (c == 0xbe) return 1; in IsWord()
1074 if (c == 0xbf) return 1; in IsWord()
1075 if (c >= 0xc0 && c <= 0xde) return 1; in IsWord()
1076 if (c >= 0xdf && c <= 0xff) return 1; in IsWord()
1080 if (c == 0x9d) return 1; in IsWord()
1081 if (c == 0xa3 || c == 0xb3) return 1; in IsWord()
1084 if (c >= 0xc0 && c <= 0xff) return 1; in IsWord()
1094 static int IsAscii(int enc ARG_UNUSED, int c) in IsAscii() argument
1096 if (c >= 0x00 && c <= 0x7f) return 1; in IsAscii()
1100 static int IsNewline(int enc ARG_UNUSED, int c) in IsNewline() argument
1102 if (c == 0x0a) return 1; in IsNewline()
1110 int c, val, enc; in exec() local
1117 for (c = 0; c < 256; c++) { in exec()
1119 if (IsNewline(enc, c)) val |= BIT_CTYPE_NEWLINE; in exec()
1120 if (IsAlpha (enc, c)) val |= (BIT_CTYPE_ALPHA | BIT_CTYPE_ALNUM); in exec()
1121 if (IsBlank (enc, c)) val |= BIT_CTYPE_BLANK; in exec()
1122 if (IsCntrl (enc, c)) val |= BIT_CTYPE_CNTRL; in exec()
1123 if (IsDigit (enc, c)) val |= (BIT_CTYPE_DIGIT | BIT_CTYPE_ALNUM); in exec()
1124 if (IsGraph (enc, c)) val |= BIT_CTYPE_GRAPH; in exec()
1125 if (IsLower (enc, c)) val |= BIT_CTYPE_LOWER; in exec()
1126 if (IsPrint (enc, c)) val |= BIT_CTYPE_PRINT; in exec()
1127 if (IsPunct (enc, c)) val |= BIT_CTYPE_PUNCT; in exec()
1128 if (IsSpace (enc, c)) val |= BIT_CTYPE_SPACE; in exec()
1129 if (IsUpper (enc, c)) val |= BIT_CTYPE_UPPER; in exec()
1130 if (IsXDigit(enc, c)) val |= BIT_CTYPE_XDIGIT; in exec()
1131 if (IsWord (enc, c)) val |= BIT_CTYPE_WORD; in exec()
1132 if (IsAscii (enc, c)) val |= BIT_CTYPE_ASCII; in exec()
1134 if (c % NCOL == 0) fputs(" ", fp); in exec()
1136 if (c != 255) fputs(",", fp); in exec()
1137 if (c != 0 && c % NCOL == (NCOL-1)) in exec()