Lines Matching refs:c
82 static int IsAlpha(int enc, int c) in IsAlpha() argument
84 if (c >= 0x41 && c <= 0x5a) return 1; in IsAlpha()
85 if (c >= 0x61 && c <= 0x7a) return 1; in IsAlpha()
91 if (c == 0xaa) return 1; in IsAlpha()
92 if (c == 0xb5) return 1; in IsAlpha()
93 if (c == 0xba) return 1; in IsAlpha()
94 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
95 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
96 if (c >= 0xf8 && c <= 0xff) return 1; in IsAlpha()
100 if (c == 0xa1 || c == 0xa3) return 1; in IsAlpha()
101 if (c == 0xa5 || c == 0xa6) return 1; in IsAlpha()
102 if (c >= 0xa9 && c <= 0xac) return 1; in IsAlpha()
103 if (c >= 0xae && c <= 0xaf) return 1; in IsAlpha()
104 if (c == 0xb1 || c == 0xb3) return 1; in IsAlpha()
105 if (c == 0xb5 || c == 0xb6) return 1; in IsAlpha()
106 if (c >= 0xb9 && c <= 0xbc) return 1; in IsAlpha()
107 if (c >= 0xbe && c <= 0xbf) return 1; in IsAlpha()
108 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
109 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
110 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
114 if (c == 0xa1) return 1; in IsAlpha()
115 if (c == 0xa6) return 1; in IsAlpha()
116 if (c >= 0xa9 && c <= 0xac) return 1; in IsAlpha()
117 if (c == 0xaf) return 1; in IsAlpha()
118 if (c == 0xb1) return 1; in IsAlpha()
119 if (c == 0xb5 || c == 0xb6) return 1; in IsAlpha()
120 if (c >= 0xb9 && c <= 0xbc) return 1; in IsAlpha()
121 if (c == 0xbf) return 1; in IsAlpha()
122 if (c >= 0xc0 && c <= 0xc2) return 1; in IsAlpha()
123 if (c >= 0xc4 && c <= 0xcf) return 1; in IsAlpha()
124 if (c >= 0xd1 && c <= 0xd6) return 1; in IsAlpha()
125 if (c >= 0xd8 && c <= 0xe2) return 1; in IsAlpha()
126 if (c >= 0xe4 && c <= 0xef) return 1; in IsAlpha()
127 if (c >= 0xf1 && c <= 0xf6) return 1; in IsAlpha()
128 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
132 if (c >= 0xa1 && c <= 0xa3) return 1; in IsAlpha()
133 if (c == 0xa5 || c == 0xa6) return 1; in IsAlpha()
134 if (c >= 0xa9 && c <= 0xac) return 1; in IsAlpha()
135 if (c == 0xae) return 1; in IsAlpha()
136 if (c == 0xb1 || c == 0xb3) return 1; in IsAlpha()
137 if (c == 0xb5 || c == 0xb6) return 1; in IsAlpha()
138 if (c >= 0xb9 && c <= 0xbf) return 1; in IsAlpha()
139 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
140 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
141 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
145 if (c >= 0xa1 && c <= 0xcf && c != 0xad) return 1; in IsAlpha()
146 if (c >= 0xd0 && c <= 0xff && c != 0xf0 && c != 0xfd) return 1; in IsAlpha()
150 if (c >= 0xc1 && c <= 0xda) return 1; in IsAlpha()
151 if (c >= 0xe0 && c <= 0xf2) return 1; in IsAlpha()
155 if (c == 0xb6) return 1; in IsAlpha()
156 if (c >= 0xb8 && c <= 0xba) return 1; in IsAlpha()
157 if (c == 0xbc) return 1; in IsAlpha()
158 if (c >= 0xbe && c <= 0xbf) return 1; in IsAlpha()
159 if (c == 0xc0) return 1; in IsAlpha()
160 if (c >= 0xc1 && c <= 0xdb && c != 0xd2) return 1; in IsAlpha()
161 if (c >= 0xdc && c <= 0xfe) return 1; in IsAlpha()
165 if (c == 0xb5) return 1; in IsAlpha()
166 if (c >= 0xe0 && c <= 0xfa) return 1; in IsAlpha()
170 if (c >= 0xa1 && c <= 0xa6) return 1; in IsAlpha()
171 if (c >= 0xa8 && c <= 0xac) return 1; in IsAlpha()
172 if (c == 0xae || c == 0xaf) return 1; in IsAlpha()
173 if (c >= 0xb1 && c <= 0xb6) return 1; in IsAlpha()
174 if (c >= 0xb8 && c <= 0xbc) return 1; in IsAlpha()
175 if (c >= 0xbe && c <= 0xff) return 1; in IsAlpha()
179 if (c >= 0xa1 && c <= 0xda) return 1; in IsAlpha()
180 if (c >= 0xdf && c <= 0xfb) return 1; in IsAlpha()
184 if (c == 0xa8) return 1; in IsAlpha()
185 if (c == 0xaa) return 1; in IsAlpha()
186 if (c == 0xaf) return 1; in IsAlpha()
187 if (c == 0xb5) return 1; in IsAlpha()
188 if (c == 0xb8) return 1; in IsAlpha()
189 if (c == 0xba) return 1; in IsAlpha()
190 if (c >= 0xbf && c <= 0xd6) return 1; in IsAlpha()
191 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
192 if (c >= 0xf8 && c <= 0xfe) return 1; in IsAlpha()
196 if (c == 0xa1 || c == 0xa2) return 1; in IsAlpha()
197 if (c == 0xa4 || c == 0xa5) return 1; in IsAlpha()
198 if (c == 0xa6 || c == 0xa8) return 1; in IsAlpha()
199 if (c >= 0xaa && c <= 0xac) return 1; in IsAlpha()
200 if (c >= 0xaf && c <= 0xb5) return 1; in IsAlpha()
201 if (c >= 0xb7 && c <= 0xff) return 1; in IsAlpha()
205 if (c == 0xaa) return 1; in IsAlpha()
206 if (c == 0xb5) return 1; in IsAlpha()
207 if (c == 0xba) return 1; in IsAlpha()
208 if (c >= 0xc0 && c <= 0xd6) return 1; in IsAlpha()
209 if (c >= 0xd8 && c <= 0xf6) return 1; in IsAlpha()
210 if (c >= 0xf8 && c <= 0xff) return 1; in IsAlpha()
211 if (c == 0xa6) return 1; in IsAlpha()
212 if (c == 0xa8) return 1; in IsAlpha()
213 if (c == 0xb4) return 1; in IsAlpha()
214 if (c == 0xb8) return 1; in IsAlpha()
215 if (c == 0xbc) return 1; in IsAlpha()
216 if (c == 0xbd) return 1; in IsAlpha()
217 if (c == 0xbe) return 1; in IsAlpha()
221 if (c == 0xa1) return 1; in IsAlpha()
222 if (c == 0xa2) return 1; in IsAlpha()
223 if (c == 0xa3) return 1; in IsAlpha()
224 if (c == 0xa6) return 1; in IsAlpha()
225 if (c == 0xa8) return 1; in IsAlpha()
226 if (c == 0xaa) return 1; in IsAlpha()
227 if (c == 0xac) return 1; in IsAlpha()
228 if (c == 0xae) return 1; in IsAlpha()
229 if (c == 0xaf) return 1; in IsAlpha()
230 if (c == 0xb2) return 1; in IsAlpha()
231 if (c == 0xb3) return 1; in IsAlpha()
232 if (c == 0xb4) return 1; in IsAlpha()
233 if (c >= 0xb8 && c <= 0xba) return 1; in IsAlpha()
234 if (c == 0xbc) return 1; in IsAlpha()
235 if (c == 0xbd) return 1; in IsAlpha()
236 if (c == 0xbe) return 1; in IsAlpha()
237 if (c == 0xbf) return 1; in IsAlpha()
238 if (c >= 0xc0 && c <= 0xde) return 1; in IsAlpha()
239 if (c >= 0xdf && c <= 0xff) return 1; in IsAlpha()
243 if (c == 0xa3 || c == 0xb3) return 1; in IsAlpha()
246 if (c >= 0xc0 && c <= 0xff) return 1; in IsAlpha()
256 static int IsBlank(int enc, int c) in IsBlank() argument
258 if (c == 0x09 || c == 0x20) return 1; in IsBlank()
278 if (c == 0xa0) return 1; in IsBlank()
282 if (c == 0x9a) return 1; in IsBlank()
292 static int IsCntrl(int enc, int c) in IsCntrl() argument
294 if (c >= 0x00 && c <= 0x1F) return 1; in IsCntrl()
298 if (c == 0xad) return 1; in IsCntrl()
316 if (c >= 0x7f && c <= 0x9F) return 1; in IsCntrl()
321 if (c == 0x7f) return 1; in IsCntrl()
331 static int IsDigit(int enc, int c) in IsDigit() argument
333 if (c >= 0x30 && c <= 0x39) return 1; in IsDigit()
337 static int IsGraph(int enc, int c) in IsGraph() argument
339 if (c >= 0x21 && c <= 0x7e) return 1; in IsGraph()
353 if (c >= 0xa1 && c <= 0xff) return 1; in IsGraph()
357 if (c >= 0xa1) { in IsGraph()
358 if (c == 0xa5 || c == 0xae || c == 0xbe || c == 0xc3 || c == 0xd0 || in IsGraph()
359 c == 0xe3 || c == 0xf0) in IsGraph()
367 if (c == 0xa4 || c == 0xac || c == 0xad || c == 0xbb || c == 0xbf) in IsGraph()
369 if (c >= 0xc1 && c <= 0xda) return 1; in IsGraph()
370 if (c >= 0xe0 && c <= 0xf2) return 1; in IsGraph()
374 if (c >= 0xa1 && c <= 0xfe && in IsGraph()
375 c != 0xa4 && c != 0xa5 && c != 0xaa && in IsGraph()
376 c != 0xae && c != 0xd2) return 1; in IsGraph()
380 if (c >= 0xa2 && c <= 0xfa) { in IsGraph()
381 if (c >= 0xbf && c <= 0xde) return 0; in IsGraph()
387 if (c >= 0xa1 && c <= 0xda) return 1; in IsGraph()
388 if (c >= 0xdf && c <= 0xfb) return 1; in IsGraph()
392 if (c >= 0xc0 && c <= 0xff) return 1; in IsGraph()
396 if (c >= 0x80 && c <= 0xff && c != 0x9a) return 1; in IsGraph()
406 static int IsLower(int enc, int c) in IsLower() argument
408 if (c >= 0x61 && c <= 0x7a) return 1; in IsLower()
414 if (c == 0xaa) return 1; in IsLower()
415 if (c == 0xb5) return 1; in IsLower()
416 if (c == 0xba) return 1; in IsLower()
417 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
418 if (c >= 0xf8 && c <= 0xff) return 1; in IsLower()
422 if (c == 0xb1 || c == 0xb3) return 1; in IsLower()
423 if (c == 0xb5 || c == 0xb6) return 1; in IsLower()
424 if (c >= 0xb9 && c <= 0xbc) return 1; in IsLower()
425 if (c >= 0xbe && c <= 0xbf) return 1; in IsLower()
426 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
427 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
431 if (c == 0xb1) return 1; in IsLower()
432 if (c == 0xb5 || c == 0xb6) return 1; in IsLower()
433 if (c >= 0xb9 && c <= 0xbc) return 1; in IsLower()
434 if (c == 0xbf) return 1; in IsLower()
435 if (c == 0xdf) return 1; in IsLower()
436 if (c >= 0xe0 && c <= 0xe2) return 1; in IsLower()
437 if (c >= 0xe4 && c <= 0xef) return 1; in IsLower()
438 if (c >= 0xf1 && c <= 0xf6) return 1; in IsLower()
439 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
443 if (c == 0xa2) return 1; in IsLower()
444 if (c == 0xb1 || c == 0xb3) return 1; in IsLower()
445 if (c == 0xb5 || c == 0xb6) return 1; in IsLower()
446 if (c >= 0xb9 && c <= 0xbc) return 1; in IsLower()
447 if (c >= 0xbe && c <= 0xbf) return 1; in IsLower()
448 if (c == 0xdf) return 1; in IsLower()
449 if (c >= 0xe0 && c <= 0xf6) return 1; in IsLower()
450 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
454 if (c >= 0xd0 && c <= 0xff && c != 0xf0 && c != 0xfd) return 1; in IsLower()
461 if (c == 0xc0) return 1; in IsLower()
462 if (c >= 0xdc && c <= 0xfe) return 1; in IsLower()
466 if (c == 0xb5) return 1; in IsLower()
470 if (c >= 0xb1 && c <= 0xb6) return 1; in IsLower()
471 if (c >= 0xb8 && c <= 0xbc) return 1; in IsLower()
472 if (c == 0xbe || c == 0xbf) return 1; in IsLower()
473 if (c >= 0xdf && c <= 0xff) return 1; in IsLower()
480 if (c == 0xb5) return 1; in IsLower()
481 if (c == 0xb8) return 1; in IsLower()
482 if (c == 0xba) return 1; in IsLower()
483 if (c == 0xbf) return 1; in IsLower()
484 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
485 if (c >= 0xf8 && c <= 0xfe) return 1; in IsLower()
489 if (c == 0xa2) return 1; in IsLower()
490 if (c == 0xa5) return 1; in IsLower()
491 if (c == 0xab) return 1; in IsLower()
492 if (c == 0xb1 || c == 0xb3 || c == 0xb5) return 1; in IsLower()
493 if (c >= 0xb8 && c <= 0xba) return 1; in IsLower()
494 if (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()
500 if (c == 0xaa) return 1; in IsLower()
501 if (c == 0xb5) return 1; in IsLower()
502 if (c == 0xba) return 1; in IsLower()
503 if (c >= 0xdf && c <= 0xf6) return 1; in IsLower()
504 if (c >= 0xf8 && c <= 0xff) return 1; in IsLower()
505 if (c == 0xa8) return 1; in IsLower()
506 if (c == 0xb8) return 1; in IsLower()
507 if (c == 0xbd) return 1; in IsLower()
511 if (c == 0xa2) return 1; in IsLower()
512 if (c == 0xa8) return 1; in IsLower()
513 if (c == 0xae) return 1; in IsLower()
514 if (c == 0xb3) return 1; in IsLower()
515 if (c >= 0xb8 && c <= 0xba) return 1; in IsLower()
516 if (c == 0xbd) return 1; in IsLower()
517 if (c == 0xbf) return 1; in IsLower()
518 if (c >= 0xdf && c <= 0xff) return 1; in IsLower()
522 if (c == 0xa3) return 1; in IsLower()
525 if (c >= 0xc0 && c <= 0xdf) return 1; in IsLower()
535 static int IsPrint(int enc, int c) in IsPrint() argument
537 if (c >= 0x20 && c <= 0x7e) return 1; in IsPrint()
541 if (c >= 0x09 && c <= 0x0d) return 1; in IsPrint()
542 if (c == 0x85) return 1; in IsPrint()
554 if (c >= 0xa0 && c <= 0xff) return 1; in IsPrint()
558 if (c >= 0xa0) { in IsPrint()
559 if (c == 0xa5 || c == 0xae || c == 0xbe || c == 0xc3 || c == 0xd0 || in IsPrint()
560 c == 0xe3 || c == 0xf0) in IsPrint()
568 if (c == 0xa0) return 1; in IsPrint()
569 if (c == 0xa4 || c == 0xac || c == 0xad || c == 0xbb || c == 0xbf) in IsPrint()
571 if (c >= 0xc1 && c <= 0xda) return 1; in IsPrint()
572 if (c >= 0xe0 && c <= 0xf2) return 1; in IsPrint()
576 if (c >= 0xa0 && c <= 0xfe && in IsPrint()
577 c != 0xa4 && c != 0xa5 && c != 0xaa && in IsPrint()
578 c != 0xae && c != 0xd2) return 1; in IsPrint()
582 if (c >= 0xa0 && c <= 0xfa) { in IsPrint()
583 if (c >= 0xbf && c <= 0xde) return 0; in IsPrint()
584 if (c == 0xa1) return 0; in IsPrint()
590 if (c >= 0xa0 && c <= 0xda) return 1; in IsPrint()
591 if (c >= 0xdf && c <= 0xfb) return 1; in IsPrint()
595 if (c == 0xa0) return 1; in IsPrint()
596 if (c >= 0xc0 && c <= 0xff) return 1; in IsPrint()
600 if (c >= 0x80 && c <= 0xff) return 1; in IsPrint()
610 static int IsPunct(int enc, int c) in IsPunct() argument
613 if (c == 0x24 || c == 0x2b || c == 0x5e || c == 0x60 || in IsPunct()
614 c == 0x7c || c == 0x7e) return 1; in IsPunct()
615 if (c >= 0x3c && c <= 0x3e) return 1; in IsPunct()
618 if (c >= 0x21 && c <= 0x2f) return 1; in IsPunct()
619 if (c >= 0x3a && c <= 0x40) return 1; in IsPunct()
620 if (c >= 0x5b && c <= 0x60) return 1; in IsPunct()
621 if (c >= 0x7b && c <= 0x7e) return 1; in IsPunct()
627 if (c == 0xad) return 1; in IsPunct()
630 if (c == 0xa1) return 1; in IsPunct()
631 if (c == 0xab) return 1; in IsPunct()
632 if (c == 0xb7) return 1; in IsPunct()
633 if (c == 0xbb) return 1; in IsPunct()
634 if (c == 0xbf) return 1; in IsPunct()
641 if (c == 0xad) return 1; in IsPunct()
646 if (c == 0xad) return 1; in IsPunct()
647 if (c == 0xb7) return 1; in IsPunct()
648 if (c == 0xbd) return 1; in IsPunct()
652 if (c == 0xac) return 1; in IsPunct()
653 if (c == 0xad) return 1; in IsPunct()
654 if (c == 0xbb) return 1; in IsPunct()
655 if (c == 0xbf) return 1; in IsPunct()
659 if (c == 0xa1 || c == 0xa2) return 1; in IsPunct()
660 if (c == 0xab) return 1; in IsPunct()
661 if (c == 0xaf) return 1; in IsPunct()
662 if (c == 0xad) return 1; in IsPunct()
663 if (c == 0xb7 || c == 0xbb) return 1; in IsPunct()
667 if (c == 0xab) return 1; in IsPunct()
668 if (c == 0xad) return 1; in IsPunct()
669 if (c == 0xb7) return 1; in IsPunct()
670 if (c == 0xbb) return 1; in IsPunct()
671 if (c == 0xdf) return 1; in IsPunct()
675 if (c == 0xa1 || c == 0xa5) return 1; in IsPunct()
676 if (c == 0xab || c == 0xad) return 1; in IsPunct()
677 if (c == 0xb4 || c == 0xb7) return 1; in IsPunct()
678 if (c == 0xbb) return 1; in IsPunct()
679 if (c == 0xff) return 1; in IsPunct()
683 if (c == 0xa5) return 1; in IsPunct()
684 if (c == 0xab) return 1; in IsPunct()
685 if (c == 0xad) return 1; in IsPunct()
686 if (c == 0xb5) return 1; in IsPunct()
687 if (c == 0xb7) return 1; in IsPunct()
688 if (c == 0xbb) return 1; in IsPunct()
692 if (c == 0x9e) return 1; in IsPunct()
706 static int IsSpace(int enc, int c) in IsSpace() argument
708 if (c >= 0x09 && c <= 0x0d) return 1; in IsSpace()
709 if (c == 0x20) return 1; in IsSpace()
713 if (c == 0x85) return 1; in IsSpace()
731 if (c == 0xa0) return 1; in IsSpace()
735 if (c == 0x9a) return 1; in IsSpace()
745 static int IsUpper(int enc, int c) in IsUpper() argument
747 if (c >= 0x41 && c <= 0x5a) return 1; in IsUpper()
753 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
754 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
758 if (c == 0xa1 || c == 0xa3) return 1; in IsUpper()
759 if (c == 0xa5 || c == 0xa6) return 1; in IsUpper()
760 if (c >= 0xa9 && c <= 0xac) return 1; in IsUpper()
761 if (c >= 0xae && c <= 0xaf) return 1; in IsUpper()
762 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
763 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
767 if (c == 0xa1) return 1; in IsUpper()
768 if (c == 0xa6) return 1; in IsUpper()
769 if (c >= 0xa9 && c <= 0xac) return 1; in IsUpper()
770 if (c == 0xaf) return 1; in IsUpper()
771 if (c >= 0xc0 && c <= 0xc2) return 1; in IsUpper()
772 if (c >= 0xc4 && c <= 0xcf) return 1; in IsUpper()
773 if (c >= 0xd1 && c <= 0xd6) return 1; in IsUpper()
774 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
778 if (c == 0xa1 || c == 0xa3) return 1; in IsUpper()
779 if (c == 0xa5 || c == 0xa6) return 1; in IsUpper()
780 if (c >= 0xa9 && c <= 0xac) return 1; in IsUpper()
781 if (c == 0xae) return 1; in IsUpper()
782 if (c == 0xbd) return 1; in IsUpper()
783 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
784 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
788 if (c >= 0xa1 && c <= 0xcf && c != 0xad) return 1; in IsUpper()
795 if (c == 0xb6) return 1; in IsUpper()
796 if (c >= 0xb8 && c <= 0xba) return 1; in IsUpper()
797 if (c == 0xbc) return 1; in IsUpper()
798 if (c >= 0xbe && c <= 0xbf) return 1; in IsUpper()
799 if (c >= 0xc1 && c <= 0xdb && c != 0xd2) return 1; in IsUpper()
807 if (c >= 0xa1 && c <= 0xa6) return 1; in IsUpper()
808 if (c >= 0xa8 && c <= 0xac) return 1; in IsUpper()
809 if (c == 0xae || c == 0xaf) return 1; in IsUpper()
810 if (c >= 0xc0 && c <= 0xde) return 1; in IsUpper()
814 if (c == 0xa8) return 1; in IsUpper()
815 if (c == 0xaa) return 1; in IsUpper()
816 if (c == 0xaf) return 1; in IsUpper()
817 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
818 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
822 if (c == 0xa1) return 1; in IsUpper()
823 if (c == 0xa4 || c == 0xa6) return 1; in IsUpper()
824 if (c == 0xa8) return 1; in IsUpper()
825 if (c == 0xaa || c == 0xac) return 1; in IsUpper()
826 if (c == 0xaf || c == 0xb0) return 1; in IsUpper()
827 if (c == 0xb2 || c == 0xb4 || c == 0xb7) return 1; in IsUpper()
828 if (c == 0xbb || c == 0xbd) return 1; in IsUpper()
829 if (c >= 0xc0 && c <= 0xde) return 1; in IsUpper()
833 if (c >= 0xc0 && c <= 0xd6) return 1; in IsUpper()
834 if (c >= 0xd8 && c <= 0xde) return 1; in IsUpper()
835 if (c == 0xa6) return 1; in IsUpper()
836 if (c == 0xb4) return 1; in IsUpper()
837 if (c == 0xbc) return 1; in IsUpper()
838 if (c == 0xbe) return 1; in IsUpper()
842 if (c == 0xa1) return 1; in IsUpper()
843 if (c == 0xa3) return 1; in IsUpper()
844 if (c == 0xa6) return 1; in IsUpper()
845 if (c == 0xaa) return 1; in IsUpper()
846 if (c == 0xac) return 1; in IsUpper()
847 if (c == 0xaf) return 1; in IsUpper()
848 if (c == 0xb2) return 1; in IsUpper()
849 if (c == 0xb4) return 1; in IsUpper()
850 if (c == 0xbc) return 1; in IsUpper()
851 if (c == 0xbe) return 1; in IsUpper()
852 if (c >= 0xc0 && c <= 0xde) return 1; in IsUpper()
856 if (c == 0xb3) return 1; in IsUpper()
859 if (c >= 0xe0 && c <= 0xff) return 1; in IsUpper()
869 static int IsXDigit(int enc, int c) in IsXDigit() argument
871 if (c >= 0x30 && c <= 0x39) return 1; in IsXDigit()
872 if (c >= 0x41 && c <= 0x46) return 1; in IsXDigit()
873 if (c >= 0x61 && c <= 0x66) return 1; in IsXDigit()
877 static int IsWord(int enc, int c) in IsWord() argument
879 if (c >= 0x30 && c <= 0x39) return 1; in IsWord()
880 if (c >= 0x41 && c <= 0x5a) return 1; in IsWord()
881 if (c == 0x5f) return 1; in IsWord()
882 if (c >= 0x61 && c <= 0x7a) return 1; in IsWord()
888 if (c == 0xaa) return 1; in IsWord()
889 if (c >= 0xb2 && c <= 0xb3) return 1; in IsWord()
890 if (c == 0xb5) return 1; in IsWord()
891 if (c >= 0xb9 && c <= 0xba) return 1; in IsWord()
892 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
893 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
894 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
895 if (c >= 0xf8 && c <= 0xff) return 1; in IsWord()
899 if (c == 0xa1 || c == 0xa3) return 1; in IsWord()
900 if (c == 0xa5 || c == 0xa6) return 1; in IsWord()
901 if (c >= 0xa9 && c <= 0xac) return 1; in IsWord()
902 if (c >= 0xae && c <= 0xaf) return 1; in IsWord()
903 if (c == 0xb1 || c == 0xb3) return 1; in IsWord()
904 if (c == 0xb5 || c == 0xb6) return 1; in IsWord()
905 if (c >= 0xb9 && c <= 0xbc) return 1; in IsWord()
906 if (c >= 0xbe && c <= 0xbf) return 1; in IsWord()
907 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
908 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
909 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
913 if (c == 0xa1) return 1; in IsWord()
914 if (c == 0xa6) return 1; in IsWord()
915 if (c >= 0xa9 && c <= 0xac) return 1; in IsWord()
916 if (c == 0xaf) return 1; in IsWord()
917 if (c >= 0xb1 && c <= 0xb3) return 1; in IsWord()
918 if (c == 0xb5 || c == 0xb6) return 1; in IsWord()
919 if (c >= 0xb9 && c <= 0xbd) return 1; in IsWord()
920 if (c == 0xbf) return 1; in IsWord()
921 if (c >= 0xc0 && c <= 0xc2) return 1; in IsWord()
922 if (c >= 0xc4 && c <= 0xcf) return 1; in IsWord()
923 if (c >= 0xd1 && c <= 0xd6) return 1; in IsWord()
924 if (c >= 0xd8 && c <= 0xe2) return 1; in IsWord()
925 if (c >= 0xe4 && c <= 0xef) return 1; in IsWord()
926 if (c >= 0xf1 && c <= 0xf6) return 1; in IsWord()
927 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
931 if (c >= 0xa1 && c <= 0xa3) return 1; in IsWord()
932 if (c == 0xa5 || c == 0xa6) return 1; in IsWord()
933 if (c >= 0xa9 && c <= 0xac) return 1; in IsWord()
934 if (c == 0xae) return 1; in IsWord()
935 if (c == 0xb1 || c == 0xb3) return 1; in IsWord()
936 if (c == 0xb5 || c == 0xb6) return 1; in IsWord()
937 if (c >= 0xb9 && c <= 0xbf) return 1; in IsWord()
938 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
939 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
940 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
944 if (c >= 0xa1 && c <= 0xcf && c != 0xad) return 1; in IsWord()
945 if (c >= 0xd0 && c <= 0xff && c != 0xf0 && c != 0xfd) return 1; in IsWord()
949 if (c >= 0xc1 && c <= 0xda) return 1; in IsWord()
950 if (c >= 0xe0 && c <= 0xea) return 1; in IsWord()
951 if (c >= 0xeb && c <= 0xf2) return 1; in IsWord()
955 if (c == 0xb2 || c == 0xb3) return 1; in IsWord()
956 if (c == 0xb6) return 1; in IsWord()
957 if (c >= 0xb8 && c <= 0xba) return 1; in IsWord()
958 if (c >= 0xbc && c <= 0xbf) return 1; in IsWord()
959 if (c == 0xc0) return 1; in IsWord()
960 if (c >= 0xc1 && c <= 0xdb && c != 0xd2) return 1; in IsWord()
961 if (c >= 0xdc && c <= 0xfe) return 1; in IsWord()
965 if (c == 0xb2 || c == 0xb3 || c == 0xb5 || c == 0xb9) return 1; in IsWord()
966 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
967 if (c >= 0xe0 && c <= 0xfa) return 1; in IsWord()
971 if (c >= 0xa1 && c <= 0xff) { in IsWord()
972 if (c != 0xa7 && c != 0xad && c != 0xb0 && c != 0xb7 && c != 0xbd) in IsWord()
978 if (c >= 0xa1 && c <= 0xda) return 1; in IsWord()
979 if (c >= 0xdf && c <= 0xfb) return 1; in IsWord()
983 if (c == 0xa8) return 1; in IsWord()
984 if (c == 0xaa) return 1; in IsWord()
985 if (c == 0xaf) return 1; in IsWord()
986 if (c == 0xb2 || c == 0xb3 || c == 0xb5 || c == 0xb9) return 1; in IsWord()
987 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
988 if (c == 0xb8) return 1; in IsWord()
989 if (c == 0xba) return 1; in IsWord()
990 if (c >= 0xbf && c <= 0xd6) return 1; in IsWord()
991 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
992 if (c >= 0xf8 && c <= 0xfe) return 1; in IsWord()
996 if (c >= 0xa1 && c <= 0xff) { in IsWord()
997 if (c == 0xa3 || c == 0xa7 || c == 0xa9 || c == 0xad || c == 0xae || in IsWord()
998 c == 0xb6) return 0; in IsWord()
1004 if (c == 0xaa) return 1; in IsWord()
1005 if (c >= 0xb2 && c <= 0xb3) return 1; in IsWord()
1006 if (c == 0xb5) return 1; in IsWord()
1007 if (c >= 0xb9 && c <= 0xba) return 1; in IsWord()
1008 if (c >= 0xbc && c <= 0xbe) return 1; in IsWord()
1009 if (c >= 0xc0 && c <= 0xd6) return 1; in IsWord()
1010 if (c >= 0xd8 && c <= 0xf6) return 1; in IsWord()
1011 if (c >= 0xf8 && c <= 0xff) return 1; in IsWord()
1012 if (c == 0xa6) return 1; in IsWord()
1013 if (c == 0xa8) return 1; in IsWord()
1014 if (c == 0xb4) return 1; in IsWord()
1015 if (c == 0xb8) return 1; in IsWord()
1019 if (c == 0xa1) return 1; in IsWord()
1020 if (c == 0xa2) return 1; in IsWord()
1021 if (c == 0xa3) return 1; in IsWord()
1022 if (c == 0xa6) return 1; in IsWord()
1023 if (c == 0xa8) return 1; in IsWord()
1024 if (c == 0xaa) return 1; in IsWord()
1025 if (c == 0xac) return 1; in IsWord()
1026 if (c == 0xae) return 1; in IsWord()
1027 if (c == 0xaf) return 1; in IsWord()
1028 if (c == 0xb2) return 1; in IsWord()
1029 if (c == 0xb3) return 1; in IsWord()
1030 if (c == 0xb4) return 1; in IsWord()
1031 if (c >= 0xb8 && c <= 0xba) return 1; in IsWord()
1032 if (c == 0xbc) return 1; in IsWord()
1033 if (c == 0xbd) return 1; in IsWord()
1034 if (c == 0xbe) return 1; in IsWord()
1035 if (c == 0xbf) return 1; in IsWord()
1036 if (c >= 0xc0 && c <= 0xde) return 1; in IsWord()
1037 if (c >= 0xdf && c <= 0xff) return 1; in IsWord()
1041 if (c == 0x9d) return 1; in IsWord()
1042 if (c == 0xa3 || c == 0xb3) return 1; in IsWord()
1045 if (c >= 0xc0 && c <= 0xff) return 1; in IsWord()
1055 static int IsAscii(int enc, int c) in IsAscii() argument
1057 if (c >= 0x00 && c <= 0x7f) return 1; in IsAscii()
1061 static int IsNewline(int enc, int c) in IsNewline() argument
1063 if (c == 0x0a) return 1; in IsNewline()
1071 int c, val, enc; in exec() local
1078 for (c = 0; c < 256; c++) { in exec()
1080 if (IsNewline(enc, c)) val |= ONIGENC_CTYPE_NEWLINE; in exec()
1081 if (IsAlpha (enc, c)) val |= ONIGENC_CTYPE_ALPHA; in exec()
1082 if (IsBlank (enc, c)) val |= ONIGENC_CTYPE_BLANK; in exec()
1083 if (IsCntrl (enc, c)) val |= ONIGENC_CTYPE_CNTRL; in exec()
1084 if (IsDigit (enc, c)) val |= ONIGENC_CTYPE_DIGIT; in exec()
1085 if (IsGraph (enc, c)) val |= ONIGENC_CTYPE_GRAPH; in exec()
1086 if (IsLower (enc, c)) val |= ONIGENC_CTYPE_LOWER; in exec()
1087 if (IsPrint (enc, c)) val |= ONIGENC_CTYPE_PRINT; in exec()
1088 if (IsPunct (enc, c)) val |= ONIGENC_CTYPE_PUNCT; in exec()
1089 if (IsSpace (enc, c)) val |= ONIGENC_CTYPE_SPACE; in exec()
1090 if (IsUpper (enc, c)) val |= ONIGENC_CTYPE_UPPER; in exec()
1091 if (IsXDigit(enc, c)) val |= ONIGENC_CTYPE_XDIGIT; in exec()
1092 if (IsWord (enc, c)) val |= ONIGENC_CTYPE_WORD; in exec()
1093 if (IsAscii (enc, c)) val |= ONIGENC_CTYPE_ASCII; in exec()
1095 if (c % NCOL == 0) fputs(" ", fp); in exec()
1097 if (c != 255) fputs(",", fp); in exec()
1098 if (c != 0 && c % NCOL == (NCOL-1)) in exec()