2 * xmlunicode.c: this module implements the Unicode character APIs
4 * This file is automatically generated from the
5 * UCS description files of the Unicode Character Database
6 * http://www.unicode.org/Public/3.1-Update/UnicodeCharacterDatabase-3.1.0.html
7 * using the genUnicode.py Python script.
9 * Generation date: Tue Apr 16 17:28:05 2002
10 * Sources: Blocks-4.txt UnicodeData-3.1.0.txt
11 * Daniel Veillard <veillard@redhat.com>
17 #ifdef LIBXML_UNICODE_ENABLED
20 #include <libxml/xmlversion.h>
21 #include <libxml/xmlunicode.h>
24 * xmlUCSIsAlphabeticPresentationForms:
25 * @code: UCS code point
27 * Check whether the character is part of AlphabeticPresentationForms UCS Block
29 * Returns 1 if true 0 otherwise
32 xmlUCSIsAlphabeticPresentationForms(int code) {
33 return((code >= 0xFB00) && (code <= 0xFB4F));
38 * @code: UCS code point
40 * Check whether the character is part of Arabic UCS Block
42 * Returns 1 if true 0 otherwise
45 xmlUCSIsArabic(int code) {
46 return((code >= 0x0600) && (code <= 0x06FF));
50 * xmlUCSIsArabicPresentationFormsA:
51 * @code: UCS code point
53 * Check whether the character is part of ArabicPresentationForms-A UCS Block
55 * Returns 1 if true 0 otherwise
58 xmlUCSIsArabicPresentationFormsA(int code) {
59 return((code >= 0xFB50) && (code <= 0xFDFF));
63 * xmlUCSIsArabicPresentationFormsB:
64 * @code: UCS code point
66 * Check whether the character is part of ArabicPresentationForms-B UCS Block
68 * Returns 1 if true 0 otherwise
71 xmlUCSIsArabicPresentationFormsB(int code) {
72 return((code >= 0xFE70) && (code <= 0xFEFE));
77 * @code: UCS code point
79 * Check whether the character is part of Armenian UCS Block
81 * Returns 1 if true 0 otherwise
84 xmlUCSIsArmenian(int code) {
85 return((code >= 0x0530) && (code <= 0x058F));
90 * @code: UCS code point
92 * Check whether the character is part of Arrows UCS Block
94 * Returns 1 if true 0 otherwise
97 xmlUCSIsArrows(int code) {
98 return((code >= 0x2190) && (code <= 0x21FF));
102 * xmlUCSIsBasicLatin:
103 * @code: UCS code point
105 * Check whether the character is part of BasicLatin UCS Block
107 * Returns 1 if true 0 otherwise
110 xmlUCSIsBasicLatin(int code) {
111 return((code >= 0x0000) && (code <= 0x007F));
116 * @code: UCS code point
118 * Check whether the character is part of Bengali UCS Block
120 * Returns 1 if true 0 otherwise
123 xmlUCSIsBengali(int code) {
124 return((code >= 0x0980) && (code <= 0x09FF));
128 * xmlUCSIsBlockElements:
129 * @code: UCS code point
131 * Check whether the character is part of BlockElements UCS Block
133 * Returns 1 if true 0 otherwise
136 xmlUCSIsBlockElements(int code) {
137 return((code >= 0x2580) && (code <= 0x259F));
142 * @code: UCS code point
144 * Check whether the character is part of Bopomofo UCS Block
146 * Returns 1 if true 0 otherwise
149 xmlUCSIsBopomofo(int code) {
150 return((code >= 0x3100) && (code <= 0x312F));
154 * xmlUCSIsBopomofoExtended:
155 * @code: UCS code point
157 * Check whether the character is part of BopomofoExtended UCS Block
159 * Returns 1 if true 0 otherwise
162 xmlUCSIsBopomofoExtended(int code) {
163 return((code >= 0x31A0) && (code <= 0x31BF));
167 * xmlUCSIsBoxDrawing:
168 * @code: UCS code point
170 * Check whether the character is part of BoxDrawing UCS Block
172 * Returns 1 if true 0 otherwise
175 xmlUCSIsBoxDrawing(int code) {
176 return((code >= 0x2500) && (code <= 0x257F));
180 * xmlUCSIsBraillePatterns:
181 * @code: UCS code point
183 * Check whether the character is part of BraillePatterns UCS Block
185 * Returns 1 if true 0 otherwise
188 xmlUCSIsBraillePatterns(int code) {
189 return((code >= 0x2800) && (code <= 0x28FF));
193 * xmlUCSIsByzantineMusicalSymbols:
194 * @code: UCS code point
196 * Check whether the character is part of ByzantineMusicalSymbols UCS Block
198 * Returns 1 if true 0 otherwise
201 xmlUCSIsByzantineMusicalSymbols(int code) {
202 return((code >= 0x1D000) && (code <= 0x1D0FF));
206 * xmlUCSIsCJKCompatibility:
207 * @code: UCS code point
209 * Check whether the character is part of CJKCompatibility UCS Block
211 * Returns 1 if true 0 otherwise
214 xmlUCSIsCJKCompatibility(int code) {
215 return((code >= 0x3300) && (code <= 0x33FF));
219 * xmlUCSIsCJKCompatibilityForms:
220 * @code: UCS code point
222 * Check whether the character is part of CJKCompatibilityForms UCS Block
224 * Returns 1 if true 0 otherwise
227 xmlUCSIsCJKCompatibilityForms(int code) {
228 return((code >= 0xFE30) && (code <= 0xFE4F));
232 * xmlUCSIsCJKCompatibilityIdeographs:
233 * @code: UCS code point
235 * Check whether the character is part of CJKCompatibilityIdeographs UCS Block
237 * Returns 1 if true 0 otherwise
240 xmlUCSIsCJKCompatibilityIdeographs(int code) {
241 return((code >= 0xF900) && (code <= 0xFAFF));
245 * xmlUCSIsCJKCompatibilityIdeographsSupplement:
246 * @code: UCS code point
248 * Check whether the character is part of CJKCompatibilityIdeographsSupplement UCS Block
250 * Returns 1 if true 0 otherwise
253 xmlUCSIsCJKCompatibilityIdeographsSupplement(int code) {
254 return((code >= 0x2F800) && (code <= 0x2FA1F));
258 * xmlUCSIsCJKRadicalsSupplement:
259 * @code: UCS code point
261 * Check whether the character is part of CJKRadicalsSupplement UCS Block
263 * Returns 1 if true 0 otherwise
266 xmlUCSIsCJKRadicalsSupplement(int code) {
267 return((code >= 0x2E80) && (code <= 0x2EFF));
271 * xmlUCSIsCJKSymbolsandPunctuation:
272 * @code: UCS code point
274 * Check whether the character is part of CJKSymbolsandPunctuation UCS Block
276 * Returns 1 if true 0 otherwise
279 xmlUCSIsCJKSymbolsandPunctuation(int code) {
280 return((code >= 0x3000) && (code <= 0x303F));
284 * xmlUCSIsCJKUnifiedIdeographs:
285 * @code: UCS code point
287 * Check whether the character is part of CJKUnifiedIdeographs UCS Block
289 * Returns 1 if true 0 otherwise
292 xmlUCSIsCJKUnifiedIdeographs(int code) {
293 return((code >= 0x4E00) && (code <= 0x9FFF));
297 * xmlUCSIsCJKUnifiedIdeographsExtensionA:
298 * @code: UCS code point
300 * Check whether the character is part of CJKUnifiedIdeographsExtensionA UCS Block
302 * Returns 1 if true 0 otherwise
305 xmlUCSIsCJKUnifiedIdeographsExtensionA(int code) {
306 return((code >= 0x3400) && (code <= 0x4DB5));
310 * xmlUCSIsCJKUnifiedIdeographsExtensionB:
311 * @code: UCS code point
313 * Check whether the character is part of CJKUnifiedIdeographsExtensionB UCS Block
315 * Returns 1 if true 0 otherwise
318 xmlUCSIsCJKUnifiedIdeographsExtensionB(int code) {
319 return((code >= 0x20000) && (code <= 0x2A6D6));
324 * @code: UCS code point
326 * Check whether the character is part of Cherokee UCS Block
328 * Returns 1 if true 0 otherwise
331 xmlUCSIsCherokee(int code) {
332 return((code >= 0x13A0) && (code <= 0x13FF));
336 * xmlUCSIsCombiningDiacriticalMarks:
337 * @code: UCS code point
339 * Check whether the character is part of CombiningDiacriticalMarks UCS Block
341 * Returns 1 if true 0 otherwise
344 xmlUCSIsCombiningDiacriticalMarks(int code) {
345 return((code >= 0x0300) && (code <= 0x036F));
349 * xmlUCSIsCombiningHalfMarks:
350 * @code: UCS code point
352 * Check whether the character is part of CombiningHalfMarks UCS Block
354 * Returns 1 if true 0 otherwise
357 xmlUCSIsCombiningHalfMarks(int code) {
358 return((code >= 0xFE20) && (code <= 0xFE2F));
362 * xmlUCSIsCombiningMarksforSymbols:
363 * @code: UCS code point
365 * Check whether the character is part of CombiningMarksforSymbols UCS Block
367 * Returns 1 if true 0 otherwise
370 xmlUCSIsCombiningMarksforSymbols(int code) {
371 return((code >= 0x20D0) && (code <= 0x20FF));
375 * xmlUCSIsControlPictures:
376 * @code: UCS code point
378 * Check whether the character is part of ControlPictures UCS Block
380 * Returns 1 if true 0 otherwise
383 xmlUCSIsControlPictures(int code) {
384 return((code >= 0x2400) && (code <= 0x243F));
388 * xmlUCSIsCurrencySymbols:
389 * @code: UCS code point
391 * Check whether the character is part of CurrencySymbols UCS Block
393 * Returns 1 if true 0 otherwise
396 xmlUCSIsCurrencySymbols(int code) {
397 return((code >= 0x20A0) && (code <= 0x20CF));
402 * @code: UCS code point
404 * Check whether the character is part of Cyrillic UCS Block
406 * Returns 1 if true 0 otherwise
409 xmlUCSIsCyrillic(int code) {
410 return((code >= 0x0400) && (code <= 0x04FF));
415 * @code: UCS code point
417 * Check whether the character is part of Deseret UCS Block
419 * Returns 1 if true 0 otherwise
422 xmlUCSIsDeseret(int code) {
423 return((code >= 0x10400) && (code <= 0x1044F));
427 * xmlUCSIsDevanagari:
428 * @code: UCS code point
430 * Check whether the character is part of Devanagari UCS Block
432 * Returns 1 if true 0 otherwise
435 xmlUCSIsDevanagari(int code) {
436 return((code >= 0x0900) && (code <= 0x097F));
441 * @code: UCS code point
443 * Check whether the character is part of Dingbats UCS Block
445 * Returns 1 if true 0 otherwise
448 xmlUCSIsDingbats(int code) {
449 return((code >= 0x2700) && (code <= 0x27BF));
453 * xmlUCSIsEnclosedAlphanumerics:
454 * @code: UCS code point
456 * Check whether the character is part of EnclosedAlphanumerics UCS Block
458 * Returns 1 if true 0 otherwise
461 xmlUCSIsEnclosedAlphanumerics(int code) {
462 return((code >= 0x2460) && (code <= 0x24FF));
466 * xmlUCSIsEnclosedCJKLettersandMonths:
467 * @code: UCS code point
469 * Check whether the character is part of EnclosedCJKLettersandMonths UCS Block
471 * Returns 1 if true 0 otherwise
474 xmlUCSIsEnclosedCJKLettersandMonths(int code) {
475 return((code >= 0x3200) && (code <= 0x32FF));
480 * @code: UCS code point
482 * Check whether the character is part of Ethiopic UCS Block
484 * Returns 1 if true 0 otherwise
487 xmlUCSIsEthiopic(int code) {
488 return((code >= 0x1200) && (code <= 0x137F));
492 * xmlUCSIsGeneralPunctuation:
493 * @code: UCS code point
495 * Check whether the character is part of GeneralPunctuation UCS Block
497 * Returns 1 if true 0 otherwise
500 xmlUCSIsGeneralPunctuation(int code) {
501 return((code >= 0x2000) && (code <= 0x206F));
505 * xmlUCSIsGeometricShapes:
506 * @code: UCS code point
508 * Check whether the character is part of GeometricShapes UCS Block
510 * Returns 1 if true 0 otherwise
513 xmlUCSIsGeometricShapes(int code) {
514 return((code >= 0x25A0) && (code <= 0x25FF));
519 * @code: UCS code point
521 * Check whether the character is part of Georgian UCS Block
523 * Returns 1 if true 0 otherwise
526 xmlUCSIsGeorgian(int code) {
527 return((code >= 0x10A0) && (code <= 0x10FF));
532 * @code: UCS code point
534 * Check whether the character is part of Gothic UCS Block
536 * Returns 1 if true 0 otherwise
539 xmlUCSIsGothic(int code) {
540 return((code >= 0x10330) && (code <= 0x1034F));
545 * @code: UCS code point
547 * Check whether the character is part of Greek UCS Block
549 * Returns 1 if true 0 otherwise
552 xmlUCSIsGreek(int code) {
553 return((code >= 0x0370) && (code <= 0x03FF));
557 * xmlUCSIsGreekExtended:
558 * @code: UCS code point
560 * Check whether the character is part of GreekExtended UCS Block
562 * Returns 1 if true 0 otherwise
565 xmlUCSIsGreekExtended(int code) {
566 return((code >= 0x1F00) && (code <= 0x1FFF));
571 * @code: UCS code point
573 * Check whether the character is part of Gujarati UCS Block
575 * Returns 1 if true 0 otherwise
578 xmlUCSIsGujarati(int code) {
579 return((code >= 0x0A80) && (code <= 0x0AFF));
584 * @code: UCS code point
586 * Check whether the character is part of Gurmukhi UCS Block
588 * Returns 1 if true 0 otherwise
591 xmlUCSIsGurmukhi(int code) {
592 return((code >= 0x0A00) && (code <= 0x0A7F));
596 * xmlUCSIsHalfwidthandFullwidthForms:
597 * @code: UCS code point
599 * Check whether the character is part of HalfwidthandFullwidthForms UCS Block
601 * Returns 1 if true 0 otherwise
604 xmlUCSIsHalfwidthandFullwidthForms(int code) {
605 return((code >= 0xFF00) && (code <= 0xFFEF));
609 * xmlUCSIsHangulCompatibilityJamo:
610 * @code: UCS code point
612 * Check whether the character is part of HangulCompatibilityJamo UCS Block
614 * Returns 1 if true 0 otherwise
617 xmlUCSIsHangulCompatibilityJamo(int code) {
618 return((code >= 0x3130) && (code <= 0x318F));
622 * xmlUCSIsHangulJamo:
623 * @code: UCS code point
625 * Check whether the character is part of HangulJamo UCS Block
627 * Returns 1 if true 0 otherwise
630 xmlUCSIsHangulJamo(int code) {
631 return((code >= 0x1100) && (code <= 0x11FF));
635 * xmlUCSIsHangulSyllables:
636 * @code: UCS code point
638 * Check whether the character is part of HangulSyllables UCS Block
640 * Returns 1 if true 0 otherwise
643 xmlUCSIsHangulSyllables(int code) {
644 return((code >= 0xAC00) && (code <= 0xD7A3));
649 * @code: UCS code point
651 * Check whether the character is part of Hebrew UCS Block
653 * Returns 1 if true 0 otherwise
656 xmlUCSIsHebrew(int code) {
657 return((code >= 0x0590) && (code <= 0x05FF));
661 * xmlUCSIsHighPrivateUseSurrogates:
662 * @code: UCS code point
664 * Check whether the character is part of HighPrivateUseSurrogates UCS Block
666 * Returns 1 if true 0 otherwise
669 xmlUCSIsHighPrivateUseSurrogates(int code) {
670 return((code >= 0xDB80) && (code <= 0xDBFF));
674 * xmlUCSIsHighSurrogates:
675 * @code: UCS code point
677 * Check whether the character is part of HighSurrogates UCS Block
679 * Returns 1 if true 0 otherwise
682 xmlUCSIsHighSurrogates(int code) {
683 return((code >= 0xD800) && (code <= 0xDB7F));
688 * @code: UCS code point
690 * Check whether the character is part of Hiragana UCS Block
692 * Returns 1 if true 0 otherwise
695 xmlUCSIsHiragana(int code) {
696 return((code >= 0x3040) && (code <= 0x309F));
700 * xmlUCSIsIPAExtensions:
701 * @code: UCS code point
703 * Check whether the character is part of IPAExtensions UCS Block
705 * Returns 1 if true 0 otherwise
708 xmlUCSIsIPAExtensions(int code) {
709 return((code >= 0x0250) && (code <= 0x02AF));
713 * xmlUCSIsIdeographicDescriptionCharacters:
714 * @code: UCS code point
716 * Check whether the character is part of IdeographicDescriptionCharacters UCS Block
718 * Returns 1 if true 0 otherwise
721 xmlUCSIsIdeographicDescriptionCharacters(int code) {
722 return((code >= 0x2FF0) && (code <= 0x2FFF));
727 * @code: UCS code point
729 * Check whether the character is part of Kanbun UCS Block
731 * Returns 1 if true 0 otherwise
734 xmlUCSIsKanbun(int code) {
735 return((code >= 0x3190) && (code <= 0x319F));
739 * xmlUCSIsKangxiRadicals:
740 * @code: UCS code point
742 * Check whether the character is part of KangxiRadicals UCS Block
744 * Returns 1 if true 0 otherwise
747 xmlUCSIsKangxiRadicals(int code) {
748 return((code >= 0x2F00) && (code <= 0x2FDF));
753 * @code: UCS code point
755 * Check whether the character is part of Kannada UCS Block
757 * Returns 1 if true 0 otherwise
760 xmlUCSIsKannada(int code) {
761 return((code >= 0x0C80) && (code <= 0x0CFF));
766 * @code: UCS code point
768 * Check whether the character is part of Katakana UCS Block
770 * Returns 1 if true 0 otherwise
773 xmlUCSIsKatakana(int code) {
774 return((code >= 0x30A0) && (code <= 0x30FF));
779 * @code: UCS code point
781 * Check whether the character is part of Khmer UCS Block
783 * Returns 1 if true 0 otherwise
786 xmlUCSIsKhmer(int code) {
787 return((code >= 0x1780) && (code <= 0x17FF));
792 * @code: UCS code point
794 * Check whether the character is part of Lao UCS Block
796 * Returns 1 if true 0 otherwise
799 xmlUCSIsLao(int code) {
800 return((code >= 0x0E80) && (code <= 0x0EFF));
804 * xmlUCSIsLatin1Supplement:
805 * @code: UCS code point
807 * Check whether the character is part of Latin-1Supplement UCS Block
809 * Returns 1 if true 0 otherwise
812 xmlUCSIsLatin1Supplement(int code) {
813 return((code >= 0x0080) && (code <= 0x00FF));
817 * xmlUCSIsLatinExtendedA:
818 * @code: UCS code point
820 * Check whether the character is part of LatinExtended-A UCS Block
822 * Returns 1 if true 0 otherwise
825 xmlUCSIsLatinExtendedA(int code) {
826 return((code >= 0x0100) && (code <= 0x017F));
830 * xmlUCSIsLatinExtendedB:
831 * @code: UCS code point
833 * Check whether the character is part of LatinExtended-B UCS Block
835 * Returns 1 if true 0 otherwise
838 xmlUCSIsLatinExtendedB(int code) {
839 return((code >= 0x0180) && (code <= 0x024F));
843 * xmlUCSIsLatinExtendedAdditional:
844 * @code: UCS code point
846 * Check whether the character is part of LatinExtendedAdditional UCS Block
848 * Returns 1 if true 0 otherwise
851 xmlUCSIsLatinExtendedAdditional(int code) {
852 return((code >= 0x1E00) && (code <= 0x1EFF));
856 * xmlUCSIsLetterlikeSymbols:
857 * @code: UCS code point
859 * Check whether the character is part of LetterlikeSymbols UCS Block
861 * Returns 1 if true 0 otherwise
864 xmlUCSIsLetterlikeSymbols(int code) {
865 return((code >= 0x2100) && (code <= 0x214F));
869 * xmlUCSIsLowSurrogates:
870 * @code: UCS code point
872 * Check whether the character is part of LowSurrogates UCS Block
874 * Returns 1 if true 0 otherwise
877 xmlUCSIsLowSurrogates(int code) {
878 return((code >= 0xDC00) && (code <= 0xDFFF));
883 * @code: UCS code point
885 * Check whether the character is part of Malayalam UCS Block
887 * Returns 1 if true 0 otherwise
890 xmlUCSIsMalayalam(int code) {
891 return((code >= 0x0D00) && (code <= 0x0D7F));
895 * xmlUCSIsMathematicalAlphanumericSymbols:
896 * @code: UCS code point
898 * Check whether the character is part of MathematicalAlphanumericSymbols UCS Block
900 * Returns 1 if true 0 otherwise
903 xmlUCSIsMathematicalAlphanumericSymbols(int code) {
904 return((code >= 0x1D400) && (code <= 0x1D7FF));
908 * xmlUCSIsMathematicalOperators:
909 * @code: UCS code point
911 * Check whether the character is part of MathematicalOperators UCS Block
913 * Returns 1 if true 0 otherwise
916 xmlUCSIsMathematicalOperators(int code) {
917 return((code >= 0x2200) && (code <= 0x22FF));
921 * xmlUCSIsMiscellaneousSymbols:
922 * @code: UCS code point
924 * Check whether the character is part of MiscellaneousSymbols UCS Block
926 * Returns 1 if true 0 otherwise
929 xmlUCSIsMiscellaneousSymbols(int code) {
930 return((code >= 0x2600) && (code <= 0x26FF));
934 * xmlUCSIsMiscellaneousTechnical:
935 * @code: UCS code point
937 * Check whether the character is part of MiscellaneousTechnical UCS Block
939 * Returns 1 if true 0 otherwise
942 xmlUCSIsMiscellaneousTechnical(int code) {
943 return((code >= 0x2300) && (code <= 0x23FF));
948 * @code: UCS code point
950 * Check whether the character is part of Mongolian UCS Block
952 * Returns 1 if true 0 otherwise
955 xmlUCSIsMongolian(int code) {
956 return((code >= 0x1800) && (code <= 0x18AF));
960 * xmlUCSIsMusicalSymbols:
961 * @code: UCS code point
963 * Check whether the character is part of MusicalSymbols UCS Block
965 * Returns 1 if true 0 otherwise
968 xmlUCSIsMusicalSymbols(int code) {
969 return((code >= 0x1D100) && (code <= 0x1D1FF));
974 * @code: UCS code point
976 * Check whether the character is part of Myanmar UCS Block
978 * Returns 1 if true 0 otherwise
981 xmlUCSIsMyanmar(int code) {
982 return((code >= 0x1000) && (code <= 0x109F));
986 * xmlUCSIsNumberForms:
987 * @code: UCS code point
989 * Check whether the character is part of NumberForms UCS Block
991 * Returns 1 if true 0 otherwise
994 xmlUCSIsNumberForms(int code) {
995 return((code >= 0x2150) && (code <= 0x218F));
1000 * @code: UCS code point
1002 * Check whether the character is part of Ogham UCS Block
1004 * Returns 1 if true 0 otherwise
1007 xmlUCSIsOgham(int code) {
1008 return((code >= 0x1680) && (code <= 0x169F));
1012 * xmlUCSIsOldItalic:
1013 * @code: UCS code point
1015 * Check whether the character is part of OldItalic UCS Block
1017 * Returns 1 if true 0 otherwise
1020 xmlUCSIsOldItalic(int code) {
1021 return((code >= 0x10300) && (code <= 0x1032F));
1025 * xmlUCSIsOpticalCharacterRecognition:
1026 * @code: UCS code point
1028 * Check whether the character is part of OpticalCharacterRecognition UCS Block
1030 * Returns 1 if true 0 otherwise
1033 xmlUCSIsOpticalCharacterRecognition(int code) {
1034 return((code >= 0x2440) && (code <= 0x245F));
1039 * @code: UCS code point
1041 * Check whether the character is part of Oriya UCS Block
1043 * Returns 1 if true 0 otherwise
1046 xmlUCSIsOriya(int code) {
1047 return((code >= 0x0B00) && (code <= 0x0B7F));
1051 * xmlUCSIsPrivateUse:
1052 * @code: UCS code point
1054 * Check whether the character is part of PrivateUse UCS Block
1056 * Returns 1 if true 0 otherwise
1059 xmlUCSIsPrivateUse(int code) {
1060 return((code >= 0x100000) && (code <= 0x10FFFD));
1065 * @code: UCS code point
1067 * Check whether the character is part of Runic UCS Block
1069 * Returns 1 if true 0 otherwise
1072 xmlUCSIsRunic(int code) {
1073 return((code >= 0x16A0) && (code <= 0x16FF));
1078 * @code: UCS code point
1080 * Check whether the character is part of Sinhala UCS Block
1082 * Returns 1 if true 0 otherwise
1085 xmlUCSIsSinhala(int code) {
1086 return((code >= 0x0D80) && (code <= 0x0DFF));
1090 * xmlUCSIsSmallFormVariants:
1091 * @code: UCS code point
1093 * Check whether the character is part of SmallFormVariants UCS Block
1095 * Returns 1 if true 0 otherwise
1098 xmlUCSIsSmallFormVariants(int code) {
1099 return((code >= 0xFE50) && (code <= 0xFE6F));
1103 * xmlUCSIsSpacingModifierLetters:
1104 * @code: UCS code point
1106 * Check whether the character is part of SpacingModifierLetters UCS Block
1108 * Returns 1 if true 0 otherwise
1111 xmlUCSIsSpacingModifierLetters(int code) {
1112 return((code >= 0x02B0) && (code <= 0x02FF));
1117 * @code: UCS code point
1119 * Check whether the character is part of Specials UCS Block
1121 * Returns 1 if true 0 otherwise
1124 xmlUCSIsSpecials(int code) {
1125 return((code >= 0xFFF0) && (code <= 0xFFFD));
1129 * xmlUCSIsSuperscriptsandSubscripts:
1130 * @code: UCS code point
1132 * Check whether the character is part of SuperscriptsandSubscripts UCS Block
1134 * Returns 1 if true 0 otherwise
1137 xmlUCSIsSuperscriptsandSubscripts(int code) {
1138 return((code >= 0x2070) && (code <= 0x209F));
1143 * @code: UCS code point
1145 * Check whether the character is part of Syriac UCS Block
1147 * Returns 1 if true 0 otherwise
1150 xmlUCSIsSyriac(int code) {
1151 return((code >= 0x0700) && (code <= 0x074F));
1156 * @code: UCS code point
1158 * Check whether the character is part of Tags UCS Block
1160 * Returns 1 if true 0 otherwise
1163 xmlUCSIsTags(int code) {
1164 return((code >= 0xE0000) && (code <= 0xE007F));
1169 * @code: UCS code point
1171 * Check whether the character is part of Tamil UCS Block
1173 * Returns 1 if true 0 otherwise
1176 xmlUCSIsTamil(int code) {
1177 return((code >= 0x0B80) && (code <= 0x0BFF));
1182 * @code: UCS code point
1184 * Check whether the character is part of Telugu UCS Block
1186 * Returns 1 if true 0 otherwise
1189 xmlUCSIsTelugu(int code) {
1190 return((code >= 0x0C00) && (code <= 0x0C7F));
1195 * @code: UCS code point
1197 * Check whether the character is part of Thaana UCS Block
1199 * Returns 1 if true 0 otherwise
1202 xmlUCSIsThaana(int code) {
1203 return((code >= 0x0780) && (code <= 0x07BF));
1208 * @code: UCS code point
1210 * Check whether the character is part of Thai UCS Block
1212 * Returns 1 if true 0 otherwise
1215 xmlUCSIsThai(int code) {
1216 return((code >= 0x0E00) && (code <= 0x0E7F));
1221 * @code: UCS code point
1223 * Check whether the character is part of Tibetan UCS Block
1225 * Returns 1 if true 0 otherwise
1228 xmlUCSIsTibetan(int code) {
1229 return((code >= 0x0F00) && (code <= 0x0FFF));
1233 * xmlUCSIsUnifiedCanadianAboriginalSyllabics:
1234 * @code: UCS code point
1236 * Check whether the character is part of UnifiedCanadianAboriginalSyllabics UCS Block
1238 * Returns 1 if true 0 otherwise
1241 xmlUCSIsUnifiedCanadianAboriginalSyllabics(int code) {
1242 return((code >= 0x1400) && (code <= 0x167F));
1246 * xmlUCSIsYiRadicals:
1247 * @code: UCS code point
1249 * Check whether the character is part of YiRadicals UCS Block
1251 * Returns 1 if true 0 otherwise
1254 xmlUCSIsYiRadicals(int code) {
1255 return((code >= 0xA490) && (code <= 0xA4CF));
1259 * xmlUCSIsYiSyllables:
1260 * @code: UCS code point
1262 * Check whether the character is part of YiSyllables UCS Block
1264 * Returns 1 if true 0 otherwise
1267 xmlUCSIsYiSyllables(int code) {
1268 return((code >= 0xA000) && (code <= 0xA48F));
1273 * @code: UCS code point
1274 * @block: UCS block name
1276 * Check whether the caracter is part of the UCS Block
1278 * Returns 1 if true, 0 if false and -1 on unknown block
1281 xmlUCSIsBlock(int code, const char *block) {
1282 if (!strcmp(block, "AlphabeticPresentationForms"))
1283 return(xmlUCSIsAlphabeticPresentationForms(code));
1284 if (!strcmp(block, "Arabic"))
1285 return(xmlUCSIsArabic(code));
1286 if (!strcmp(block, "ArabicPresentationForms-A"))
1287 return(xmlUCSIsArabicPresentationFormsA(code));
1288 if (!strcmp(block, "ArabicPresentationForms-B"))
1289 return(xmlUCSIsArabicPresentationFormsB(code));
1290 if (!strcmp(block, "Armenian"))
1291 return(xmlUCSIsArmenian(code));
1292 if (!strcmp(block, "Arrows"))
1293 return(xmlUCSIsArrows(code));
1294 if (!strcmp(block, "BasicLatin"))
1295 return(xmlUCSIsBasicLatin(code));
1296 if (!strcmp(block, "Bengali"))
1297 return(xmlUCSIsBengali(code));
1298 if (!strcmp(block, "BlockElements"))
1299 return(xmlUCSIsBlockElements(code));
1300 if (!strcmp(block, "Bopomofo"))
1301 return(xmlUCSIsBopomofo(code));
1302 if (!strcmp(block, "BopomofoExtended"))
1303 return(xmlUCSIsBopomofoExtended(code));
1304 if (!strcmp(block, "BoxDrawing"))
1305 return(xmlUCSIsBoxDrawing(code));
1306 if (!strcmp(block, "BraillePatterns"))
1307 return(xmlUCSIsBraillePatterns(code));
1308 if (!strcmp(block, "ByzantineMusicalSymbols"))
1309 return(xmlUCSIsByzantineMusicalSymbols(code));
1310 if (!strcmp(block, "CJKCompatibility"))
1311 return(xmlUCSIsCJKCompatibility(code));
1312 if (!strcmp(block, "CJKCompatibilityForms"))
1313 return(xmlUCSIsCJKCompatibilityForms(code));
1314 if (!strcmp(block, "CJKCompatibilityIdeographs"))
1315 return(xmlUCSIsCJKCompatibilityIdeographs(code));
1316 if (!strcmp(block, "CJKCompatibilityIdeographsSupplement"))
1317 return(xmlUCSIsCJKCompatibilityIdeographsSupplement(code));
1318 if (!strcmp(block, "CJKRadicalsSupplement"))
1319 return(xmlUCSIsCJKRadicalsSupplement(code));
1320 if (!strcmp(block, "CJKSymbolsandPunctuation"))
1321 return(xmlUCSIsCJKSymbolsandPunctuation(code));
1322 if (!strcmp(block, "CJKUnifiedIdeographs"))
1323 return(xmlUCSIsCJKUnifiedIdeographs(code));
1324 if (!strcmp(block, "CJKUnifiedIdeographsExtensionA"))
1325 return(xmlUCSIsCJKUnifiedIdeographsExtensionA(code));
1326 if (!strcmp(block, "CJKUnifiedIdeographsExtensionB"))
1327 return(xmlUCSIsCJKUnifiedIdeographsExtensionB(code));
1328 if (!strcmp(block, "Cherokee"))
1329 return(xmlUCSIsCherokee(code));
1330 if (!strcmp(block, "CombiningDiacriticalMarks"))
1331 return(xmlUCSIsCombiningDiacriticalMarks(code));
1332 if (!strcmp(block, "CombiningHalfMarks"))
1333 return(xmlUCSIsCombiningHalfMarks(code));
1334 if (!strcmp(block, "CombiningMarksforSymbols"))
1335 return(xmlUCSIsCombiningMarksforSymbols(code));
1336 if (!strcmp(block, "ControlPictures"))
1337 return(xmlUCSIsControlPictures(code));
1338 if (!strcmp(block, "CurrencySymbols"))
1339 return(xmlUCSIsCurrencySymbols(code));
1340 if (!strcmp(block, "Cyrillic"))
1341 return(xmlUCSIsCyrillic(code));
1342 if (!strcmp(block, "Deseret"))
1343 return(xmlUCSIsDeseret(code));
1344 if (!strcmp(block, "Devanagari"))
1345 return(xmlUCSIsDevanagari(code));
1346 if (!strcmp(block, "Dingbats"))
1347 return(xmlUCSIsDingbats(code));
1348 if (!strcmp(block, "EnclosedAlphanumerics"))
1349 return(xmlUCSIsEnclosedAlphanumerics(code));
1350 if (!strcmp(block, "EnclosedCJKLettersandMonths"))
1351 return(xmlUCSIsEnclosedCJKLettersandMonths(code));
1352 if (!strcmp(block, "Ethiopic"))
1353 return(xmlUCSIsEthiopic(code));
1354 if (!strcmp(block, "GeneralPunctuation"))
1355 return(xmlUCSIsGeneralPunctuation(code));
1356 if (!strcmp(block, "GeometricShapes"))
1357 return(xmlUCSIsGeometricShapes(code));
1358 if (!strcmp(block, "Georgian"))
1359 return(xmlUCSIsGeorgian(code));
1360 if (!strcmp(block, "Gothic"))
1361 return(xmlUCSIsGothic(code));
1362 if (!strcmp(block, "Greek"))
1363 return(xmlUCSIsGreek(code));
1364 if (!strcmp(block, "GreekExtended"))
1365 return(xmlUCSIsGreekExtended(code));
1366 if (!strcmp(block, "Gujarati"))
1367 return(xmlUCSIsGujarati(code));
1368 if (!strcmp(block, "Gurmukhi"))
1369 return(xmlUCSIsGurmukhi(code));
1370 if (!strcmp(block, "HalfwidthandFullwidthForms"))
1371 return(xmlUCSIsHalfwidthandFullwidthForms(code));
1372 if (!strcmp(block, "HangulCompatibilityJamo"))
1373 return(xmlUCSIsHangulCompatibilityJamo(code));
1374 if (!strcmp(block, "HangulJamo"))
1375 return(xmlUCSIsHangulJamo(code));
1376 if (!strcmp(block, "HangulSyllables"))
1377 return(xmlUCSIsHangulSyllables(code));
1378 if (!strcmp(block, "Hebrew"))
1379 return(xmlUCSIsHebrew(code));
1380 if (!strcmp(block, "HighPrivateUseSurrogates"))
1381 return(xmlUCSIsHighPrivateUseSurrogates(code));
1382 if (!strcmp(block, "HighSurrogates"))
1383 return(xmlUCSIsHighSurrogates(code));
1384 if (!strcmp(block, "Hiragana"))
1385 return(xmlUCSIsHiragana(code));
1386 if (!strcmp(block, "IPAExtensions"))
1387 return(xmlUCSIsIPAExtensions(code));
1388 if (!strcmp(block, "IdeographicDescriptionCharacters"))
1389 return(xmlUCSIsIdeographicDescriptionCharacters(code));
1390 if (!strcmp(block, "Kanbun"))
1391 return(xmlUCSIsKanbun(code));
1392 if (!strcmp(block, "KangxiRadicals"))
1393 return(xmlUCSIsKangxiRadicals(code));
1394 if (!strcmp(block, "Kannada"))
1395 return(xmlUCSIsKannada(code));
1396 if (!strcmp(block, "Katakana"))
1397 return(xmlUCSIsKatakana(code));
1398 if (!strcmp(block, "Khmer"))
1399 return(xmlUCSIsKhmer(code));
1400 if (!strcmp(block, "Lao"))
1401 return(xmlUCSIsLao(code));
1402 if (!strcmp(block, "Latin-1Supplement"))
1403 return(xmlUCSIsLatin1Supplement(code));
1404 if (!strcmp(block, "LatinExtended-A"))
1405 return(xmlUCSIsLatinExtendedA(code));
1406 if (!strcmp(block, "LatinExtended-B"))
1407 return(xmlUCSIsLatinExtendedB(code));
1408 if (!strcmp(block, "LatinExtendedAdditional"))
1409 return(xmlUCSIsLatinExtendedAdditional(code));
1410 if (!strcmp(block, "LetterlikeSymbols"))
1411 return(xmlUCSIsLetterlikeSymbols(code));
1412 if (!strcmp(block, "LowSurrogates"))
1413 return(xmlUCSIsLowSurrogates(code));
1414 if (!strcmp(block, "Malayalam"))
1415 return(xmlUCSIsMalayalam(code));
1416 if (!strcmp(block, "MathematicalAlphanumericSymbols"))
1417 return(xmlUCSIsMathematicalAlphanumericSymbols(code));
1418 if (!strcmp(block, "MathematicalOperators"))
1419 return(xmlUCSIsMathematicalOperators(code));
1420 if (!strcmp(block, "MiscellaneousSymbols"))
1421 return(xmlUCSIsMiscellaneousSymbols(code));
1422 if (!strcmp(block, "MiscellaneousTechnical"))
1423 return(xmlUCSIsMiscellaneousTechnical(code));
1424 if (!strcmp(block, "Mongolian"))
1425 return(xmlUCSIsMongolian(code));
1426 if (!strcmp(block, "MusicalSymbols"))
1427 return(xmlUCSIsMusicalSymbols(code));
1428 if (!strcmp(block, "Myanmar"))
1429 return(xmlUCSIsMyanmar(code));
1430 if (!strcmp(block, "NumberForms"))
1431 return(xmlUCSIsNumberForms(code));
1432 if (!strcmp(block, "Ogham"))
1433 return(xmlUCSIsOgham(code));
1434 if (!strcmp(block, "OldItalic"))
1435 return(xmlUCSIsOldItalic(code));
1436 if (!strcmp(block, "OpticalCharacterRecognition"))
1437 return(xmlUCSIsOpticalCharacterRecognition(code));
1438 if (!strcmp(block, "Oriya"))
1439 return(xmlUCSIsOriya(code));
1440 if (!strcmp(block, "PrivateUse"))
1441 return(xmlUCSIsPrivateUse(code));
1442 if (!strcmp(block, "Runic"))
1443 return(xmlUCSIsRunic(code));
1444 if (!strcmp(block, "Sinhala"))
1445 return(xmlUCSIsSinhala(code));
1446 if (!strcmp(block, "SmallFormVariants"))
1447 return(xmlUCSIsSmallFormVariants(code));
1448 if (!strcmp(block, "SpacingModifierLetters"))
1449 return(xmlUCSIsSpacingModifierLetters(code));
1450 if (!strcmp(block, "Specials"))
1451 return(xmlUCSIsSpecials(code));
1452 if (!strcmp(block, "SuperscriptsandSubscripts"))
1453 return(xmlUCSIsSuperscriptsandSubscripts(code));
1454 if (!strcmp(block, "Syriac"))
1455 return(xmlUCSIsSyriac(code));
1456 if (!strcmp(block, "Tags"))
1457 return(xmlUCSIsTags(code));
1458 if (!strcmp(block, "Tamil"))
1459 return(xmlUCSIsTamil(code));
1460 if (!strcmp(block, "Telugu"))
1461 return(xmlUCSIsTelugu(code));
1462 if (!strcmp(block, "Thaana"))
1463 return(xmlUCSIsThaana(code));
1464 if (!strcmp(block, "Thai"))
1465 return(xmlUCSIsThai(code));
1466 if (!strcmp(block, "Tibetan"))
1467 return(xmlUCSIsTibetan(code));
1468 if (!strcmp(block, "UnifiedCanadianAboriginalSyllabics"))
1469 return(xmlUCSIsUnifiedCanadianAboriginalSyllabics(code));
1470 if (!strcmp(block, "YiRadicals"))
1471 return(xmlUCSIsYiRadicals(code));
1472 if (!strcmp(block, "YiSyllables"))
1473 return(xmlUCSIsYiSyllables(code));
1479 * @code: UCS code point
1481 * Check whether the character is part of C UCS Category
1483 * Returns 1 if true 0 otherwise
1486 xmlUCSIsCatC(int code) {
1487 return(((code >= 0x0) && (code <= 0x1f)) ||
1488 ((code >= 0x7f) && (code <= 0x9f)) ||
1490 ((code >= 0x180b) && (code <= 0x180e)) ||
1491 ((code >= 0x200c) && (code <= 0x200f)) ||
1492 ((code >= 0x202a) && (code <= 0x202e)) ||
1493 ((code >= 0x206a) && (code <= 0x206f)) ||
1495 ((code >= 0xdb7f) && (code <= 0xdb80)) ||
1496 ((code >= 0xdbff) && (code <= 0xdc00)) ||
1497 ((code >= 0xdfff) && (code <= 0xe000)) ||
1500 ((code >= 0xfff9) && (code <= 0xfffb)) ||
1501 ((code >= 0x1d173) && (code <= 0x1d17a)) ||
1502 (code == 0xe0001) ||
1503 ((code >= 0xe0020) && (code <= 0xe007f)) ||
1504 (code == 0xf0000) ||
1505 (code == 0xffffd) ||
1506 (code == 0x100000) ||
1507 (code == 0x10fffd));
1512 * @code: UCS code point
1514 * Check whether the character is part of Cc UCS Category
1516 * Returns 1 if true 0 otherwise
1519 xmlUCSIsCatCc(int code) {
1520 return(((code >= 0x0) && (code <= 0x1f)) ||
1521 ((code >= 0x7f) && (code <= 0x9f)));
1526 * @code: UCS code point
1528 * Check whether the character is part of Cf UCS Category
1530 * Returns 1 if true 0 otherwise
1533 xmlUCSIsCatCf(int code) {
1534 return((code == 0x70f) ||
1535 ((code >= 0x180b) && (code <= 0x180e)) ||
1536 ((code >= 0x200c) && (code <= 0x200f)) ||
1537 ((code >= 0x202a) && (code <= 0x202e)) ||
1538 ((code >= 0x206a) && (code <= 0x206f)) ||
1540 ((code >= 0xfff9) && (code <= 0xfffb)) ||
1541 ((code >= 0x1d173) && (code <= 0x1d17a)) ||
1542 (code == 0xe0001) ||
1543 ((code >= 0xe0020) && (code <= 0xe007f)));
1548 * @code: UCS code point
1550 * Check whether the character is part of Co UCS Category
1552 * Returns 1 if true 0 otherwise
1555 xmlUCSIsCatCo(int code) {
1556 return((code == 0xe000) ||
1558 (code == 0xf0000) ||
1559 (code == 0xffffd) ||
1560 (code == 0x100000) ||
1561 (code == 0x10fffd));
1566 * @code: UCS code point
1568 * Check whether the character is part of Cs UCS Category
1570 * Returns 1 if true 0 otherwise
1573 xmlUCSIsCatCs(int code) {
1574 return((code == 0xd800) ||
1575 ((code >= 0xdb7f) && (code <= 0xdb80)) ||
1576 ((code >= 0xdbff) && (code <= 0xdc00)) ||
1582 * @code: UCS code point
1584 * Check whether the character is part of L UCS Category
1586 * Returns 1 if true 0 otherwise
1589 xmlUCSIsCatL(int code) {
1590 return(((code >= 0x41) && (code <= 0x5a)) ||
1591 ((code >= 0x61) && (code <= 0x7a)) ||
1595 ((code >= 0xc0) && (code <= 0xd6)) ||
1596 ((code >= 0xd8) && (code <= 0xf6)) ||
1597 ((code >= 0xf8) && (code <= 0x21f)) ||
1598 ((code >= 0x222) && (code <= 0x233)) ||
1599 ((code >= 0x250) && (code <= 0x2ad)) ||
1600 ((code >= 0x2b0) && (code <= 0x2b8)) ||
1601 ((code >= 0x2bb) && (code <= 0x2c1)) ||
1602 ((code >= 0x2d0) && (code <= 0x2d1)) ||
1603 ((code >= 0x2e0) && (code <= 0x2e4)) ||
1607 ((code >= 0x388) && (code <= 0x38a)) ||
1609 ((code >= 0x38e) && (code <= 0x3a1)) ||
1610 ((code >= 0x3a3) && (code <= 0x3ce)) ||
1611 ((code >= 0x3d0) && (code <= 0x3d7)) ||
1612 ((code >= 0x3da) && (code <= 0x3f5)) ||
1613 ((code >= 0x400) && (code <= 0x481)) ||
1614 ((code >= 0x48c) && (code <= 0x4c4)) ||
1615 ((code >= 0x4c7) && (code <= 0x4c8)) ||
1616 ((code >= 0x4cb) && (code <= 0x4cc)) ||
1617 ((code >= 0x4d0) && (code <= 0x4f5)) ||
1618 ((code >= 0x4f8) && (code <= 0x4f9)) ||
1619 ((code >= 0x531) && (code <= 0x556)) ||
1621 ((code >= 0x561) && (code <= 0x587)) ||
1622 ((code >= 0x5d0) && (code <= 0x5ea)) ||
1623 ((code >= 0x5f0) && (code <= 0x5f2)) ||
1624 ((code >= 0x621) && (code <= 0x63a)) ||
1625 ((code >= 0x640) && (code <= 0x64a)) ||
1626 ((code >= 0x671) && (code <= 0x6d3)) ||
1628 ((code >= 0x6e5) && (code <= 0x6e6)) ||
1629 ((code >= 0x6fa) && (code <= 0x6fc)) ||
1631 ((code >= 0x712) && (code <= 0x72c)) ||
1632 ((code >= 0x780) && (code <= 0x7a5)) ||
1633 ((code >= 0x905) && (code <= 0x939)) ||
1636 ((code >= 0x958) && (code <= 0x961)) ||
1637 ((code >= 0x985) && (code <= 0x98c)) ||
1638 ((code >= 0x98f) && (code <= 0x990)) ||
1639 ((code >= 0x993) && (code <= 0x9a8)) ||
1640 ((code >= 0x9aa) && (code <= 0x9b0)) ||
1642 ((code >= 0x9b6) && (code <= 0x9b9)) ||
1643 ((code >= 0x9dc) && (code <= 0x9dd)) ||
1644 ((code >= 0x9df) && (code <= 0x9e1)) ||
1645 ((code >= 0x9f0) && (code <= 0x9f1)) ||
1646 ((code >= 0xa05) && (code <= 0xa0a)) ||
1647 ((code >= 0xa0f) && (code <= 0xa10)) ||
1648 ((code >= 0xa13) && (code <= 0xa28)) ||
1649 ((code >= 0xa2a) && (code <= 0xa30)) ||
1650 ((code >= 0xa32) && (code <= 0xa33)) ||
1651 ((code >= 0xa35) && (code <= 0xa36)) ||
1652 ((code >= 0xa38) && (code <= 0xa39)) ||
1653 ((code >= 0xa59) && (code <= 0xa5c)) ||
1655 ((code >= 0xa72) && (code <= 0xa74)) ||
1656 ((code >= 0xa85) && (code <= 0xa8b)) ||
1658 ((code >= 0xa8f) && (code <= 0xa91)) ||
1659 ((code >= 0xa93) && (code <= 0xaa8)) ||
1660 ((code >= 0xaaa) && (code <= 0xab0)) ||
1661 ((code >= 0xab2) && (code <= 0xab3)) ||
1662 ((code >= 0xab5) && (code <= 0xab9)) ||
1666 ((code >= 0xb05) && (code <= 0xb0c)) ||
1667 ((code >= 0xb0f) && (code <= 0xb10)) ||
1668 ((code >= 0xb13) && (code <= 0xb28)) ||
1669 ((code >= 0xb2a) && (code <= 0xb30)) ||
1670 ((code >= 0xb32) && (code <= 0xb33)) ||
1671 ((code >= 0xb36) && (code <= 0xb39)) ||
1673 ((code >= 0xb5c) && (code <= 0xb5d)) ||
1674 ((code >= 0xb5f) && (code <= 0xb61)) ||
1675 ((code >= 0xb85) && (code <= 0xb8a)) ||
1676 ((code >= 0xb8e) && (code <= 0xb90)) ||
1677 ((code >= 0xb92) && (code <= 0xb95)) ||
1678 ((code >= 0xb99) && (code <= 0xb9a)) ||
1680 ((code >= 0xb9e) && (code <= 0xb9f)) ||
1681 ((code >= 0xba3) && (code <= 0xba4)) ||
1682 ((code >= 0xba8) && (code <= 0xbaa)) ||
1683 ((code >= 0xbae) && (code <= 0xbb5)) ||
1684 ((code >= 0xbb7) && (code <= 0xbb9)) ||
1685 ((code >= 0xc05) && (code <= 0xc0c)) ||
1686 ((code >= 0xc0e) && (code <= 0xc10)) ||
1687 ((code >= 0xc12) && (code <= 0xc28)) ||
1688 ((code >= 0xc2a) && (code <= 0xc33)) ||
1689 ((code >= 0xc35) && (code <= 0xc39)) ||
1690 ((code >= 0xc60) && (code <= 0xc61)) ||
1691 ((code >= 0xc85) && (code <= 0xc8c)) ||
1692 ((code >= 0xc8e) && (code <= 0xc90)) ||
1693 ((code >= 0xc92) && (code <= 0xca8)) ||
1694 ((code >= 0xcaa) && (code <= 0xcb3)) ||
1695 ((code >= 0xcb5) && (code <= 0xcb9)) ||
1697 ((code >= 0xce0) && (code <= 0xce1)) ||
1698 ((code >= 0xd05) && (code <= 0xd0c)) ||
1699 ((code >= 0xd0e) && (code <= 0xd10)) ||
1700 ((code >= 0xd12) && (code <= 0xd28)) ||
1701 ((code >= 0xd2a) && (code <= 0xd39)) ||
1702 ((code >= 0xd60) && (code <= 0xd61)) ||
1703 ((code >= 0xd85) && (code <= 0xd96)) ||
1704 ((code >= 0xd9a) && (code <= 0xdb1)) ||
1705 ((code >= 0xdb3) && (code <= 0xdbb)) ||
1707 ((code >= 0xdc0) && (code <= 0xdc6)) ||
1708 ((code >= 0xe01) && (code <= 0xe30)) ||
1709 ((code >= 0xe32) && (code <= 0xe33)) ||
1710 ((code >= 0xe40) && (code <= 0xe46)) ||
1711 ((code >= 0xe81) && (code <= 0xe82)) ||
1713 ((code >= 0xe87) && (code <= 0xe88)) ||
1716 ((code >= 0xe94) && (code <= 0xe97)) ||
1717 ((code >= 0xe99) && (code <= 0xe9f)) ||
1718 ((code >= 0xea1) && (code <= 0xea3)) ||
1721 ((code >= 0xeaa) && (code <= 0xeab)) ||
1722 ((code >= 0xead) && (code <= 0xeb0)) ||
1723 ((code >= 0xeb2) && (code <= 0xeb3)) ||
1725 ((code >= 0xec0) && (code <= 0xec4)) ||
1727 ((code >= 0xedc) && (code <= 0xedd)) ||
1729 ((code >= 0xf40) && (code <= 0xf47)) ||
1730 ((code >= 0xf49) && (code <= 0xf6a)) ||
1731 ((code >= 0xf88) && (code <= 0xf8b)) ||
1732 ((code >= 0x1000) && (code <= 0x1021)) ||
1733 ((code >= 0x1023) && (code <= 0x1027)) ||
1734 ((code >= 0x1029) && (code <= 0x102a)) ||
1735 ((code >= 0x1050) && (code <= 0x1055)) ||
1736 ((code >= 0x10a0) && (code <= 0x10c5)) ||
1737 ((code >= 0x10d0) && (code <= 0x10f6)) ||
1738 ((code >= 0x1100) && (code <= 0x1159)) ||
1739 ((code >= 0x115f) && (code <= 0x11a2)) ||
1740 ((code >= 0x11a8) && (code <= 0x11f9)) ||
1741 ((code >= 0x1200) && (code <= 0x1206)) ||
1742 ((code >= 0x1208) && (code <= 0x1246)) ||
1744 ((code >= 0x124a) && (code <= 0x124d)) ||
1745 ((code >= 0x1250) && (code <= 0x1256)) ||
1747 ((code >= 0x125a) && (code <= 0x125d)) ||
1748 ((code >= 0x1260) && (code <= 0x1286)) ||
1750 ((code >= 0x128a) && (code <= 0x128d)) ||
1751 ((code >= 0x1290) && (code <= 0x12ae)) ||
1753 ((code >= 0x12b2) && (code <= 0x12b5)) ||
1754 ((code >= 0x12b8) && (code <= 0x12be)) ||
1756 ((code >= 0x12c2) && (code <= 0x12c5)) ||
1757 ((code >= 0x12c8) && (code <= 0x12ce)) ||
1758 ((code >= 0x12d0) && (code <= 0x12d6)) ||
1759 ((code >= 0x12d8) && (code <= 0x12ee)) ||
1760 ((code >= 0x12f0) && (code <= 0x130e)) ||
1762 ((code >= 0x1312) && (code <= 0x1315)) ||
1763 ((code >= 0x1318) && (code <= 0x131e)) ||
1764 ((code >= 0x1320) && (code <= 0x1346)) ||
1765 ((code >= 0x1348) && (code <= 0x135a)) ||
1766 ((code >= 0x13a0) && (code <= 0x13f4)) ||
1767 ((code >= 0x1401) && (code <= 0x166c)) ||
1768 ((code >= 0x166f) && (code <= 0x1676)) ||
1769 ((code >= 0x1681) && (code <= 0x169a)) ||
1770 ((code >= 0x16a0) && (code <= 0x16ea)) ||
1771 ((code >= 0x1780) && (code <= 0x17b3)) ||
1772 ((code >= 0x1820) && (code <= 0x1877)) ||
1773 ((code >= 0x1880) && (code <= 0x18a8)) ||
1774 ((code >= 0x1e00) && (code <= 0x1e9b)) ||
1775 ((code >= 0x1ea0) && (code <= 0x1ef9)) ||
1776 ((code >= 0x1f00) && (code <= 0x1f15)) ||
1777 ((code >= 0x1f18) && (code <= 0x1f1d)) ||
1778 ((code >= 0x1f20) && (code <= 0x1f45)) ||
1779 ((code >= 0x1f48) && (code <= 0x1f4d)) ||
1780 ((code >= 0x1f50) && (code <= 0x1f57)) ||
1784 ((code >= 0x1f5f) && (code <= 0x1f7d)) ||
1785 ((code >= 0x1f80) && (code <= 0x1fb4)) ||
1786 ((code >= 0x1fb6) && (code <= 0x1fbc)) ||
1788 ((code >= 0x1fc2) && (code <= 0x1fc4)) ||
1789 ((code >= 0x1fc6) && (code <= 0x1fcc)) ||
1790 ((code >= 0x1fd0) && (code <= 0x1fd3)) ||
1791 ((code >= 0x1fd6) && (code <= 0x1fdb)) ||
1792 ((code >= 0x1fe0) && (code <= 0x1fec)) ||
1793 ((code >= 0x1ff2) && (code <= 0x1ff4)) ||
1794 ((code >= 0x1ff6) && (code <= 0x1ffc)) ||
1798 ((code >= 0x210a) && (code <= 0x2113)) ||
1800 ((code >= 0x2119) && (code <= 0x211d)) ||
1804 ((code >= 0x212a) && (code <= 0x212d)) ||
1805 ((code >= 0x212f) && (code <= 0x2131)) ||
1806 ((code >= 0x2133) && (code <= 0x2139)) ||
1807 ((code >= 0x3005) && (code <= 0x3006)) ||
1808 ((code >= 0x3031) && (code <= 0x3035)) ||
1809 ((code >= 0x3041) && (code <= 0x3094)) ||
1810 ((code >= 0x309d) && (code <= 0x309e)) ||
1811 ((code >= 0x30a1) && (code <= 0x30fa)) ||
1812 ((code >= 0x30fc) && (code <= 0x30fe)) ||
1813 ((code >= 0x3105) && (code <= 0x312c)) ||
1814 ((code >= 0x3131) && (code <= 0x318e)) ||
1815 ((code >= 0x31a0) && (code <= 0x31b7)) ||
1820 ((code >= 0xa000) && (code <= 0xa48c)) ||
1823 ((code >= 0xf900) && (code <= 0xfa2d)) ||
1824 ((code >= 0xfb00) && (code <= 0xfb06)) ||
1825 ((code >= 0xfb13) && (code <= 0xfb17)) ||
1827 ((code >= 0xfb1f) && (code <= 0xfb28)) ||
1828 ((code >= 0xfb2a) && (code <= 0xfb36)) ||
1829 ((code >= 0xfb38) && (code <= 0xfb3c)) ||
1831 ((code >= 0xfb40) && (code <= 0xfb41)) ||
1832 ((code >= 0xfb43) && (code <= 0xfb44)) ||
1833 ((code >= 0xfb46) && (code <= 0xfbb1)) ||
1834 ((code >= 0xfbd3) && (code <= 0xfd3d)) ||
1835 ((code >= 0xfd50) && (code <= 0xfd8f)) ||
1836 ((code >= 0xfd92) && (code <= 0xfdc7)) ||
1837 ((code >= 0xfdf0) && (code <= 0xfdfb)) ||
1838 ((code >= 0xfe70) && (code <= 0xfe72)) ||
1840 ((code >= 0xfe76) && (code <= 0xfefc)) ||
1841 ((code >= 0xff21) && (code <= 0xff3a)) ||
1842 ((code >= 0xff41) && (code <= 0xff5a)) ||
1843 ((code >= 0xff66) && (code <= 0xffbe)) ||
1844 ((code >= 0xffc2) && (code <= 0xffc7)) ||
1845 ((code >= 0xffca) && (code <= 0xffcf)) ||
1846 ((code >= 0xffd2) && (code <= 0xffd7)) ||
1847 ((code >= 0xffda) && (code <= 0xffdc)) ||
1848 ((code >= 0x10300) && (code <= 0x1031e)) ||
1849 ((code >= 0x10330) && (code <= 0x10349)) ||
1850 ((code >= 0x10400) && (code <= 0x10425)) ||
1851 ((code >= 0x10428) && (code <= 0x1044d)) ||
1852 ((code >= 0x1d400) && (code <= 0x1d454)) ||
1853 ((code >= 0x1d456) && (code <= 0x1d49c)) ||
1854 ((code >= 0x1d49e) && (code <= 0x1d49f)) ||
1855 (code == 0x1d4a2) ||
1856 ((code >= 0x1d4a5) && (code <= 0x1d4a6)) ||
1857 ((code >= 0x1d4a9) && (code <= 0x1d4ac)) ||
1858 ((code >= 0x1d4ae) && (code <= 0x1d4b9)) ||
1859 (code == 0x1d4bb) ||
1860 ((code >= 0x1d4bd) && (code <= 0x1d4c0)) ||
1861 ((code >= 0x1d4c2) && (code <= 0x1d4c3)) ||
1862 ((code >= 0x1d4c5) && (code <= 0x1d505)) ||
1863 ((code >= 0x1d507) && (code <= 0x1d50a)) ||
1864 ((code >= 0x1d50d) && (code <= 0x1d514)) ||
1865 ((code >= 0x1d516) && (code <= 0x1d51c)) ||
1866 ((code >= 0x1d51e) && (code <= 0x1d539)) ||
1867 ((code >= 0x1d53b) && (code <= 0x1d53e)) ||
1868 ((code >= 0x1d540) && (code <= 0x1d544)) ||
1869 (code == 0x1d546) ||
1870 ((code >= 0x1d54a) && (code <= 0x1d550)) ||
1871 ((code >= 0x1d552) && (code <= 0x1d6a3)) ||
1872 ((code >= 0x1d6a8) && (code <= 0x1d6c0)) ||
1873 ((code >= 0x1d6c2) && (code <= 0x1d6da)) ||
1874 ((code >= 0x1d6dc) && (code <= 0x1d6fa)) ||
1875 ((code >= 0x1d6fc) && (code <= 0x1d714)) ||
1876 ((code >= 0x1d716) && (code <= 0x1d734)) ||
1877 ((code >= 0x1d736) && (code <= 0x1d74e)) ||
1878 ((code >= 0x1d750) && (code <= 0x1d76e)) ||
1879 ((code >= 0x1d770) && (code <= 0x1d788)) ||
1880 ((code >= 0x1d78a) && (code <= 0x1d7a8)) ||
1881 ((code >= 0x1d7aa) && (code <= 0x1d7c2)) ||
1882 ((code >= 0x1d7c4) && (code <= 0x1d7c9)) ||
1883 (code == 0x20000) ||
1884 (code == 0x2a6d6) ||
1885 ((code >= 0x2f800) && (code <= 0x2fa1d)));
1890 * @code: UCS code point
1892 * Check whether the character is part of Ll UCS Category
1894 * Returns 1 if true 0 otherwise
1897 xmlUCSIsCatLl(int code) {
1898 return(((code >= 0x61) && (code <= 0x7a)) ||
1902 ((code >= 0xdf) && (code <= 0xf6)) ||
1903 ((code >= 0xf8) && (code <= 0xff)) ||
1931 ((code >= 0x137) && (code <= 0x138)) ||
1939 ((code >= 0x148) && (code <= 0x149)) ||
1965 ((code >= 0x17e) && (code <= 0x180)) ||
1969 ((code >= 0x18c) && (code <= 0x18d)) ||
1972 ((code >= 0x199) && (code <= 0x19b)) ||
1978 ((code >= 0x1aa) && (code <= 0x1ab)) ||
1983 ((code >= 0x1b9) && (code <= 0x1ba)) ||
1984 ((code >= 0x1bd) && (code <= 0x1bf)) ||
1995 ((code >= 0x1dc) && (code <= 0x1dd)) ||
2004 ((code >= 0x1ef) && (code <= 0x1f0)) ||
2036 ((code >= 0x250) && (code <= 0x2ad)) ||
2038 ((code >= 0x3ac) && (code <= 0x3ce)) ||
2039 ((code >= 0x3d0) && (code <= 0x3d1)) ||
2040 ((code >= 0x3d5) && (code <= 0x3d7)) ||
2051 ((code >= 0x3ef) && (code <= 0x3f3)) ||
2053 ((code >= 0x430) && (code <= 0x45f)) ||
2121 ((code >= 0x561) && (code <= 0x587)) ||
2196 ((code >= 0x1e95) && (code <= 0x1e9b)) ||
2242 ((code >= 0x1f00) && (code <= 0x1f07)) ||
2243 ((code >= 0x1f10) && (code <= 0x1f15)) ||
2244 ((code >= 0x1f20) && (code <= 0x1f27)) ||
2245 ((code >= 0x1f30) && (code <= 0x1f37)) ||
2246 ((code >= 0x1f40) && (code <= 0x1f45)) ||
2247 ((code >= 0x1f50) && (code <= 0x1f57)) ||
2248 ((code >= 0x1f60) && (code <= 0x1f67)) ||
2249 ((code >= 0x1f70) && (code <= 0x1f7d)) ||
2250 ((code >= 0x1f80) && (code <= 0x1f87)) ||
2251 ((code >= 0x1f90) && (code <= 0x1f97)) ||
2252 ((code >= 0x1fa0) && (code <= 0x1fa7)) ||
2253 ((code >= 0x1fb0) && (code <= 0x1fb4)) ||
2254 ((code >= 0x1fb6) && (code <= 0x1fb7)) ||
2256 ((code >= 0x1fc2) && (code <= 0x1fc4)) ||
2257 ((code >= 0x1fc6) && (code <= 0x1fc7)) ||
2258 ((code >= 0x1fd0) && (code <= 0x1fd3)) ||
2259 ((code >= 0x1fd6) && (code <= 0x1fd7)) ||
2260 ((code >= 0x1fe0) && (code <= 0x1fe7)) ||
2261 ((code >= 0x1ff2) && (code <= 0x1ff4)) ||
2262 ((code >= 0x1ff6) && (code <= 0x1ff7)) ||
2265 ((code >= 0x210e) && (code <= 0x210f)) ||
2270 ((code >= 0xfb00) && (code <= 0xfb06)) ||
2271 ((code >= 0xfb13) && (code <= 0xfb17)) ||
2272 ((code >= 0xff41) && (code <= 0xff5a)) ||
2273 ((code >= 0x10428) && (code <= 0x1044d)) ||
2274 ((code >= 0x1d41a) && (code <= 0x1d433)) ||
2275 ((code >= 0x1d44e) && (code <= 0x1d454)) ||
2276 ((code >= 0x1d456) && (code <= 0x1d467)) ||
2277 ((code >= 0x1d482) && (code <= 0x1d49b)) ||
2278 ((code >= 0x1d4b6) && (code <= 0x1d4b9)) ||
2279 (code == 0x1d4bb) ||
2280 ((code >= 0x1d4bd) && (code <= 0x1d4c0)) ||
2281 ((code >= 0x1d4c2) && (code <= 0x1d4c3)) ||
2282 ((code >= 0x1d4c5) && (code <= 0x1d4cf)) ||
2283 ((code >= 0x1d4ea) && (code <= 0x1d503)) ||
2284 ((code >= 0x1d51e) && (code <= 0x1d537)) ||
2285 ((code >= 0x1d552) && (code <= 0x1d56b)) ||
2286 ((code >= 0x1d586) && (code <= 0x1d59f)) ||
2287 ((code >= 0x1d5ba) && (code <= 0x1d5d3)) ||
2288 ((code >= 0x1d5ee) && (code <= 0x1d607)) ||
2289 ((code >= 0x1d622) && (code <= 0x1d63b)) ||
2290 ((code >= 0x1d656) && (code <= 0x1d66f)) ||
2291 ((code >= 0x1d68a) && (code <= 0x1d6a3)) ||
2292 ((code >= 0x1d6c2) && (code <= 0x1d6da)) ||
2293 ((code >= 0x1d6dc) && (code <= 0x1d6e1)) ||
2294 ((code >= 0x1d6fc) && (code <= 0x1d714)) ||
2295 ((code >= 0x1d716) && (code <= 0x1d71b)) ||
2296 ((code >= 0x1d736) && (code <= 0x1d74e)) ||
2297 ((code >= 0x1d750) && (code <= 0x1d755)) ||
2298 ((code >= 0x1d770) && (code <= 0x1d788)) ||
2299 ((code >= 0x1d78a) && (code <= 0x1d78f)) ||
2300 ((code >= 0x1d7aa) && (code <= 0x1d7c2)) ||
2301 ((code >= 0x1d7c4) && (code <= 0x1d7c9)));
2306 * @code: UCS code point
2308 * Check whether the character is part of Lm UCS Category
2310 * Returns 1 if true 0 otherwise
2313 xmlUCSIsCatLm(int code) {
2314 return(((code >= 0x2b0) && (code <= 0x2b8)) ||
2315 ((code >= 0x2bb) && (code <= 0x2c1)) ||
2316 ((code >= 0x2d0) && (code <= 0x2d1)) ||
2317 ((code >= 0x2e0) && (code <= 0x2e4)) ||
2322 ((code >= 0x6e5) && (code <= 0x6e6)) ||
2327 ((code >= 0x3031) && (code <= 0x3035)) ||
2328 ((code >= 0x309d) && (code <= 0x309e)) ||
2329 ((code >= 0x30fc) && (code <= 0x30fe)) ||
2331 ((code >= 0xff9e) && (code <= 0xff9f)));
2336 * @code: UCS code point
2338 * Check whether the character is part of Lo UCS Category
2340 * Returns 1 if true 0 otherwise
2343 xmlUCSIsCatLo(int code) {
2344 return((code == 0x1bb) ||
2345 ((code >= 0x1c0) && (code <= 0x1c3)) ||
2346 ((code >= 0x5d0) && (code <= 0x5ea)) ||
2347 ((code >= 0x5f0) && (code <= 0x5f2)) ||
2348 ((code >= 0x621) && (code <= 0x63a)) ||
2349 ((code >= 0x641) && (code <= 0x64a)) ||
2350 ((code >= 0x671) && (code <= 0x6d3)) ||
2352 ((code >= 0x6fa) && (code <= 0x6fc)) ||
2354 ((code >= 0x712) && (code <= 0x72c)) ||
2355 ((code >= 0x780) && (code <= 0x7a5)) ||
2356 ((code >= 0x905) && (code <= 0x939)) ||
2359 ((code >= 0x958) && (code <= 0x961)) ||
2360 ((code >= 0x985) && (code <= 0x98c)) ||
2361 ((code >= 0x98f) && (code <= 0x990)) ||
2362 ((code >= 0x993) && (code <= 0x9a8)) ||
2363 ((code >= 0x9aa) && (code <= 0x9b0)) ||
2365 ((code >= 0x9b6) && (code <= 0x9b9)) ||
2366 ((code >= 0x9dc) && (code <= 0x9dd)) ||
2367 ((code >= 0x9df) && (code <= 0x9e1)) ||
2368 ((code >= 0x9f0) && (code <= 0x9f1)) ||
2369 ((code >= 0xa05) && (code <= 0xa0a)) ||
2370 ((code >= 0xa0f) && (code <= 0xa10)) ||
2371 ((code >= 0xa13) && (code <= 0xa28)) ||
2372 ((code >= 0xa2a) && (code <= 0xa30)) ||
2373 ((code >= 0xa32) && (code <= 0xa33)) ||
2374 ((code >= 0xa35) && (code <= 0xa36)) ||
2375 ((code >= 0xa38) && (code <= 0xa39)) ||
2376 ((code >= 0xa59) && (code <= 0xa5c)) ||
2378 ((code >= 0xa72) && (code <= 0xa74)) ||
2379 ((code >= 0xa85) && (code <= 0xa8b)) ||
2381 ((code >= 0xa8f) && (code <= 0xa91)) ||
2382 ((code >= 0xa93) && (code <= 0xaa8)) ||
2383 ((code >= 0xaaa) && (code <= 0xab0)) ||
2384 ((code >= 0xab2) && (code <= 0xab3)) ||
2385 ((code >= 0xab5) && (code <= 0xab9)) ||
2389 ((code >= 0xb05) && (code <= 0xb0c)) ||
2390 ((code >= 0xb0f) && (code <= 0xb10)) ||
2391 ((code >= 0xb13) && (code <= 0xb28)) ||
2392 ((code >= 0xb2a) && (code <= 0xb30)) ||
2393 ((code >= 0xb32) && (code <= 0xb33)) ||
2394 ((code >= 0xb36) && (code <= 0xb39)) ||
2396 ((code >= 0xb5c) && (code <= 0xb5d)) ||
2397 ((code >= 0xb5f) && (code <= 0xb61)) ||
2398 ((code >= 0xb85) && (code <= 0xb8a)) ||
2399 ((code >= 0xb8e) && (code <= 0xb90)) ||
2400 ((code >= 0xb92) && (code <= 0xb95)) ||
2401 ((code >= 0xb99) && (code <= 0xb9a)) ||
2403 ((code >= 0xb9e) && (code <= 0xb9f)) ||
2404 ((code >= 0xba3) && (code <= 0xba4)) ||
2405 ((code >= 0xba8) && (code <= 0xbaa)) ||
2406 ((code >= 0xbae) && (code <= 0xbb5)) ||
2407 ((code >= 0xbb7) && (code <= 0xbb9)) ||
2408 ((code >= 0xc05) && (code <= 0xc0c)) ||
2409 ((code >= 0xc0e) && (code <= 0xc10)) ||
2410 ((code >= 0xc12) && (code <= 0xc28)) ||
2411 ((code >= 0xc2a) && (code <= 0xc33)) ||
2412 ((code >= 0xc35) && (code <= 0xc39)) ||
2413 ((code >= 0xc60) && (code <= 0xc61)) ||
2414 ((code >= 0xc85) && (code <= 0xc8c)) ||
2415 ((code >= 0xc8e) && (code <= 0xc90)) ||
2416 ((code >= 0xc92) && (code <= 0xca8)) ||
2417 ((code >= 0xcaa) && (code <= 0xcb3)) ||
2418 ((code >= 0xcb5) && (code <= 0xcb9)) ||
2420 ((code >= 0xce0) && (code <= 0xce1)) ||
2421 ((code >= 0xd05) && (code <= 0xd0c)) ||
2422 ((code >= 0xd0e) && (code <= 0xd10)) ||
2423 ((code >= 0xd12) && (code <= 0xd28)) ||
2424 ((code >= 0xd2a) && (code <= 0xd39)) ||
2425 ((code >= 0xd60) && (code <= 0xd61)) ||
2426 ((code >= 0xd85) && (code <= 0xd96)) ||
2427 ((code >= 0xd9a) && (code <= 0xdb1)) ||
2428 ((code >= 0xdb3) && (code <= 0xdbb)) ||
2430 ((code >= 0xdc0) && (code <= 0xdc6)) ||
2431 ((code >= 0xe01) && (code <= 0xe30)) ||
2432 ((code >= 0xe32) && (code <= 0xe33)) ||
2433 ((code >= 0xe40) && (code <= 0xe45)) ||
2434 ((code >= 0xe81) && (code <= 0xe82)) ||
2436 ((code >= 0xe87) && (code <= 0xe88)) ||
2439 ((code >= 0xe94) && (code <= 0xe97)) ||
2440 ((code >= 0xe99) && (code <= 0xe9f)) ||
2441 ((code >= 0xea1) && (code <= 0xea3)) ||
2444 ((code >= 0xeaa) && (code <= 0xeab)) ||
2445 ((code >= 0xead) && (code <= 0xeb0)) ||
2446 ((code >= 0xeb2) && (code <= 0xeb3)) ||
2448 ((code >= 0xec0) && (code <= 0xec4)) ||
2449 ((code >= 0xedc) && (code <= 0xedd)) ||
2451 ((code >= 0xf40) && (code <= 0xf47)) ||
2452 ((code >= 0xf49) && (code <= 0xf6a)) ||
2453 ((code >= 0xf88) && (code <= 0xf8b)) ||
2454 ((code >= 0x1000) && (code <= 0x1021)) ||
2455 ((code >= 0x1023) && (code <= 0x1027)) ||
2456 ((code >= 0x1029) && (code <= 0x102a)) ||
2457 ((code >= 0x1050) && (code <= 0x1055)) ||
2458 ((code >= 0x10d0) && (code <= 0x10f6)) ||
2459 ((code >= 0x1100) && (code <= 0x1159)) ||
2460 ((code >= 0x115f) && (code <= 0x11a2)) ||
2461 ((code >= 0x11a8) && (code <= 0x11f9)) ||
2462 ((code >= 0x1200) && (code <= 0x1206)) ||
2463 ((code >= 0x1208) && (code <= 0x1246)) ||
2465 ((code >= 0x124a) && (code <= 0x124d)) ||
2466 ((code >= 0x1250) && (code <= 0x1256)) ||
2468 ((code >= 0x125a) && (code <= 0x125d)) ||
2469 ((code >= 0x1260) && (code <= 0x1286)) ||
2471 ((code >= 0x128a) && (code <= 0x128d)) ||
2472 ((code >= 0x1290) && (code <= 0x12ae)) ||
2474 ((code >= 0x12b2) && (code <= 0x12b5)) ||
2475 ((code >= 0x12b8) && (code <= 0x12be)) ||
2477 ((code >= 0x12c2) && (code <= 0x12c5)) ||
2478 ((code >= 0x12c8) && (code <= 0x12ce)) ||
2479 ((code >= 0x12d0) && (code <= 0x12d6)) ||
2480 ((code >= 0x12d8) && (code <= 0x12ee)) ||
2481 ((code >= 0x12f0) && (code <= 0x130e)) ||
2483 ((code >= 0x1312) && (code <= 0x1315)) ||
2484 ((code >= 0x1318) && (code <= 0x131e)) ||
2485 ((code >= 0x1320) && (code <= 0x1346)) ||
2486 ((code >= 0x1348) && (code <= 0x135a)) ||
2487 ((code >= 0x13a0) && (code <= 0x13f4)) ||
2488 ((code >= 0x1401) && (code <= 0x166c)) ||
2489 ((code >= 0x166f) && (code <= 0x1676)) ||
2490 ((code >= 0x1681) && (code <= 0x169a)) ||
2491 ((code >= 0x16a0) && (code <= 0x16ea)) ||
2492 ((code >= 0x1780) && (code <= 0x17b3)) ||
2493 ((code >= 0x1820) && (code <= 0x1842)) ||
2494 ((code >= 0x1844) && (code <= 0x1877)) ||
2495 ((code >= 0x1880) && (code <= 0x18a8)) ||
2496 ((code >= 0x2135) && (code <= 0x2138)) ||
2498 ((code >= 0x3041) && (code <= 0x3094)) ||
2499 ((code >= 0x30a1) && (code <= 0x30fa)) ||
2500 ((code >= 0x3105) && (code <= 0x312c)) ||
2501 ((code >= 0x3131) && (code <= 0x318e)) ||
2502 ((code >= 0x31a0) && (code <= 0x31b7)) ||
2507 ((code >= 0xa000) && (code <= 0xa48c)) ||
2510 ((code >= 0xf900) && (code <= 0xfa2d)) ||
2512 ((code >= 0xfb1f) && (code <= 0xfb28)) ||
2513 ((code >= 0xfb2a) && (code <= 0xfb36)) ||
2514 ((code >= 0xfb38) && (code <= 0xfb3c)) ||
2516 ((code >= 0xfb40) && (code <= 0xfb41)) ||
2517 ((code >= 0xfb43) && (code <= 0xfb44)) ||
2518 ((code >= 0xfb46) && (code <= 0xfbb1)) ||
2519 ((code >= 0xfbd3) && (code <= 0xfd3d)) ||
2520 ((code >= 0xfd50) && (code <= 0xfd8f)) ||
2521 ((code >= 0xfd92) && (code <= 0xfdc7)) ||
2522 ((code >= 0xfdf0) && (code <= 0xfdfb)) ||
2523 ((code >= 0xfe70) && (code <= 0xfe72)) ||
2525 ((code >= 0xfe76) && (code <= 0xfefc)) ||
2526 ((code >= 0xff66) && (code <= 0xff6f)) ||
2527 ((code >= 0xff71) && (code <= 0xff9d)) ||
2528 ((code >= 0xffa0) && (code <= 0xffbe)) ||
2529 ((code >= 0xffc2) && (code <= 0xffc7)) ||
2530 ((code >= 0xffca) && (code <= 0xffcf)) ||
2531 ((code >= 0xffd2) && (code <= 0xffd7)) ||
2532 ((code >= 0xffda) && (code <= 0xffdc)) ||
2533 ((code >= 0x10300) && (code <= 0x1031e)) ||
2534 ((code >= 0x10330) && (code <= 0x10349)) ||
2535 (code == 0x20000) ||
2536 (code == 0x2a6d6) ||
2537 ((code >= 0x2f800) && (code <= 0x2fa1d)));
2542 * @code: UCS code point
2544 * Check whether the character is part of Lt UCS Category
2546 * Returns 1 if true 0 otherwise
2549 xmlUCSIsCatLt(int code) {
2550 return((code == 0x1c5) ||
2554 ((code >= 0x1f88) && (code <= 0x1f8f)) ||
2555 ((code >= 0x1f98) && (code <= 0x1f9f)) ||
2556 ((code >= 0x1fa8) && (code <= 0x1faf)) ||
2564 * @code: UCS code point
2566 * Check whether the character is part of Lu UCS Category
2568 * Returns 1 if true 0 otherwise
2571 xmlUCSIsCatLu(int code) {
2572 return(((code >= 0x41) && (code <= 0x5a)) ||
2573 ((code >= 0xc0) && (code <= 0xd6)) ||
2574 ((code >= 0xd8) && (code <= 0xde)) ||
2634 ((code >= 0x178) && (code <= 0x179)) ||
2637 ((code >= 0x181) && (code <= 0x182)) ||
2639 ((code >= 0x186) && (code <= 0x187)) ||
2640 ((code >= 0x189) && (code <= 0x18b)) ||
2641 ((code >= 0x18e) && (code <= 0x191)) ||
2642 ((code >= 0x193) && (code <= 0x194)) ||
2643 ((code >= 0x196) && (code <= 0x198)) ||
2644 ((code >= 0x19c) && (code <= 0x19d)) ||
2645 ((code >= 0x19f) && (code <= 0x1a0)) ||
2648 ((code >= 0x1a6) && (code <= 0x1a7)) ||
2651 ((code >= 0x1ae) && (code <= 0x1af)) ||
2652 ((code >= 0x1b1) && (code <= 0x1b3)) ||
2654 ((code >= 0x1b7) && (code <= 0x1b8)) ||
2678 ((code >= 0x1f6) && (code <= 0x1f8)) ||
2708 ((code >= 0x388) && (code <= 0x38a)) ||
2710 ((code >= 0x38e) && (code <= 0x38f)) ||
2711 ((code >= 0x391) && (code <= 0x3a1)) ||
2712 ((code >= 0x3a3) && (code <= 0x3ab)) ||
2713 ((code >= 0x3d2) && (code <= 0x3d4)) ||
2726 ((code >= 0x400) && (code <= 0x42f)) ||
2770 ((code >= 0x4c0) && (code <= 0x4c1)) ||
2794 ((code >= 0x531) && (code <= 0x556)) ||
2795 ((code >= 0x10a0) && (code <= 0x10c5)) ||
2916 ((code >= 0x1f08) && (code <= 0x1f0f)) ||
2917 ((code >= 0x1f18) && (code <= 0x1f1d)) ||
2918 ((code >= 0x1f28) && (code <= 0x1f2f)) ||
2919 ((code >= 0x1f38) && (code <= 0x1f3f)) ||
2920 ((code >= 0x1f48) && (code <= 0x1f4d)) ||
2925 ((code >= 0x1f68) && (code <= 0x1f6f)) ||
2926 ((code >= 0x1fb8) && (code <= 0x1fbb)) ||
2927 ((code >= 0x1fc8) && (code <= 0x1fcb)) ||
2928 ((code >= 0x1fd8) && (code <= 0x1fdb)) ||
2929 ((code >= 0x1fe8) && (code <= 0x1fec)) ||
2930 ((code >= 0x1ff8) && (code <= 0x1ffb)) ||
2933 ((code >= 0x210b) && (code <= 0x210d)) ||
2934 ((code >= 0x2110) && (code <= 0x2112)) ||
2936 ((code >= 0x2119) && (code <= 0x211d)) ||
2940 ((code >= 0x212a) && (code <= 0x212d)) ||
2941 ((code >= 0x2130) && (code <= 0x2131)) ||
2943 ((code >= 0xff21) && (code <= 0xff3a)) ||
2944 ((code >= 0x10400) && (code <= 0x10425)) ||
2945 ((code >= 0x1d400) && (code <= 0x1d419)) ||
2946 ((code >= 0x1d434) && (code <= 0x1d44d)) ||
2947 ((code >= 0x1d468) && (code <= 0x1d481)) ||
2948 (code == 0x1d49c) ||
2949 ((code >= 0x1d49e) && (code <= 0x1d49f)) ||
2950 (code == 0x1d4a2) ||
2951 ((code >= 0x1d4a5) && (code <= 0x1d4a6)) ||
2952 ((code >= 0x1d4a9) && (code <= 0x1d4ac)) ||
2953 ((code >= 0x1d4ae) && (code <= 0x1d4b5)) ||
2954 ((code >= 0x1d4d0) && (code <= 0x1d4e9)) ||
2955 ((code >= 0x1d504) && (code <= 0x1d505)) ||
2956 ((code >= 0x1d507) && (code <= 0x1d50a)) ||
2957 ((code >= 0x1d50d) && (code <= 0x1d514)) ||
2958 ((code >= 0x1d516) && (code <= 0x1d51c)) ||
2959 ((code >= 0x1d538) && (code <= 0x1d539)) ||
2960 ((code >= 0x1d53b) && (code <= 0x1d53e)) ||
2961 ((code >= 0x1d540) && (code <= 0x1d544)) ||
2962 (code == 0x1d546) ||
2963 ((code >= 0x1d54a) && (code <= 0x1d550)) ||
2964 ((code >= 0x1d56c) && (code <= 0x1d585)) ||
2965 ((code >= 0x1d5a0) && (code <= 0x1d5b9)) ||
2966 ((code >= 0x1d5d4) && (code <= 0x1d5ed)) ||
2967 ((code >= 0x1d608) && (code <= 0x1d621)) ||
2968 ((code >= 0x1d63c) && (code <= 0x1d655)) ||
2969 ((code >= 0x1d670) && (code <= 0x1d689)) ||
2970 ((code >= 0x1d6a8) && (code <= 0x1d6c0)) ||
2971 ((code >= 0x1d6e2) && (code <= 0x1d6fa)) ||
2972 ((code >= 0x1d71c) && (code <= 0x1d734)) ||
2973 ((code >= 0x1d756) && (code <= 0x1d76e)) ||
2974 ((code >= 0x1d790) && (code <= 0x1d7a8)));
2979 * @code: UCS code point
2981 * Check whether the character is part of M UCS Category
2983 * Returns 1 if true 0 otherwise
2986 xmlUCSIsCatM(int code) {
2987 return(((code >= 0x300) && (code <= 0x34e)) ||
2988 ((code >= 0x360) && (code <= 0x362)) ||
2989 ((code >= 0x483) && (code <= 0x486)) ||
2990 ((code >= 0x488) && (code <= 0x489)) ||
2991 ((code >= 0x591) && (code <= 0x5a1)) ||
2992 ((code >= 0x5a3) && (code <= 0x5b9)) ||
2993 ((code >= 0x5bb) && (code <= 0x5bd)) ||
2995 ((code >= 0x5c1) && (code <= 0x5c2)) ||
2997 ((code >= 0x64b) && (code <= 0x655)) ||
2999 ((code >= 0x6d6) && (code <= 0x6e4)) ||
3000 ((code >= 0x6e7) && (code <= 0x6e8)) ||
3001 ((code >= 0x6ea) && (code <= 0x6ed)) ||
3003 ((code >= 0x730) && (code <= 0x74a)) ||
3004 ((code >= 0x7a6) && (code <= 0x7b0)) ||
3005 ((code >= 0x901) && (code <= 0x903)) ||
3007 ((code >= 0x93e) && (code <= 0x94d)) ||
3008 ((code >= 0x951) && (code <= 0x954)) ||
3009 ((code >= 0x962) && (code <= 0x963)) ||
3010 ((code >= 0x981) && (code <= 0x983)) ||
3012 ((code >= 0x9be) && (code <= 0x9c4)) ||
3013 ((code >= 0x9c7) && (code <= 0x9c8)) ||
3014 ((code >= 0x9cb) && (code <= 0x9cd)) ||
3016 ((code >= 0x9e2) && (code <= 0x9e3)) ||
3019 ((code >= 0xa3e) && (code <= 0xa42)) ||
3020 ((code >= 0xa47) && (code <= 0xa48)) ||
3021 ((code >= 0xa4b) && (code <= 0xa4d)) ||
3022 ((code >= 0xa70) && (code <= 0xa71)) ||
3023 ((code >= 0xa81) && (code <= 0xa83)) ||
3025 ((code >= 0xabe) && (code <= 0xac5)) ||
3026 ((code >= 0xac7) && (code <= 0xac9)) ||
3027 ((code >= 0xacb) && (code <= 0xacd)) ||
3028 ((code >= 0xb01) && (code <= 0xb03)) ||
3030 ((code >= 0xb3e) && (code <= 0xb43)) ||
3031 ((code >= 0xb47) && (code <= 0xb48)) ||
3032 ((code >= 0xb4b) && (code <= 0xb4d)) ||
3033 ((code >= 0xb56) && (code <= 0xb57)) ||
3034 ((code >= 0xb82) && (code <= 0xb83)) ||
3035 ((code >= 0xbbe) && (code <= 0xbc2)) ||
3036 ((code >= 0xbc6) && (code <= 0xbc8)) ||
3037 ((code >= 0xbca) && (code <= 0xbcd)) ||
3039 ((code >= 0xc01) && (code <= 0xc03)) ||
3040 ((code >= 0xc3e) && (code <= 0xc44)) ||
3041 ((code >= 0xc46) && (code <= 0xc48)) ||
3042 ((code >= 0xc4a) && (code <= 0xc4d)) ||
3043 ((code >= 0xc55) && (code <= 0xc56)) ||
3044 ((code >= 0xc82) && (code <= 0xc83)) ||
3045 ((code >= 0xcbe) && (code <= 0xcc4)) ||
3046 ((code >= 0xcc6) && (code <= 0xcc8)) ||
3047 ((code >= 0xcca) && (code <= 0xccd)) ||
3048 ((code >= 0xcd5) && (code <= 0xcd6)) ||
3049 ((code >= 0xd02) && (code <= 0xd03)) ||
3050 ((code >= 0xd3e) && (code <= 0xd43)) ||
3051 ((code >= 0xd46) && (code <= 0xd48)) ||
3052 ((code >= 0xd4a) && (code <= 0xd4d)) ||
3054 ((code >= 0xd82) && (code <= 0xd83)) ||
3056 ((code >= 0xdcf) && (code <= 0xdd4)) ||
3058 ((code >= 0xdd8) && (code <= 0xddf)) ||
3059 ((code >= 0xdf2) && (code <= 0xdf3)) ||
3061 ((code >= 0xe34) && (code <= 0xe3a)) ||
3062 ((code >= 0xe47) && (code <= 0xe4e)) ||
3064 ((code >= 0xeb4) && (code <= 0xeb9)) ||
3065 ((code >= 0xebb) && (code <= 0xebc)) ||
3066 ((code >= 0xec8) && (code <= 0xecd)) ||
3067 ((code >= 0xf18) && (code <= 0xf19)) ||
3071 ((code >= 0xf3e) && (code <= 0xf3f)) ||
3072 ((code >= 0xf71) && (code <= 0xf84)) ||
3073 ((code >= 0xf86) && (code <= 0xf87)) ||
3074 ((code >= 0xf90) && (code <= 0xf97)) ||
3075 ((code >= 0xf99) && (code <= 0xfbc)) ||
3077 ((code >= 0x102c) && (code <= 0x1032)) ||
3078 ((code >= 0x1036) && (code <= 0x1039)) ||
3079 ((code >= 0x1056) && (code <= 0x1059)) ||
3080 ((code >= 0x17b4) && (code <= 0x17d3)) ||
3082 ((code >= 0x20d0) && (code <= 0x20e3)) ||
3083 ((code >= 0x302a) && (code <= 0x302f)) ||
3084 ((code >= 0x3099) && (code <= 0x309a)) ||
3086 ((code >= 0xfe20) && (code <= 0xfe23)) ||
3087 ((code >= 0x1d165) && (code <= 0x1d169)) ||
3088 ((code >= 0x1d16d) && (code <= 0x1d172)) ||
3089 ((code >= 0x1d17b) && (code <= 0x1d182)) ||
3090 ((code >= 0x1d185) && (code <= 0x1d18b)) ||
3091 ((code >= 0x1d1aa) && (code <= 0x1d1ad)));
3096 * @code: UCS code point
3098 * Check whether the character is part of Mc UCS Category
3100 * Returns 1 if true 0 otherwise
3103 xmlUCSIsCatMc(int code) {
3104 return((code == 0x903) ||
3105 ((code >= 0x93e) && (code <= 0x940)) ||
3106 ((code >= 0x949) && (code <= 0x94c)) ||
3107 ((code >= 0x982) && (code <= 0x983)) ||
3108 ((code >= 0x9be) && (code <= 0x9c0)) ||
3109 ((code >= 0x9c7) && (code <= 0x9c8)) ||
3110 ((code >= 0x9cb) && (code <= 0x9cc)) ||
3112 ((code >= 0xa3e) && (code <= 0xa40)) ||
3114 ((code >= 0xabe) && (code <= 0xac0)) ||
3116 ((code >= 0xacb) && (code <= 0xacc)) ||
3117 ((code >= 0xb02) && (code <= 0xb03)) ||
3120 ((code >= 0xb47) && (code <= 0xb48)) ||
3121 ((code >= 0xb4b) && (code <= 0xb4c)) ||
3124 ((code >= 0xbbe) && (code <= 0xbbf)) ||
3125 ((code >= 0xbc1) && (code <= 0xbc2)) ||
3126 ((code >= 0xbc6) && (code <= 0xbc8)) ||
3127 ((code >= 0xbca) && (code <= 0xbcc)) ||
3129 ((code >= 0xc01) && (code <= 0xc03)) ||
3130 ((code >= 0xc41) && (code <= 0xc44)) ||
3131 ((code >= 0xc82) && (code <= 0xc83)) ||
3133 ((code >= 0xcc0) && (code <= 0xcc4)) ||
3134 ((code >= 0xcc7) && (code <= 0xcc8)) ||
3135 ((code >= 0xcca) && (code <= 0xccb)) ||
3136 ((code >= 0xcd5) && (code <= 0xcd6)) ||
3137 ((code >= 0xd02) && (code <= 0xd03)) ||
3138 ((code >= 0xd3e) && (code <= 0xd40)) ||
3139 ((code >= 0xd46) && (code <= 0xd48)) ||
3140 ((code >= 0xd4a) && (code <= 0xd4c)) ||
3142 ((code >= 0xd82) && (code <= 0xd83)) ||
3143 ((code >= 0xdcf) && (code <= 0xdd1)) ||
3144 ((code >= 0xdd8) && (code <= 0xddf)) ||
3145 ((code >= 0xdf2) && (code <= 0xdf3)) ||
3146 ((code >= 0xf3e) && (code <= 0xf3f)) ||
3151 ((code >= 0x1056) && (code <= 0x1057)) ||
3152 ((code >= 0x17b4) && (code <= 0x17b6)) ||
3153 ((code >= 0x17be) && (code <= 0x17c5)) ||
3154 ((code >= 0x17c7) && (code <= 0x17c8)) ||
3155 ((code >= 0x1d165) && (code <= 0x1d166)) ||
3156 ((code >= 0x1d16d) && (code <= 0x1d172)));
3161 * @code: UCS code point
3163 * Check whether the character is part of Me UCS Category
3165 * Returns 1 if true 0 otherwise
3168 xmlUCSIsCatMe(int code) {
3169 return(((code >= 0x488) && (code <= 0x489)) ||
3170 ((code >= 0x6dd) && (code <= 0x6de)) ||
3171 ((code >= 0x20dd) && (code <= 0x20e0)) ||
3172 ((code >= 0x20e2) && (code <= 0x20e3)));
3177 * @code: UCS code point
3179 * Check whether the character is part of Mn UCS Category
3181 * Returns 1 if true 0 otherwise
3184 xmlUCSIsCatMn(int code) {
3185 return(((code >= 0x300) && (code <= 0x34e)) ||
3186 ((code >= 0x360) && (code <= 0x362)) ||
3187 ((code >= 0x483) && (code <= 0x486)) ||
3188 ((code >= 0x591) && (code <= 0x5a1)) ||
3189 ((code >= 0x5a3) && (code <= 0x5b9)) ||
3190 ((code >= 0x5bb) && (code <= 0x5bd)) ||
3192 ((code >= 0x5c1) && (code <= 0x5c2)) ||
3194 ((code >= 0x64b) && (code <= 0x655)) ||
3196 ((code >= 0x6d6) && (code <= 0x6dc)) ||
3197 ((code >= 0x6df) && (code <= 0x6e4)) ||
3198 ((code >= 0x6e7) && (code <= 0x6e8)) ||
3199 ((code >= 0x6ea) && (code <= 0x6ed)) ||
3201 ((code >= 0x730) && (code <= 0x74a)) ||
3202 ((code >= 0x7a6) && (code <= 0x7b0)) ||
3203 ((code >= 0x901) && (code <= 0x902)) ||
3205 ((code >= 0x941) && (code <= 0x948)) ||
3207 ((code >= 0x951) && (code <= 0x954)) ||
3208 ((code >= 0x962) && (code <= 0x963)) ||
3211 ((code >= 0x9c1) && (code <= 0x9c4)) ||
3213 ((code >= 0x9e2) && (code <= 0x9e3)) ||
3216 ((code >= 0xa41) && (code <= 0xa42)) ||
3217 ((code >= 0xa47) && (code <= 0xa48)) ||
3218 ((code >= 0xa4b) && (code <= 0xa4d)) ||
3219 ((code >= 0xa70) && (code <= 0xa71)) ||
3220 ((code >= 0xa81) && (code <= 0xa82)) ||
3222 ((code >= 0xac1) && (code <= 0xac5)) ||
3223 ((code >= 0xac7) && (code <= 0xac8)) ||
3228 ((code >= 0xb41) && (code <= 0xb43)) ||
3234 ((code >= 0xc3e) && (code <= 0xc40)) ||
3235 ((code >= 0xc46) && (code <= 0xc48)) ||
3236 ((code >= 0xc4a) && (code <= 0xc4d)) ||
3237 ((code >= 0xc55) && (code <= 0xc56)) ||
3240 ((code >= 0xccc) && (code <= 0xccd)) ||
3241 ((code >= 0xd41) && (code <= 0xd43)) ||
3244 ((code >= 0xdd2) && (code <= 0xdd4)) ||
3247 ((code >= 0xe34) && (code <= 0xe3a)) ||
3248 ((code >= 0xe47) && (code <= 0xe4e)) ||
3250 ((code >= 0xeb4) && (code <= 0xeb9)) ||
3251 ((code >= 0xebb) && (code <= 0xebc)) ||
3252 ((code >= 0xec8) && (code <= 0xecd)) ||
3253 ((code >= 0xf18) && (code <= 0xf19)) ||
3257 ((code >= 0xf71) && (code <= 0xf7e)) ||
3258 ((code >= 0xf80) && (code <= 0xf84)) ||
3259 ((code >= 0xf86) && (code <= 0xf87)) ||
3260 ((code >= 0xf90) && (code <= 0xf97)) ||
3261 ((code >= 0xf99) && (code <= 0xfbc)) ||
3263 ((code >= 0x102d) && (code <= 0x1030)) ||
3265 ((code >= 0x1036) && (code <= 0x1037)) ||
3267 ((code >= 0x1058) && (code <= 0x1059)) ||
3268 ((code >= 0x17b7) && (code <= 0x17bd)) ||
3270 ((code >= 0x17c9) && (code <= 0x17d3)) ||
3272 ((code >= 0x20d0) && (code <= 0x20dc)) ||
3274 ((code >= 0x302a) && (code <= 0x302f)) ||
3275 ((code >= 0x3099) && (code <= 0x309a)) ||
3277 ((code >= 0xfe20) && (code <= 0xfe23)) ||
3278 ((code >= 0x1d167) && (code <= 0x1d169)) ||
3279 ((code >= 0x1d17b) && (code <= 0x1d182)) ||
3280 ((code >= 0x1d185) && (code <= 0x1d18b)) ||
3281 ((code >= 0x1d1aa) && (code <= 0x1d1ad)));
3286 * @code: UCS code point
3288 * Check whether the character is part of N UCS Category
3290 * Returns 1 if true 0 otherwise
3293 xmlUCSIsCatN(int code) {
3294 return(((code >= 0x30) && (code <= 0x39)) ||
3295 ((code >= 0xb2) && (code <= 0xb3)) ||
3297 ((code >= 0xbc) && (code <= 0xbe)) ||
3298 ((code >= 0x660) && (code <= 0x669)) ||
3299 ((code >= 0x6f0) && (code <= 0x6f9)) ||
3300 ((code >= 0x966) && (code <= 0x96f)) ||
3301 ((code >= 0x9e6) && (code <= 0x9ef)) ||
3302 ((code >= 0x9f4) && (code <= 0x9f9)) ||
3303 ((code >= 0xa66) && (code <= 0xa6f)) ||
3304 ((code >= 0xae6) && (code <= 0xaef)) ||
3305 ((code >= 0xb66) && (code <= 0xb6f)) ||
3306 ((code >= 0xbe7) && (code <= 0xbf2)) ||
3307 ((code >= 0xc66) && (code <= 0xc6f)) ||
3308 ((code >= 0xce6) && (code <= 0xcef)) ||
3309 ((code >= 0xd66) && (code <= 0xd6f)) ||
3310 ((code >= 0xe50) && (code <= 0xe59)) ||
3311 ((code >= 0xed0) && (code <= 0xed9)) ||
3312 ((code >= 0xf20) && (code <= 0xf33)) ||
3313 ((code >= 0x1040) && (code <= 0x1049)) ||
3314 ((code >= 0x1369) && (code <= 0x137c)) ||
3315 ((code >= 0x16ee) && (code <= 0x16f0)) ||
3316 ((code >= 0x17e0) && (code <= 0x17e9)) ||
3317 ((code >= 0x1810) && (code <= 0x1819)) ||
3319 ((code >= 0x2074) && (code <= 0x2079)) ||
3320 ((code >= 0x2080) && (code <= 0x2089)) ||
3321 ((code >= 0x2153) && (code <= 0x2183)) ||
3322 ((code >= 0x2460) && (code <= 0x249b)) ||
3324 ((code >= 0x2776) && (code <= 0x2793)) ||
3326 ((code >= 0x3021) && (code <= 0x3029)) ||
3327 ((code >= 0x3038) && (code <= 0x303a)) ||
3328 ((code >= 0x3192) && (code <= 0x3195)) ||
3329 ((code >= 0x3220) && (code <= 0x3229)) ||
3330 ((code >= 0x3280) && (code <= 0x3289)) ||
3331 ((code >= 0xff10) && (code <= 0xff19)) ||
3332 ((code >= 0x10320) && (code <= 0x10323)) ||
3333 (code == 0x1034a) ||
3334 ((code >= 0x1d7ce) && (code <= 0x1d7ff)));
3339 * @code: UCS code point
3341 * Check whether the character is part of Nd UCS Category
3343 * Returns 1 if true 0 otherwise
3346 xmlUCSIsCatNd(int code) {
3347 return(((code >= 0x30) && (code <= 0x39)) ||
3348 ((code >= 0x660) && (code <= 0x669)) ||
3349 ((code >= 0x6f0) && (code <= 0x6f9)) ||
3350 ((code >= 0x966) && (code <= 0x96f)) ||
3351 ((code >= 0x9e6) && (code <= 0x9ef)) ||
3352 ((code >= 0xa66) && (code <= 0xa6f)) ||
3353 ((code >= 0xae6) && (code <= 0xaef)) ||
3354 ((code >= 0xb66) && (code <= 0xb6f)) ||
3355 ((code >= 0xbe7) && (code <= 0xbef)) ||
3356 ((code >= 0xc66) && (code <= 0xc6f)) ||
3357 ((code >= 0xce6) && (code <= 0xcef)) ||
3358 ((code >= 0xd66) && (code <= 0xd6f)) ||
3359 ((code >= 0xe50) && (code <= 0xe59)) ||
3360 ((code >= 0xed0) && (code <= 0xed9)) ||
3361 ((code >= 0xf20) && (code <= 0xf29)) ||
3362 ((code >= 0x1040) && (code <= 0x1049)) ||
3363 ((code >= 0x1369) && (code <= 0x1371)) ||
3364 ((code >= 0x17e0) && (code <= 0x17e9)) ||
3365 ((code >= 0x1810) && (code <= 0x1819)) ||
3366 ((code >= 0xff10) && (code <= 0xff19)) ||
3367 ((code >= 0x1d7ce) && (code <= 0x1d7ff)));
3372 * @code: UCS code point
3374 * Check whether the character is part of Nl UCS Category
3376 * Returns 1 if true 0 otherwise
3379 xmlUCSIsCatNl(int code) {
3380 return(((code >= 0x16ee) && (code <= 0x16f0)) ||
3381 ((code >= 0x2160) && (code <= 0x2183)) ||
3383 ((code >= 0x3021) && (code <= 0x3029)) ||
3384 ((code >= 0x3038) && (code <= 0x303a)) ||
3390 * @code: UCS code point
3392 * Check whether the character is part of No UCS Category
3394 * Returns 1 if true 0 otherwise
3397 xmlUCSIsCatNo(int code) {
3398 return(((code >= 0xb2) && (code <= 0xb3)) ||
3400 ((code >= 0xbc) && (code <= 0xbe)) ||
3401 ((code >= 0x9f4) && (code <= 0x9f9)) ||
3402 ((code >= 0xbf0) && (code <= 0xbf2)) ||
3403 ((code >= 0xf2a) && (code <= 0xf33)) ||
3404 ((code >= 0x1372) && (code <= 0x137c)) ||
3406 ((code >= 0x2074) && (code <= 0x2079)) ||
3407 ((code >= 0x2080) && (code <= 0x2089)) ||
3408 ((code >= 0x2153) && (code <= 0x215f)) ||
3409 ((code >= 0x2460) && (code <= 0x249b)) ||
3411 ((code >= 0x2776) && (code <= 0x2793)) ||
3412 ((code >= 0x3192) && (code <= 0x3195)) ||
3413 ((code >= 0x3220) && (code <= 0x3229)) ||
3414 ((code >= 0x3280) && (code <= 0x3289)) ||
3415 ((code >= 0x10320) && (code <= 0x10323)));
3420 * @code: UCS code point
3422 * Check whether the character is part of P UCS Category
3424 * Returns 1 if true 0 otherwise
3427 xmlUCSIsCatP(int code) {
3428 return(((code >= 0x21) && (code <= 0x23)) ||
3429 ((code >= 0x25) && (code <= 0x2a)) ||
3430 ((code >= 0x2c) && (code <= 0x2f)) ||
3431 ((code >= 0x3a) && (code <= 0x3b)) ||
3432 ((code >= 0x3f) && (code <= 0x40)) ||
3433 ((code >= 0x5b) && (code <= 0x5d)) ||
3445 ((code >= 0x55a) && (code <= 0x55f)) ||
3446 ((code >= 0x589) && (code <= 0x58a)) ||
3450 ((code >= 0x5f3) && (code <= 0x5f4)) ||
3454 ((code >= 0x66a) && (code <= 0x66d)) ||
3456 ((code >= 0x700) && (code <= 0x70d)) ||
3457 ((code >= 0x964) && (code <= 0x965)) ||
3461 ((code >= 0xe5a) && (code <= 0xe5b)) ||
3462 ((code >= 0xf04) && (code <= 0xf12)) ||
3463 ((code >= 0xf3a) && (code <= 0xf3d)) ||
3465 ((code >= 0x104a) && (code <= 0x104f)) ||
3467 ((code >= 0x1361) && (code <= 0x1368)) ||
3468 ((code >= 0x166d) && (code <= 0x166e)) ||
3469 ((code >= 0x169b) && (code <= 0x169c)) ||
3470 ((code >= 0x16eb) && (code <= 0x16ed)) ||
3471 ((code >= 0x17d4) && (code <= 0x17da)) ||
3473 ((code >= 0x1800) && (code <= 0x180a)) ||
3474 ((code >= 0x2010) && (code <= 0x2027)) ||
3475 ((code >= 0x2030) && (code <= 0x2043)) ||
3476 ((code >= 0x2045) && (code <= 0x2046)) ||
3477 ((code >= 0x2048) && (code <= 0x204d)) ||
3478 ((code >= 0x207d) && (code <= 0x207e)) ||
3479 ((code >= 0x208d) && (code <= 0x208e)) ||
3480 ((code >= 0x2329) && (code <= 0x232a)) ||
3481 ((code >= 0x3001) && (code <= 0x3003)) ||
3482 ((code >= 0x3008) && (code <= 0x3011)) ||
3483 ((code >= 0x3014) && (code <= 0x301f)) ||
3486 ((code >= 0xfd3e) && (code <= 0xfd3f)) ||
3487 ((code >= 0xfe30) && (code <= 0xfe44)) ||
3488 ((code >= 0xfe49) && (code <= 0xfe52)) ||
3489 ((code >= 0xfe54) && (code <= 0xfe61)) ||
3492 ((code >= 0xfe6a) && (code <= 0xfe6b)) ||
3493 ((code >= 0xff01) && (code <= 0xff03)) ||
3494 ((code >= 0xff05) && (code <= 0xff0a)) ||
3495 ((code >= 0xff0c) && (code <= 0xff0f)) ||
3496 ((code >= 0xff1a) && (code <= 0xff1b)) ||
3497 ((code >= 0xff1f) && (code <= 0xff20)) ||
3498 ((code >= 0xff3b) && (code <= 0xff3d)) ||
3502 ((code >= 0xff61) && (code <= 0xff65)));
3507 * @code: UCS code point
3509 * Check whether the character is part of Pc UCS Category
3511 * Returns 1 if true 0 otherwise
3514 xmlUCSIsCatPc(int code) {
3515 return((code == 0x5f) ||
3516 ((code >= 0x203f) && (code <= 0x2040)) ||
3518 ((code >= 0xfe33) && (code <= 0xfe34)) ||
3519 ((code >= 0xfe4d) && (code <= 0xfe4f)) ||
3526 * @code: UCS code point
3528 * Check whether the character is part of Pd UCS Category
3530 * Returns 1 if true 0 otherwise
3533 xmlUCSIsCatPd(int code) {
3534 return((code == 0x2d) ||
3538 ((code >= 0x2010) && (code <= 0x2015)) ||
3541 ((code >= 0xfe31) && (code <= 0xfe32)) ||
3549 * @code: UCS code point
3551 * Check whether the character is part of Pe UCS Category
3553 * Returns 1 if true 0 otherwise
3556 xmlUCSIsCatPe(int code) {
3557 return((code == 0x29) ||
3576 ((code >= 0x301e) && (code <= 0x301f)) ||
3597 * @code: UCS code point
3599 * Check whether the character is part of Pf UCS Category
3601 * Returns 1 if true 0 otherwise
3604 xmlUCSIsCatPf(int code) {
3605 return((code == 0xbb) ||
3613 * @code: UCS code point
3615 * Check whether the character is part of Pi UCS Category
3617 * Returns 1 if true 0 otherwise
3620 xmlUCSIsCatPi(int code) {
3621 return((code == 0xab) ||
3623 ((code >= 0x201b) && (code <= 0x201c)) ||
3630 * @code: UCS code point
3632 * Check whether the character is part of Po UCS Category
3634 * Returns 1 if true 0 otherwise
3637 xmlUCSIsCatPo(int code) {
3638 return(((code >= 0x21) && (code <= 0x23)) ||
3639 ((code >= 0x25) && (code <= 0x27)) ||
3642 ((code >= 0x2e) && (code <= 0x2f)) ||
3643 ((code >= 0x3a) && (code <= 0x3b)) ||
3644 ((code >= 0x3f) && (code <= 0x40)) ||
3651 ((code >= 0x55a) && (code <= 0x55f)) ||
3656 ((code >= 0x5f3) && (code <= 0x5f4)) ||
3660 ((code >= 0x66a) && (code <= 0x66d)) ||
3662 ((code >= 0x700) && (code <= 0x70d)) ||
3663 ((code >= 0x964) && (code <= 0x965)) ||
3667 ((code >= 0xe5a) && (code <= 0xe5b)) ||
3668 ((code >= 0xf04) && (code <= 0xf12)) ||
3670 ((code >= 0x104a) && (code <= 0x104f)) ||
3672 ((code >= 0x1361) && (code <= 0x1368)) ||
3673 ((code >= 0x166d) && (code <= 0x166e)) ||
3674 ((code >= 0x16eb) && (code <= 0x16ed)) ||
3675 ((code >= 0x17d4) && (code <= 0x17da)) ||
3677 ((code >= 0x1800) && (code <= 0x1805)) ||
3678 ((code >= 0x1807) && (code <= 0x180a)) ||
3679 ((code >= 0x2016) && (code <= 0x2017)) ||
3680 ((code >= 0x2020) && (code <= 0x2027)) ||
3681 ((code >= 0x2030) && (code <= 0x2038)) ||
3682 ((code >= 0x203b) && (code <= 0x203e)) ||
3683 ((code >= 0x2041) && (code <= 0x2043)) ||
3684 ((code >= 0x2048) && (code <= 0x204d)) ||
3685 ((code >= 0x3001) && (code <= 0x3003)) ||
3687 ((code >= 0xfe49) && (code <= 0xfe4c)) ||
3688 ((code >= 0xfe50) && (code <= 0xfe52)) ||
3689 ((code >= 0xfe54) && (code <= 0xfe57)) ||
3690 ((code >= 0xfe5f) && (code <= 0xfe61)) ||
3692 ((code >= 0xfe6a) && (code <= 0xfe6b)) ||
3693 ((code >= 0xff01) && (code <= 0xff03)) ||
3694 ((code >= 0xff05) && (code <= 0xff07)) ||
3697 ((code >= 0xff0e) && (code <= 0xff0f)) ||
3698 ((code >= 0xff1a) && (code <= 0xff1b)) ||
3699 ((code >= 0xff1f) && (code <= 0xff20)) ||
3707 * @code: UCS code point
3709 * Check whether the character is part of Ps UCS Category
3711 * Returns 1 if true 0 otherwise
3714 xmlUCSIsCatPs(int code) {
3715 return((code == 0x28) ||
3757 * @code: UCS code point
3759 * Check whether the character is part of S UCS Category
3761 * Returns 1 if true 0 otherwise
3764 xmlUCSIsCatS(int code) {
3765 return((code == 0x24) ||
3767 ((code >= 0x3c) && (code <= 0x3e)) ||
3772 ((code >= 0xa2) && (code <= 0xa9)) ||
3774 ((code >= 0xae) && (code <= 0xb1)) ||
3780 ((code >= 0x2b9) && (code <= 0x2ba)) ||
3781 ((code >= 0x2c2) && (code <= 0x2cf)) ||
3782 ((code >= 0x2d2) && (code <= 0x2df)) ||
3783 ((code >= 0x2e5) && (code <= 0x2ed)) ||
3784 ((code >= 0x374) && (code <= 0x375)) ||
3785 ((code >= 0x384) && (code <= 0x385)) ||
3788 ((code >= 0x6fd) && (code <= 0x6fe)) ||
3789 ((code >= 0x9f2) && (code <= 0x9f3)) ||
3793 ((code >= 0xf01) && (code <= 0xf03)) ||
3794 ((code >= 0xf13) && (code <= 0xf17)) ||
3795 ((code >= 0xf1a) && (code <= 0xf1f)) ||
3799 ((code >= 0xfbe) && (code <= 0xfc5)) ||
3800 ((code >= 0xfc7) && (code <= 0xfcc)) ||
3804 ((code >= 0x1fbf) && (code <= 0x1fc1)) ||
3805 ((code >= 0x1fcd) && (code <= 0x1fcf)) ||
3806 ((code >= 0x1fdd) && (code <= 0x1fdf)) ||
3807 ((code >= 0x1fed) && (code <= 0x1fef)) ||
3808 ((code >= 0x1ffd) && (code <= 0x1ffe)) ||
3810 ((code >= 0x207a) && (code <= 0x207c)) ||
3811 ((code >= 0x208a) && (code <= 0x208c)) ||
3812 ((code >= 0x20a0) && (code <= 0x20af)) ||
3813 ((code >= 0x2100) && (code <= 0x2101)) ||
3814 ((code >= 0x2103) && (code <= 0x2106)) ||
3815 ((code >= 0x2108) && (code <= 0x2109)) ||
3817 ((code >= 0x2116) && (code <= 0x2118)) ||
3818 ((code >= 0x211e) && (code <= 0x2123)) ||
3825 ((code >= 0x2190) && (code <= 0x21f3)) ||
3826 ((code >= 0x2200) && (code <= 0x22f1)) ||
3827 ((code >= 0x2300) && (code <= 0x2328)) ||
3828 ((code >= 0x232b) && (code <= 0x237b)) ||
3829 ((code >= 0x237d) && (code <= 0x239a)) ||
3830 ((code >= 0x2400) && (code <= 0x2426)) ||
3831 ((code >= 0x2440) && (code <= 0x244a)) ||
3832 ((code >= 0x249c) && (code <= 0x24e9)) ||
3833 ((code >= 0x2500) && (code <= 0x2595)) ||
3834 ((code >= 0x25a0) && (code <= 0x25f7)) ||
3835 ((code >= 0x2600) && (code <= 0x2613)) ||
3836 ((code >= 0x2619) && (code <= 0x2671)) ||
3837 ((code >= 0x2701) && (code <= 0x2704)) ||
3838 ((code >= 0x2706) && (code <= 0x2709)) ||
3839 ((code >= 0x270c) && (code <= 0x2727)) ||
3840 ((code >= 0x2729) && (code <= 0x274b)) ||
3842 ((code >= 0x274f) && (code <= 0x2752)) ||
3844 ((code >= 0x2758) && (code <= 0x275e)) ||
3845 ((code >= 0x2761) && (code <= 0x2767)) ||
3847 ((code >= 0x2798) && (code <= 0x27af)) ||
3848 ((code >= 0x27b1) && (code <= 0x27be)) ||
3849 ((code >= 0x2800) && (code <= 0x28ff)) ||
3850 ((code >= 0x2e80) && (code <= 0x2e99)) ||
3851 ((code >= 0x2e9b) && (code <= 0x2ef3)) ||
3852 ((code >= 0x2f00) && (code <= 0x2fd5)) ||
3853 ((code >= 0x2ff0) && (code <= 0x2ffb)) ||
3855 ((code >= 0x3012) && (code <= 0x3013)) ||
3857 ((code >= 0x3036) && (code <= 0x3037)) ||
3858 ((code >= 0x303e) && (code <= 0x303f)) ||
3859 ((code >= 0x309b) && (code <= 0x309c)) ||
3860 ((code >= 0x3190) && (code <= 0x3191)) ||
3861 ((code >= 0x3196) && (code <= 0x319f)) ||
3862 ((code >= 0x3200) && (code <= 0x321c)) ||
3863 ((code >= 0x322a) && (code <= 0x3243)) ||
3864 ((code >= 0x3260) && (code <= 0x327b)) ||
3866 ((code >= 0x328a) && (code <= 0x32b0)) ||
3867 ((code >= 0x32c0) && (code <= 0x32cb)) ||
3868 ((code >= 0x32d0) && (code <= 0x32fe)) ||
3869 ((code >= 0x3300) && (code <= 0x3376)) ||
3870 ((code >= 0x337b) && (code <= 0x33dd)) ||
3871 ((code >= 0x33e0) && (code <= 0x33fe)) ||
3872 ((code >= 0xa490) && (code <= 0xa4a1)) ||
3873 ((code >= 0xa4a4) && (code <= 0xa4b3)) ||
3874 ((code >= 0xa4b5) && (code <= 0xa4c0)) ||
3875 ((code >= 0xa4c2) && (code <= 0xa4c4)) ||
3879 ((code >= 0xfe64) && (code <= 0xfe66)) ||
3883 ((code >= 0xff1c) && (code <= 0xff1e)) ||
3888 ((code >= 0xffe0) && (code <= 0xffe6)) ||
3889 ((code >= 0xffe8) && (code <= 0xffee)) ||
3890 ((code >= 0xfffc) && (code <= 0xfffd)) ||
3891 ((code >= 0x1d000) && (code <= 0x1d0f5)) ||
3892 ((code >= 0x1d100) && (code <= 0x1d126)) ||
3893 ((code >= 0x1d12a) && (code <= 0x1d164)) ||
3894 ((code >= 0x1d16a) && (code <= 0x1d16c)) ||
3895 ((code >= 0x1d183) && (code <= 0x1d184)) ||
3896 ((code >= 0x1d18c) && (code <= 0x1d1a9)) ||
3897 ((code >= 0x1d1ae) && (code <= 0x1d1dd)) ||
3898 (code == 0x1d6c1) ||
3899 (code == 0x1d6db) ||
3900 (code == 0x1d6fb) ||
3901 (code == 0x1d715) ||
3902 (code == 0x1d735) ||
3903 (code == 0x1d74f) ||
3904 (code == 0x1d76f) ||
3905 (code == 0x1d789) ||
3906 (code == 0x1d7a9) ||
3912 * @code: UCS code point
3914 * Check whether the character is part of Sc UCS Category
3916 * Returns 1 if true 0 otherwise
3919 xmlUCSIsCatSc(int code) {
3920 return((code == 0x24) ||
3921 ((code >= 0xa2) && (code <= 0xa5)) ||
3922 ((code >= 0x9f2) && (code <= 0x9f3)) ||
3925 ((code >= 0x20a0) && (code <= 0x20af)) ||
3928 ((code >= 0xffe0) && (code <= 0xffe1)) ||
3929 ((code >= 0xffe5) && (code <= 0xffe6)));
3934 * @code: UCS code point
3936 * Check whether the character is part of Sk UCS Category
3938 * Returns 1 if true 0 otherwise
3941 xmlUCSIsCatSk(int code) {
3942 return((code == 0x5e) ||
3948 ((code >= 0x2b9) && (code <= 0x2ba)) ||
3949 ((code >= 0x2c2) && (code <= 0x2cf)) ||
3950 ((code >= 0x2d2) && (code <= 0x2df)) ||
3951 ((code >= 0x2e5) && (code <= 0x2ed)) ||
3952 ((code >= 0x374) && (code <= 0x375)) ||
3953 ((code >= 0x384) && (code <= 0x385)) ||
3955 ((code >= 0x1fbf) && (code <= 0x1fc1)) ||
3956 ((code >= 0x1fcd) && (code <= 0x1fcf)) ||
3957 ((code >= 0x1fdd) && (code <= 0x1fdf)) ||
3958 ((code >= 0x1fed) && (code <= 0x1fef)) ||
3959 ((code >= 0x1ffd) && (code <= 0x1ffe)) ||
3960 ((code >= 0x309b) && (code <= 0x309c)) ||
3968 * @code: UCS code point
3970 * Check whether the character is part of Sm UCS Category
3972 * Returns 1 if true 0 otherwise
3975 xmlUCSIsCatSm(int code) {
3976 return((code == 0x2b) ||
3977 ((code >= 0x3c) && (code <= 0x3e)) ||
3985 ((code >= 0x207a) && (code <= 0x207c)) ||
3986 ((code >= 0x208a) && (code <= 0x208c)) ||
3987 ((code >= 0x2190) && (code <= 0x2194)) ||
3988 ((code >= 0x219a) && (code <= 0x219b)) ||
3993 ((code >= 0x21ce) && (code <= 0x21cf)) ||
3996 ((code >= 0x2200) && (code <= 0x22f1)) ||
3997 ((code >= 0x2308) && (code <= 0x230b)) ||
3998 ((code >= 0x2320) && (code <= 0x2321)) ||
4004 ((code >= 0xfe64) && (code <= 0xfe66)) ||
4006 ((code >= 0xff1c) && (code <= 0xff1e)) ||
4010 ((code >= 0xffe9) && (code <= 0xffec)) ||
4011 (code == 0x1d6c1) ||
4012 (code == 0x1d6db) ||
4013 (code == 0x1d6fb) ||
4014 (code == 0x1d715) ||
4015 (code == 0x1d735) ||
4016 (code == 0x1d74f) ||
4017 (code == 0x1d76f) ||
4018 (code == 0x1d789) ||
4019 (code == 0x1d7a9) ||
4025 * @code: UCS code point
4027 * Check whether the character is part of So UCS Category
4029 * Returns 1 if true 0 otherwise
4032 xmlUCSIsCatSo(int code) {
4033 return(((code >= 0xa6) && (code <= 0xa7)) ||
4040 ((code >= 0x6fd) && (code <= 0x6fe)) ||
4043 ((code >= 0xf01) && (code <= 0xf03)) ||
4044 ((code >= 0xf13) && (code <= 0xf17)) ||
4045 ((code >= 0xf1a) && (code <= 0xf1f)) ||
4049 ((code >= 0xfbe) && (code <= 0xfc5)) ||
4050 ((code >= 0xfc7) && (code <= 0xfcc)) ||
4052 ((code >= 0x2100) && (code <= 0x2101)) ||
4053 ((code >= 0x2103) && (code <= 0x2106)) ||
4054 ((code >= 0x2108) && (code <= 0x2109)) ||
4056 ((code >= 0x2116) && (code <= 0x2118)) ||
4057 ((code >= 0x211e) && (code <= 0x2123)) ||
4064 ((code >= 0x2195) && (code <= 0x2199)) ||
4065 ((code >= 0x219c) && (code <= 0x219f)) ||
4066 ((code >= 0x21a1) && (code <= 0x21a2)) ||
4067 ((code >= 0x21a4) && (code <= 0x21a5)) ||
4068 ((code >= 0x21a7) && (code <= 0x21ad)) ||
4069 ((code >= 0x21af) && (code <= 0x21cd)) ||
4070 ((code >= 0x21d0) && (code <= 0x21d1)) ||
4072 ((code >= 0x21d5) && (code <= 0x21f3)) ||
4073 ((code >= 0x2300) && (code <= 0x2307)) ||
4074 ((code >= 0x230c) && (code <= 0x231f)) ||
4075 ((code >= 0x2322) && (code <= 0x2328)) ||
4076 ((code >= 0x232b) && (code <= 0x237b)) ||
4077 ((code >= 0x237d) && (code <= 0x239a)) ||
4078 ((code >= 0x2400) && (code <= 0x2426)) ||
4079 ((code >= 0x2440) && (code <= 0x244a)) ||
4080 ((code >= 0x249c) && (code <= 0x24e9)) ||
4081 ((code >= 0x2500) && (code <= 0x2595)) ||
4082 ((code >= 0x25a0) && (code <= 0x25b6)) ||
4083 ((code >= 0x25b8) && (code <= 0x25c0)) ||
4084 ((code >= 0x25c2) && (code <= 0x25f7)) ||
4085 ((code >= 0x2600) && (code <= 0x2613)) ||
4086 ((code >= 0x2619) && (code <= 0x266e)) ||
4087 ((code >= 0x2670) && (code <= 0x2671)) ||
4088 ((code >= 0x2701) && (code <= 0x2704)) ||
4089 ((code >= 0x2706) && (code <= 0x2709)) ||
4090 ((code >= 0x270c) && (code <= 0x2727)) ||
4091 ((code >= 0x2729) && (code <= 0x274b)) ||
4093 ((code >= 0x274f) && (code <= 0x2752)) ||
4095 ((code >= 0x2758) && (code <= 0x275e)) ||
4096 ((code >= 0x2761) && (code <= 0x2767)) ||
4098 ((code >= 0x2798) && (code <= 0x27af)) ||
4099 ((code >= 0x27b1) && (code <= 0x27be)) ||
4100 ((code >= 0x2800) && (code <= 0x28ff)) ||
4101 ((code >= 0x2e80) && (code <= 0x2e99)) ||
4102 ((code >= 0x2e9b) && (code <= 0x2ef3)) ||
4103 ((code >= 0x2f00) && (code <= 0x2fd5)) ||
4104 ((code >= 0x2ff0) && (code <= 0x2ffb)) ||
4106 ((code >= 0x3012) && (code <= 0x3013)) ||
4108 ((code >= 0x3036) && (code <= 0x3037)) ||
4109 ((code >= 0x303e) && (code <= 0x303f)) ||
4110 ((code >= 0x3190) && (code <= 0x3191)) ||
4111 ((code >= 0x3196) && (code <= 0x319f)) ||
4112 ((code >= 0x3200) && (code <= 0x321c)) ||
4113 ((code >= 0x322a) && (code <= 0x3243)) ||
4114 ((code >= 0x3260) && (code <= 0x327b)) ||
4116 ((code >= 0x328a) && (code <= 0x32b0)) ||
4117 ((code >= 0x32c0) && (code <= 0x32cb)) ||
4118 ((code >= 0x32d0) && (code <= 0x32fe)) ||
4119 ((code >= 0x3300) && (code <= 0x3376)) ||
4120 ((code >= 0x337b) && (code <= 0x33dd)) ||
4121 ((code >= 0x33e0) && (code <= 0x33fe)) ||
4122 ((code >= 0xa490) && (code <= 0xa4a1)) ||
4123 ((code >= 0xa4a4) && (code <= 0xa4b3)) ||
4124 ((code >= 0xa4b5) && (code <= 0xa4c0)) ||
4125 ((code >= 0xa4c2) && (code <= 0xa4c4)) ||
4129 ((code >= 0xffed) && (code <= 0xffee)) ||
4130 ((code >= 0xfffc) && (code <= 0xfffd)) ||
4131 ((code >= 0x1d000) && (code <= 0x1d0f5)) ||
4132 ((code >= 0x1d100) && (code <= 0x1d126)) ||
4133 ((code >= 0x1d12a) && (code <= 0x1d164)) ||
4134 ((code >= 0x1d16a) && (code <= 0x1d16c)) ||
4135 ((code >= 0x1d183) && (code <= 0x1d184)) ||
4136 ((code >= 0x1d18c) && (code <= 0x1d1a9)) ||
4137 ((code >= 0x1d1ae) && (code <= 0x1d1dd)));
4142 * @code: UCS code point
4144 * Check whether the character is part of Z UCS Category
4146 * Returns 1 if true 0 otherwise
4149 xmlUCSIsCatZ(int code) {
4150 return((code == 0x20) ||
4153 ((code >= 0x2000) && (code <= 0x200b)) ||
4154 ((code >= 0x2028) && (code <= 0x2029)) ||
4161 * @code: UCS code point
4163 * Check whether the character is part of Zl UCS Category
4165 * Returns 1 if true 0 otherwise
4168 xmlUCSIsCatZl(int code) {
4169 return((code == 0x2028));
4174 * @code: UCS code point
4176 * Check whether the character is part of Zp UCS Category
4178 * Returns 1 if true 0 otherwise
4181 xmlUCSIsCatZp(int code) {
4182 return((code == 0x2029));
4187 * @code: UCS code point
4189 * Check whether the character is part of Zs UCS Category
4191 * Returns 1 if true 0 otherwise
4194 xmlUCSIsCatZs(int code) {
4195 return((code == 0x20) ||
4198 ((code >= 0x2000) && (code <= 0x200b)) ||
4205 * @code: UCS code point
4206 * @cat: UCS Category name
4208 * Check whether the caracter is part of the UCS Category
4210 * Returns 1 if true, 0 if false and -1 on unknown category
4213 xmlUCSIsCat(int code, const char *cat) {
4214 if (!strcmp(cat, "C"))
4215 return(xmlUCSIsCatC(code));
4216 if (!strcmp(cat, "Cc"))
4217 return(xmlUCSIsCatCc(code));
4218 if (!strcmp(cat, "Cf"))
4219 return(xmlUCSIsCatCf(code));
4220 if (!strcmp(cat, "Co"))
4221 return(xmlUCSIsCatCo(code));
4222 if (!strcmp(cat, "Cs"))
4223 return(xmlUCSIsCatCs(code));
4224 if (!strcmp(cat, "L"))
4225 return(xmlUCSIsCatL(code));
4226 if (!strcmp(cat, "Ll"))
4227 return(xmlUCSIsCatLl(code));
4228 if (!strcmp(cat, "Lm"))
4229 return(xmlUCSIsCatLm(code));
4230 if (!strcmp(cat, "Lo"))
4231 return(xmlUCSIsCatLo(code));
4232 if (!strcmp(cat, "Lt"))
4233 return(xmlUCSIsCatLt(code));
4234 if (!strcmp(cat, "Lu"))
4235 return(xmlUCSIsCatLu(code));
4236 if (!strcmp(cat, "M"))
4237 return(xmlUCSIsCatM(code));
4238 if (!strcmp(cat, "Mc"))
4239 return(xmlUCSIsCatMc(code));
4240 if (!strcmp(cat, "Me"))
4241 return(xmlUCSIsCatMe(code));
4242 if (!strcmp(cat, "Mn"))
4243 return(xmlUCSIsCatMn(code));
4244 if (!strcmp(cat, "N"))
4245 return(xmlUCSIsCatN(code));
4246 if (!strcmp(cat, "Nd"))
4247 return(xmlUCSIsCatNd(code));
4248 if (!strcmp(cat, "Nl"))
4249 return(xmlUCSIsCatNl(code));
4250 if (!strcmp(cat, "No"))
4251 return(xmlUCSIsCatNo(code));
4252 if (!strcmp(cat, "P"))
4253 return(xmlUCSIsCatP(code));
4254 if (!strcmp(cat, "Pc"))
4255 return(xmlUCSIsCatPc(code));
4256 if (!strcmp(cat, "Pd"))
4257 return(xmlUCSIsCatPd(code));
4258 if (!strcmp(cat, "Pe"))
4259 return(xmlUCSIsCatPe(code));
4260 if (!strcmp(cat, "Pf"))
4261 return(xmlUCSIsCatPf(code));
4262 if (!strcmp(cat, "Pi"))
4263 return(xmlUCSIsCatPi(code));
4264 if (!strcmp(cat, "Po"))
4265 return(xmlUCSIsCatPo(code));
4266 if (!strcmp(cat, "Ps"))
4267 return(xmlUCSIsCatPs(code));
4268 if (!strcmp(cat, "S"))
4269 return(xmlUCSIsCatS(code));
4270 if (!strcmp(cat, "Sc"))
4271 return(xmlUCSIsCatSc(code));
4272 if (!strcmp(cat, "Sk"))
4273 return(xmlUCSIsCatSk(code));
4274 if (!strcmp(cat, "Sm"))
4275 return(xmlUCSIsCatSm(code));
4276 if (!strcmp(cat, "So"))
4277 return(xmlUCSIsCatSo(code));
4278 if (!strcmp(cat, "Z"))
4279 return(xmlUCSIsCatZ(code));
4280 if (!strcmp(cat, "Zl"))
4281 return(xmlUCSIsCatZl(code));
4282 if (!strcmp(cat, "Zp"))
4283 return(xmlUCSIsCatZp(code));
4284 if (!strcmp(cat, "Zs"))
4285 return(xmlUCSIsCatZs(code));
4290 #endif /* LIBXML_UNICODE_ENABLED */