xmlunicode.c 100 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177
  1. /*
  2. * xmlunicode.c: this module implements the Unicode character APIs
  3. *
  4. * This file is automatically generated from the
  5. * UCS description files of the Unicode Character Database
  6. * http://www.unicode.org/Public/4.0-Update1/UCD-4.0.1.html
  7. * using the genUnicode.py Python script.
  8. *
  9. * Generation date: Mon Mar 27 11:09:52 2006
  10. * Sources: Blocks-4.0.1.txt UnicodeData-4.0.1.txt
  11. * Daniel Veillard <veillard@redhat.com>
  12. */
  13. #define IN_LIBXML
  14. #include "libxml.h"
  15. #ifdef LIBXML_UNICODE_ENABLED
  16. #include <string.h>
  17. #include <libxml/xmlversion.h>
  18. #include <libxml/xmlunicode.h>
  19. #include <libxml/chvalid.h>
  20. typedef int (xmlIntFunc)(int); /* just to keep one's mind untwisted */
  21. typedef struct {
  22. const char *rangename;
  23. xmlIntFunc *func;
  24. } xmlUnicodeRange;
  25. typedef struct {
  26. const xmlUnicodeRange *table;
  27. int numentries;
  28. } xmlUnicodeNameTable;
  29. static xmlIntFunc *xmlUnicodeLookup(const xmlUnicodeNameTable *tptr, const char *tname);
  30. static const xmlUnicodeRange xmlUnicodeBlocks[] = {
  31. {"AegeanNumbers", xmlUCSIsAegeanNumbers},
  32. {"AlphabeticPresentationForms", xmlUCSIsAlphabeticPresentationForms},
  33. {"Arabic", xmlUCSIsArabic},
  34. {"ArabicPresentationForms-A", xmlUCSIsArabicPresentationFormsA},
  35. {"ArabicPresentationForms-B", xmlUCSIsArabicPresentationFormsB},
  36. {"Armenian", xmlUCSIsArmenian},
  37. {"Arrows", xmlUCSIsArrows},
  38. {"BasicLatin", xmlUCSIsBasicLatin},
  39. {"Bengali", xmlUCSIsBengali},
  40. {"BlockElements", xmlUCSIsBlockElements},
  41. {"Bopomofo", xmlUCSIsBopomofo},
  42. {"BopomofoExtended", xmlUCSIsBopomofoExtended},
  43. {"BoxDrawing", xmlUCSIsBoxDrawing},
  44. {"BraillePatterns", xmlUCSIsBraillePatterns},
  45. {"Buhid", xmlUCSIsBuhid},
  46. {"ByzantineMusicalSymbols", xmlUCSIsByzantineMusicalSymbols},
  47. {"CJKCompatibility", xmlUCSIsCJKCompatibility},
  48. {"CJKCompatibilityForms", xmlUCSIsCJKCompatibilityForms},
  49. {"CJKCompatibilityIdeographs", xmlUCSIsCJKCompatibilityIdeographs},
  50. {"CJKCompatibilityIdeographsSupplement", xmlUCSIsCJKCompatibilityIdeographsSupplement},
  51. {"CJKRadicalsSupplement", xmlUCSIsCJKRadicalsSupplement},
  52. {"CJKSymbolsandPunctuation", xmlUCSIsCJKSymbolsandPunctuation},
  53. {"CJKUnifiedIdeographs", xmlUCSIsCJKUnifiedIdeographs},
  54. {"CJKUnifiedIdeographsExtensionA", xmlUCSIsCJKUnifiedIdeographsExtensionA},
  55. {"CJKUnifiedIdeographsExtensionB", xmlUCSIsCJKUnifiedIdeographsExtensionB},
  56. {"Cherokee", xmlUCSIsCherokee},
  57. {"CombiningDiacriticalMarks", xmlUCSIsCombiningDiacriticalMarks},
  58. {"CombiningDiacriticalMarksforSymbols", xmlUCSIsCombiningDiacriticalMarksforSymbols},
  59. {"CombiningHalfMarks", xmlUCSIsCombiningHalfMarks},
  60. {"CombiningMarksforSymbols", xmlUCSIsCombiningMarksforSymbols},
  61. {"ControlPictures", xmlUCSIsControlPictures},
  62. {"CurrencySymbols", xmlUCSIsCurrencySymbols},
  63. {"CypriotSyllabary", xmlUCSIsCypriotSyllabary},
  64. {"Cyrillic", xmlUCSIsCyrillic},
  65. {"CyrillicSupplement", xmlUCSIsCyrillicSupplement},
  66. {"Deseret", xmlUCSIsDeseret},
  67. {"Devanagari", xmlUCSIsDevanagari},
  68. {"Dingbats", xmlUCSIsDingbats},
  69. {"EnclosedAlphanumerics", xmlUCSIsEnclosedAlphanumerics},
  70. {"EnclosedCJKLettersandMonths", xmlUCSIsEnclosedCJKLettersandMonths},
  71. {"Ethiopic", xmlUCSIsEthiopic},
  72. {"GeneralPunctuation", xmlUCSIsGeneralPunctuation},
  73. {"GeometricShapes", xmlUCSIsGeometricShapes},
  74. {"Georgian", xmlUCSIsGeorgian},
  75. {"Gothic", xmlUCSIsGothic},
  76. {"Greek", xmlUCSIsGreek},
  77. {"GreekExtended", xmlUCSIsGreekExtended},
  78. {"GreekandCoptic", xmlUCSIsGreekandCoptic},
  79. {"Gujarati", xmlUCSIsGujarati},
  80. {"Gurmukhi", xmlUCSIsGurmukhi},
  81. {"HalfwidthandFullwidthForms", xmlUCSIsHalfwidthandFullwidthForms},
  82. {"HangulCompatibilityJamo", xmlUCSIsHangulCompatibilityJamo},
  83. {"HangulJamo", xmlUCSIsHangulJamo},
  84. {"HangulSyllables", xmlUCSIsHangulSyllables},
  85. {"Hanunoo", xmlUCSIsHanunoo},
  86. {"Hebrew", xmlUCSIsHebrew},
  87. {"HighPrivateUseSurrogates", xmlUCSIsHighPrivateUseSurrogates},
  88. {"HighSurrogates", xmlUCSIsHighSurrogates},
  89. {"Hiragana", xmlUCSIsHiragana},
  90. {"IPAExtensions", xmlUCSIsIPAExtensions},
  91. {"IdeographicDescriptionCharacters", xmlUCSIsIdeographicDescriptionCharacters},
  92. {"Kanbun", xmlUCSIsKanbun},
  93. {"KangxiRadicals", xmlUCSIsKangxiRadicals},
  94. {"Kannada", xmlUCSIsKannada},
  95. {"Katakana", xmlUCSIsKatakana},
  96. {"KatakanaPhoneticExtensions", xmlUCSIsKatakanaPhoneticExtensions},
  97. {"Khmer", xmlUCSIsKhmer},
  98. {"KhmerSymbols", xmlUCSIsKhmerSymbols},
  99. {"Lao", xmlUCSIsLao},
  100. {"Latin-1Supplement", xmlUCSIsLatin1Supplement},
  101. {"LatinExtended-A", xmlUCSIsLatinExtendedA},
  102. {"LatinExtended-B", xmlUCSIsLatinExtendedB},
  103. {"LatinExtendedAdditional", xmlUCSIsLatinExtendedAdditional},
  104. {"LetterlikeSymbols", xmlUCSIsLetterlikeSymbols},
  105. {"Limbu", xmlUCSIsLimbu},
  106. {"LinearBIdeograms", xmlUCSIsLinearBIdeograms},
  107. {"LinearBSyllabary", xmlUCSIsLinearBSyllabary},
  108. {"LowSurrogates", xmlUCSIsLowSurrogates},
  109. {"Malayalam", xmlUCSIsMalayalam},
  110. {"MathematicalAlphanumericSymbols", xmlUCSIsMathematicalAlphanumericSymbols},
  111. {"MathematicalOperators", xmlUCSIsMathematicalOperators},
  112. {"MiscellaneousMathematicalSymbols-A", xmlUCSIsMiscellaneousMathematicalSymbolsA},
  113. {"MiscellaneousMathematicalSymbols-B", xmlUCSIsMiscellaneousMathematicalSymbolsB},
  114. {"MiscellaneousSymbols", xmlUCSIsMiscellaneousSymbols},
  115. {"MiscellaneousSymbolsandArrows", xmlUCSIsMiscellaneousSymbolsandArrows},
  116. {"MiscellaneousTechnical", xmlUCSIsMiscellaneousTechnical},
  117. {"Mongolian", xmlUCSIsMongolian},
  118. {"MusicalSymbols", xmlUCSIsMusicalSymbols},
  119. {"Myanmar", xmlUCSIsMyanmar},
  120. {"NumberForms", xmlUCSIsNumberForms},
  121. {"Ogham", xmlUCSIsOgham},
  122. {"OldItalic", xmlUCSIsOldItalic},
  123. {"OpticalCharacterRecognition", xmlUCSIsOpticalCharacterRecognition},
  124. {"Oriya", xmlUCSIsOriya},
  125. {"Osmanya", xmlUCSIsOsmanya},
  126. {"PhoneticExtensions", xmlUCSIsPhoneticExtensions},
  127. {"PrivateUse", xmlUCSIsPrivateUse},
  128. {"PrivateUseArea", xmlUCSIsPrivateUseArea},
  129. {"Runic", xmlUCSIsRunic},
  130. {"Shavian", xmlUCSIsShavian},
  131. {"Sinhala", xmlUCSIsSinhala},
  132. {"SmallFormVariants", xmlUCSIsSmallFormVariants},
  133. {"SpacingModifierLetters", xmlUCSIsSpacingModifierLetters},
  134. {"Specials", xmlUCSIsSpecials},
  135. {"SuperscriptsandSubscripts", xmlUCSIsSuperscriptsandSubscripts},
  136. {"SupplementalArrows-A", xmlUCSIsSupplementalArrowsA},
  137. {"SupplementalArrows-B", xmlUCSIsSupplementalArrowsB},
  138. {"SupplementalMathematicalOperators", xmlUCSIsSupplementalMathematicalOperators},
  139. {"SupplementaryPrivateUseArea-A", xmlUCSIsSupplementaryPrivateUseAreaA},
  140. {"SupplementaryPrivateUseArea-B", xmlUCSIsSupplementaryPrivateUseAreaB},
  141. {"Syriac", xmlUCSIsSyriac},
  142. {"Tagalog", xmlUCSIsTagalog},
  143. {"Tagbanwa", xmlUCSIsTagbanwa},
  144. {"Tags", xmlUCSIsTags},
  145. {"TaiLe", xmlUCSIsTaiLe},
  146. {"TaiXuanJingSymbols", xmlUCSIsTaiXuanJingSymbols},
  147. {"Tamil", xmlUCSIsTamil},
  148. {"Telugu", xmlUCSIsTelugu},
  149. {"Thaana", xmlUCSIsThaana},
  150. {"Thai", xmlUCSIsThai},
  151. {"Tibetan", xmlUCSIsTibetan},
  152. {"Ugaritic", xmlUCSIsUgaritic},
  153. {"UnifiedCanadianAboriginalSyllabics", xmlUCSIsUnifiedCanadianAboriginalSyllabics},
  154. {"VariationSelectors", xmlUCSIsVariationSelectors},
  155. {"VariationSelectorsSupplement", xmlUCSIsVariationSelectorsSupplement},
  156. {"YiRadicals", xmlUCSIsYiRadicals},
  157. {"YiSyllables", xmlUCSIsYiSyllables},
  158. {"YijingHexagramSymbols", xmlUCSIsYijingHexagramSymbols}};
  159. static const xmlUnicodeRange xmlUnicodeCats[] = {
  160. {"C", xmlUCSIsCatC},
  161. {"Cc", xmlUCSIsCatCc},
  162. {"Cf", xmlUCSIsCatCf},
  163. {"Co", xmlUCSIsCatCo},
  164. {"Cs", xmlUCSIsCatCs},
  165. {"L", xmlUCSIsCatL},
  166. {"Ll", xmlUCSIsCatLl},
  167. {"Lm", xmlUCSIsCatLm},
  168. {"Lo", xmlUCSIsCatLo},
  169. {"Lt", xmlUCSIsCatLt},
  170. {"Lu", xmlUCSIsCatLu},
  171. {"M", xmlUCSIsCatM},
  172. {"Mc", xmlUCSIsCatMc},
  173. {"Me", xmlUCSIsCatMe},
  174. {"Mn", xmlUCSIsCatMn},
  175. {"N", xmlUCSIsCatN},
  176. {"Nd", xmlUCSIsCatNd},
  177. {"Nl", xmlUCSIsCatNl},
  178. {"No", xmlUCSIsCatNo},
  179. {"P", xmlUCSIsCatP},
  180. {"Pc", xmlUCSIsCatPc},
  181. {"Pd", xmlUCSIsCatPd},
  182. {"Pe", xmlUCSIsCatPe},
  183. {"Pf", xmlUCSIsCatPf},
  184. {"Pi", xmlUCSIsCatPi},
  185. {"Po", xmlUCSIsCatPo},
  186. {"Ps", xmlUCSIsCatPs},
  187. {"S", xmlUCSIsCatS},
  188. {"Sc", xmlUCSIsCatSc},
  189. {"Sk", xmlUCSIsCatSk},
  190. {"Sm", xmlUCSIsCatSm},
  191. {"So", xmlUCSIsCatSo},
  192. {"Z", xmlUCSIsCatZ},
  193. {"Zl", xmlUCSIsCatZl},
  194. {"Zp", xmlUCSIsCatZp},
  195. {"Zs", xmlUCSIsCatZs}};
  196. static const xmlChSRange xmlCS[] = {{0x0, 0x1f}, {0x7f, 0x9f},
  197. {0xad, 0xad}, {0x600, 0x603}, {0x6dd, 0x6dd}, {0x70f, 0x70f},
  198. {0x17b4, 0x17b5}, {0x200b, 0x200f}, {0x202a, 0x202e}, {0x2060, 0x2063},
  199. {0x206a, 0x206f}, {0xd800, 0xd800}, {0xdb7f, 0xdb80}, {0xdbff, 0xdc00},
  200. {0xdfff, 0xe000}, {0xf8ff, 0xf8ff}, {0xfeff, 0xfeff}, {0xfff9, 0xfffb} };
  201. static const xmlChLRange xmlCL[] = {{0x1d173, 0x1d17a}, {0xe0001, 0xe0001},
  202. {0xe0020, 0xe007f}, {0xf0000, 0xf0000}, {0xffffd, 0xffffd},
  203. {0x100000, 0x100000}, {0x10fffd, 0x10fffd} };
  204. static const xmlChRangeGroup xmlCG = {18,7,xmlCS,xmlCL};
  205. static const xmlChSRange xmlCfS[] = {{0xad, 0xad}, {0x600, 0x603},
  206. {0x6dd, 0x6dd}, {0x70f, 0x70f}, {0x17b4, 0x17b5}, {0x200b, 0x200f},
  207. {0x202a, 0x202e}, {0x2060, 0x2063}, {0x206a, 0x206f}, {0xfeff, 0xfeff},
  208. {0xfff9, 0xfffb} };
  209. static const xmlChLRange xmlCfL[] = {{0x1d173, 0x1d17a}, {0xe0001, 0xe0001},
  210. {0xe0020, 0xe007f} };
  211. static const xmlChRangeGroup xmlCfG = {11,3,xmlCfS,xmlCfL};
  212. static const xmlChSRange xmlLS[] = {{0x41, 0x5a}, {0x61, 0x7a},
  213. {0xaa, 0xaa}, {0xb5, 0xb5}, {0xba, 0xba}, {0xc0, 0xd6}, {0xd8, 0xf6},
  214. {0xf8, 0x236}, {0x250, 0x2c1}, {0x2c6, 0x2d1}, {0x2e0, 0x2e4},
  215. {0x2ee, 0x2ee}, {0x37a, 0x37a}, {0x386, 0x386}, {0x388, 0x38a},
  216. {0x38c, 0x38c}, {0x38e, 0x3a1}, {0x3a3, 0x3ce}, {0x3d0, 0x3f5},
  217. {0x3f7, 0x3fb}, {0x400, 0x481}, {0x48a, 0x4ce}, {0x4d0, 0x4f5},
  218. {0x4f8, 0x4f9}, {0x500, 0x50f}, {0x531, 0x556}, {0x559, 0x559},
  219. {0x561, 0x587}, {0x5d0, 0x5ea}, {0x5f0, 0x5f2}, {0x621, 0x63a},
  220. {0x640, 0x64a}, {0x66e, 0x66f}, {0x671, 0x6d3}, {0x6d5, 0x6d5},
  221. {0x6e5, 0x6e6}, {0x6ee, 0x6ef}, {0x6fa, 0x6fc}, {0x6ff, 0x6ff},
  222. {0x710, 0x710}, {0x712, 0x72f}, {0x74d, 0x74f}, {0x780, 0x7a5},
  223. {0x7b1, 0x7b1}, {0x904, 0x939}, {0x93d, 0x93d}, {0x950, 0x950},
  224. {0x958, 0x961}, {0x985, 0x98c}, {0x98f, 0x990}, {0x993, 0x9a8},
  225. {0x9aa, 0x9b0}, {0x9b2, 0x9b2}, {0x9b6, 0x9b9}, {0x9bd, 0x9bd},
  226. {0x9dc, 0x9dd}, {0x9df, 0x9e1}, {0x9f0, 0x9f1}, {0xa05, 0xa0a},
  227. {0xa0f, 0xa10}, {0xa13, 0xa28}, {0xa2a, 0xa30}, {0xa32, 0xa33},
  228. {0xa35, 0xa36}, {0xa38, 0xa39}, {0xa59, 0xa5c}, {0xa5e, 0xa5e},
  229. {0xa72, 0xa74}, {0xa85, 0xa8d}, {0xa8f, 0xa91}, {0xa93, 0xaa8},
  230. {0xaaa, 0xab0}, {0xab2, 0xab3}, {0xab5, 0xab9}, {0xabd, 0xabd},
  231. {0xad0, 0xad0}, {0xae0, 0xae1}, {0xb05, 0xb0c}, {0xb0f, 0xb10},
  232. {0xb13, 0xb28}, {0xb2a, 0xb30}, {0xb32, 0xb33}, {0xb35, 0xb39},
  233. {0xb3d, 0xb3d}, {0xb5c, 0xb5d}, {0xb5f, 0xb61}, {0xb71, 0xb71},
  234. {0xb83, 0xb83}, {0xb85, 0xb8a}, {0xb8e, 0xb90}, {0xb92, 0xb95},
  235. {0xb99, 0xb9a}, {0xb9c, 0xb9c}, {0xb9e, 0xb9f}, {0xba3, 0xba4},
  236. {0xba8, 0xbaa}, {0xbae, 0xbb5}, {0xbb7, 0xbb9}, {0xc05, 0xc0c},
  237. {0xc0e, 0xc10}, {0xc12, 0xc28}, {0xc2a, 0xc33}, {0xc35, 0xc39},
  238. {0xc60, 0xc61}, {0xc85, 0xc8c}, {0xc8e, 0xc90}, {0xc92, 0xca8},
  239. {0xcaa, 0xcb3}, {0xcb5, 0xcb9}, {0xcbd, 0xcbd}, {0xcde, 0xcde},
  240. {0xce0, 0xce1}, {0xd05, 0xd0c}, {0xd0e, 0xd10}, {0xd12, 0xd28},
  241. {0xd2a, 0xd39}, {0xd60, 0xd61}, {0xd85, 0xd96}, {0xd9a, 0xdb1},
  242. {0xdb3, 0xdbb}, {0xdbd, 0xdbd}, {0xdc0, 0xdc6}, {0xe01, 0xe30},
  243. {0xe32, 0xe33}, {0xe40, 0xe46}, {0xe81, 0xe82}, {0xe84, 0xe84},
  244. {0xe87, 0xe88}, {0xe8a, 0xe8a}, {0xe8d, 0xe8d}, {0xe94, 0xe97},
  245. {0xe99, 0xe9f}, {0xea1, 0xea3}, {0xea5, 0xea5}, {0xea7, 0xea7},
  246. {0xeaa, 0xeab}, {0xead, 0xeb0}, {0xeb2, 0xeb3}, {0xebd, 0xebd},
  247. {0xec0, 0xec4}, {0xec6, 0xec6}, {0xedc, 0xedd}, {0xf00, 0xf00},
  248. {0xf40, 0xf47}, {0xf49, 0xf6a}, {0xf88, 0xf8b}, {0x1000, 0x1021},
  249. {0x1023, 0x1027}, {0x1029, 0x102a}, {0x1050, 0x1055}, {0x10a0, 0x10c5},
  250. {0x10d0, 0x10f8}, {0x1100, 0x1159}, {0x115f, 0x11a2}, {0x11a8, 0x11f9},
  251. {0x1200, 0x1206}, {0x1208, 0x1246}, {0x1248, 0x1248}, {0x124a, 0x124d},
  252. {0x1250, 0x1256}, {0x1258, 0x1258}, {0x125a, 0x125d}, {0x1260, 0x1286},
  253. {0x1288, 0x1288}, {0x128a, 0x128d}, {0x1290, 0x12ae}, {0x12b0, 0x12b0},
  254. {0x12b2, 0x12b5}, {0x12b8, 0x12be}, {0x12c0, 0x12c0}, {0x12c2, 0x12c5},
  255. {0x12c8, 0x12ce}, {0x12d0, 0x12d6}, {0x12d8, 0x12ee}, {0x12f0, 0x130e},
  256. {0x1310, 0x1310}, {0x1312, 0x1315}, {0x1318, 0x131e}, {0x1320, 0x1346},
  257. {0x1348, 0x135a}, {0x13a0, 0x13f4}, {0x1401, 0x166c}, {0x166f, 0x1676},
  258. {0x1681, 0x169a}, {0x16a0, 0x16ea}, {0x1700, 0x170c}, {0x170e, 0x1711},
  259. {0x1720, 0x1731}, {0x1740, 0x1751}, {0x1760, 0x176c}, {0x176e, 0x1770},
  260. {0x1780, 0x17b3}, {0x17d7, 0x17d7}, {0x17dc, 0x17dc}, {0x1820, 0x1877},
  261. {0x1880, 0x18a8}, {0x1900, 0x191c}, {0x1950, 0x196d}, {0x1970, 0x1974},
  262. {0x1d00, 0x1d6b}, {0x1e00, 0x1e9b}, {0x1ea0, 0x1ef9}, {0x1f00, 0x1f15},
  263. {0x1f18, 0x1f1d}, {0x1f20, 0x1f45}, {0x1f48, 0x1f4d}, {0x1f50, 0x1f57},
  264. {0x1f59, 0x1f59}, {0x1f5b, 0x1f5b}, {0x1f5d, 0x1f5d}, {0x1f5f, 0x1f7d},
  265. {0x1f80, 0x1fb4}, {0x1fb6, 0x1fbc}, {0x1fbe, 0x1fbe}, {0x1fc2, 0x1fc4},
  266. {0x1fc6, 0x1fcc}, {0x1fd0, 0x1fd3}, {0x1fd6, 0x1fdb}, {0x1fe0, 0x1fec},
  267. {0x1ff2, 0x1ff4}, {0x1ff6, 0x1ffc}, {0x2071, 0x2071}, {0x207f, 0x207f},
  268. {0x2102, 0x2102}, {0x2107, 0x2107}, {0x210a, 0x2113}, {0x2115, 0x2115},
  269. {0x2119, 0x211d}, {0x2124, 0x2124}, {0x2126, 0x2126}, {0x2128, 0x2128},
  270. {0x212a, 0x212d}, {0x212f, 0x2131}, {0x2133, 0x2139}, {0x213d, 0x213f},
  271. {0x2145, 0x2149}, {0x3005, 0x3006}, {0x3031, 0x3035}, {0x303b, 0x303c},
  272. {0x3041, 0x3096}, {0x309d, 0x309f}, {0x30a1, 0x30fa}, {0x30fc, 0x30ff},
  273. {0x3105, 0x312c}, {0x3131, 0x318e}, {0x31a0, 0x31b7}, {0x31f0, 0x31ff},
  274. {0x3400, 0x3400}, {0x4db5, 0x4db5}, {0x4e00, 0x4e00}, {0x9fa5, 0x9fa5},
  275. {0xa000, 0xa48c}, {0xac00, 0xac00}, {0xd7a3, 0xd7a3}, {0xf900, 0xfa2d},
  276. {0xfa30, 0xfa6a}, {0xfb00, 0xfb06}, {0xfb13, 0xfb17}, {0xfb1d, 0xfb1d},
  277. {0xfb1f, 0xfb28}, {0xfb2a, 0xfb36}, {0xfb38, 0xfb3c}, {0xfb3e, 0xfb3e},
  278. {0xfb40, 0xfb41}, {0xfb43, 0xfb44}, {0xfb46, 0xfbb1}, {0xfbd3, 0xfd3d},
  279. {0xfd50, 0xfd8f}, {0xfd92, 0xfdc7}, {0xfdf0, 0xfdfb}, {0xfe70, 0xfe74},
  280. {0xfe76, 0xfefc}, {0xff21, 0xff3a}, {0xff41, 0xff5a}, {0xff66, 0xffbe},
  281. {0xffc2, 0xffc7}, {0xffca, 0xffcf}, {0xffd2, 0xffd7}, {0xffda, 0xffdc} };
  282. static const xmlChLRange xmlLL[] = {{0x10000, 0x1000b}, {0x1000d, 0x10026},
  283. {0x10028, 0x1003a}, {0x1003c, 0x1003d}, {0x1003f, 0x1004d},
  284. {0x10050, 0x1005d}, {0x10080, 0x100fa}, {0x10300, 0x1031e},
  285. {0x10330, 0x10349}, {0x10380, 0x1039d}, {0x10400, 0x1049d},
  286. {0x10800, 0x10805}, {0x10808, 0x10808}, {0x1080a, 0x10835},
  287. {0x10837, 0x10838}, {0x1083c, 0x1083c}, {0x1083f, 0x1083f},
  288. {0x1d400, 0x1d454}, {0x1d456, 0x1d49c}, {0x1d49e, 0x1d49f},
  289. {0x1d4a2, 0x1d4a2}, {0x1d4a5, 0x1d4a6}, {0x1d4a9, 0x1d4ac},
  290. {0x1d4ae, 0x1d4b9}, {0x1d4bb, 0x1d4bb}, {0x1d4bd, 0x1d4c3},
  291. {0x1d4c5, 0x1d505}, {0x1d507, 0x1d50a}, {0x1d50d, 0x1d514},
  292. {0x1d516, 0x1d51c}, {0x1d51e, 0x1d539}, {0x1d53b, 0x1d53e},
  293. {0x1d540, 0x1d544}, {0x1d546, 0x1d546}, {0x1d54a, 0x1d550},
  294. {0x1d552, 0x1d6a3}, {0x1d6a8, 0x1d6c0}, {0x1d6c2, 0x1d6da},
  295. {0x1d6dc, 0x1d6fa}, {0x1d6fc, 0x1d714}, {0x1d716, 0x1d734},
  296. {0x1d736, 0x1d74e}, {0x1d750, 0x1d76e}, {0x1d770, 0x1d788},
  297. {0x1d78a, 0x1d7a8}, {0x1d7aa, 0x1d7c2}, {0x1d7c4, 0x1d7c9},
  298. {0x20000, 0x20000}, {0x2a6d6, 0x2a6d6}, {0x2f800, 0x2fa1d} };
  299. static const xmlChRangeGroup xmlLG = {279,50,xmlLS,xmlLL};
  300. static const xmlChSRange xmlLlS[] = {{0x61, 0x7a}, {0xaa, 0xaa},
  301. {0xb5, 0xb5}, {0xba, 0xba}, {0xdf, 0xf6}, {0xf8, 0xff}, {0x101, 0x101},
  302. {0x103, 0x103}, {0x105, 0x105}, {0x107, 0x107}, {0x109, 0x109},
  303. {0x10b, 0x10b}, {0x10d, 0x10d}, {0x10f, 0x10f}, {0x111, 0x111},
  304. {0x113, 0x113}, {0x115, 0x115}, {0x117, 0x117}, {0x119, 0x119},
  305. {0x11b, 0x11b}, {0x11d, 0x11d}, {0x11f, 0x11f}, {0x121, 0x121},
  306. {0x123, 0x123}, {0x125, 0x125}, {0x127, 0x127}, {0x129, 0x129},
  307. {0x12b, 0x12b}, {0x12d, 0x12d}, {0x12f, 0x12f}, {0x131, 0x131},
  308. {0x133, 0x133}, {0x135, 0x135}, {0x137, 0x138}, {0x13a, 0x13a},
  309. {0x13c, 0x13c}, {0x13e, 0x13e}, {0x140, 0x140}, {0x142, 0x142},
  310. {0x144, 0x144}, {0x146, 0x146}, {0x148, 0x149}, {0x14b, 0x14b},
  311. {0x14d, 0x14d}, {0x14f, 0x14f}, {0x151, 0x151}, {0x153, 0x153},
  312. {0x155, 0x155}, {0x157, 0x157}, {0x159, 0x159}, {0x15b, 0x15b},
  313. {0x15d, 0x15d}, {0x15f, 0x15f}, {0x161, 0x161}, {0x163, 0x163},
  314. {0x165, 0x165}, {0x167, 0x167}, {0x169, 0x169}, {0x16b, 0x16b},
  315. {0x16d, 0x16d}, {0x16f, 0x16f}, {0x171, 0x171}, {0x173, 0x173},
  316. {0x175, 0x175}, {0x177, 0x177}, {0x17a, 0x17a}, {0x17c, 0x17c},
  317. {0x17e, 0x180}, {0x183, 0x183}, {0x185, 0x185}, {0x188, 0x188},
  318. {0x18c, 0x18d}, {0x192, 0x192}, {0x195, 0x195}, {0x199, 0x19b},
  319. {0x19e, 0x19e}, {0x1a1, 0x1a1}, {0x1a3, 0x1a3}, {0x1a5, 0x1a5},
  320. {0x1a8, 0x1a8}, {0x1aa, 0x1ab}, {0x1ad, 0x1ad}, {0x1b0, 0x1b0},
  321. {0x1b4, 0x1b4}, {0x1b6, 0x1b6}, {0x1b9, 0x1ba}, {0x1bd, 0x1bf},
  322. {0x1c6, 0x1c6}, {0x1c9, 0x1c9}, {0x1cc, 0x1cc}, {0x1ce, 0x1ce},
  323. {0x1d0, 0x1d0}, {0x1d2, 0x1d2}, {0x1d4, 0x1d4}, {0x1d6, 0x1d6},
  324. {0x1d8, 0x1d8}, {0x1da, 0x1da}, {0x1dc, 0x1dd}, {0x1df, 0x1df},
  325. {0x1e1, 0x1e1}, {0x1e3, 0x1e3}, {0x1e5, 0x1e5}, {0x1e7, 0x1e7},
  326. {0x1e9, 0x1e9}, {0x1eb, 0x1eb}, {0x1ed, 0x1ed}, {0x1ef, 0x1f0},
  327. {0x1f3, 0x1f3}, {0x1f5, 0x1f5}, {0x1f9, 0x1f9}, {0x1fb, 0x1fb},
  328. {0x1fd, 0x1fd}, {0x1ff, 0x1ff}, {0x201, 0x201}, {0x203, 0x203},
  329. {0x205, 0x205}, {0x207, 0x207}, {0x209, 0x209}, {0x20b, 0x20b},
  330. {0x20d, 0x20d}, {0x20f, 0x20f}, {0x211, 0x211}, {0x213, 0x213},
  331. {0x215, 0x215}, {0x217, 0x217}, {0x219, 0x219}, {0x21b, 0x21b},
  332. {0x21d, 0x21d}, {0x21f, 0x21f}, {0x221, 0x221}, {0x223, 0x223},
  333. {0x225, 0x225}, {0x227, 0x227}, {0x229, 0x229}, {0x22b, 0x22b},
  334. {0x22d, 0x22d}, {0x22f, 0x22f}, {0x231, 0x231}, {0x233, 0x236},
  335. {0x250, 0x2af}, {0x390, 0x390}, {0x3ac, 0x3ce}, {0x3d0, 0x3d1},
  336. {0x3d5, 0x3d7}, {0x3d9, 0x3d9}, {0x3db, 0x3db}, {0x3dd, 0x3dd},
  337. {0x3df, 0x3df}, {0x3e1, 0x3e1}, {0x3e3, 0x3e3}, {0x3e5, 0x3e5},
  338. {0x3e7, 0x3e7}, {0x3e9, 0x3e9}, {0x3eb, 0x3eb}, {0x3ed, 0x3ed},
  339. {0x3ef, 0x3f3}, {0x3f5, 0x3f5}, {0x3f8, 0x3f8}, {0x3fb, 0x3fb},
  340. {0x430, 0x45f}, {0x461, 0x461}, {0x463, 0x463}, {0x465, 0x465},
  341. {0x467, 0x467}, {0x469, 0x469}, {0x46b, 0x46b}, {0x46d, 0x46d},
  342. {0x46f, 0x46f}, {0x471, 0x471}, {0x473, 0x473}, {0x475, 0x475},
  343. {0x477, 0x477}, {0x479, 0x479}, {0x47b, 0x47b}, {0x47d, 0x47d},
  344. {0x47f, 0x47f}, {0x481, 0x481}, {0x48b, 0x48b}, {0x48d, 0x48d},
  345. {0x48f, 0x48f}, {0x491, 0x491}, {0x493, 0x493}, {0x495, 0x495},
  346. {0x497, 0x497}, {0x499, 0x499}, {0x49b, 0x49b}, {0x49d, 0x49d},
  347. {0x49f, 0x49f}, {0x4a1, 0x4a1}, {0x4a3, 0x4a3}, {0x4a5, 0x4a5},
  348. {0x4a7, 0x4a7}, {0x4a9, 0x4a9}, {0x4ab, 0x4ab}, {0x4ad, 0x4ad},
  349. {0x4af, 0x4af}, {0x4b1, 0x4b1}, {0x4b3, 0x4b3}, {0x4b5, 0x4b5},
  350. {0x4b7, 0x4b7}, {0x4b9, 0x4b9}, {0x4bb, 0x4bb}, {0x4bd, 0x4bd},
  351. {0x4bf, 0x4bf}, {0x4c2, 0x4c2}, {0x4c4, 0x4c4}, {0x4c6, 0x4c6},
  352. {0x4c8, 0x4c8}, {0x4ca, 0x4ca}, {0x4cc, 0x4cc}, {0x4ce, 0x4ce},
  353. {0x4d1, 0x4d1}, {0x4d3, 0x4d3}, {0x4d5, 0x4d5}, {0x4d7, 0x4d7},
  354. {0x4d9, 0x4d9}, {0x4db, 0x4db}, {0x4dd, 0x4dd}, {0x4df, 0x4df},
  355. {0x4e1, 0x4e1}, {0x4e3, 0x4e3}, {0x4e5, 0x4e5}, {0x4e7, 0x4e7},
  356. {0x4e9, 0x4e9}, {0x4eb, 0x4eb}, {0x4ed, 0x4ed}, {0x4ef, 0x4ef},
  357. {0x4f1, 0x4f1}, {0x4f3, 0x4f3}, {0x4f5, 0x4f5}, {0x4f9, 0x4f9},
  358. {0x501, 0x501}, {0x503, 0x503}, {0x505, 0x505}, {0x507, 0x507},
  359. {0x509, 0x509}, {0x50b, 0x50b}, {0x50d, 0x50d}, {0x50f, 0x50f},
  360. {0x561, 0x587}, {0x1d00, 0x1d2b}, {0x1d62, 0x1d6b}, {0x1e01, 0x1e01},
  361. {0x1e03, 0x1e03}, {0x1e05, 0x1e05}, {0x1e07, 0x1e07}, {0x1e09, 0x1e09},
  362. {0x1e0b, 0x1e0b}, {0x1e0d, 0x1e0d}, {0x1e0f, 0x1e0f}, {0x1e11, 0x1e11},
  363. {0x1e13, 0x1e13}, {0x1e15, 0x1e15}, {0x1e17, 0x1e17}, {0x1e19, 0x1e19},
  364. {0x1e1b, 0x1e1b}, {0x1e1d, 0x1e1d}, {0x1e1f, 0x1e1f}, {0x1e21, 0x1e21},
  365. {0x1e23, 0x1e23}, {0x1e25, 0x1e25}, {0x1e27, 0x1e27}, {0x1e29, 0x1e29},
  366. {0x1e2b, 0x1e2b}, {0x1e2d, 0x1e2d}, {0x1e2f, 0x1e2f}, {0x1e31, 0x1e31},
  367. {0x1e33, 0x1e33}, {0x1e35, 0x1e35}, {0x1e37, 0x1e37}, {0x1e39, 0x1e39},
  368. {0x1e3b, 0x1e3b}, {0x1e3d, 0x1e3d}, {0x1e3f, 0x1e3f}, {0x1e41, 0x1e41},
  369. {0x1e43, 0x1e43}, {0x1e45, 0x1e45}, {0x1e47, 0x1e47}, {0x1e49, 0x1e49},
  370. {0x1e4b, 0x1e4b}, {0x1e4d, 0x1e4d}, {0x1e4f, 0x1e4f}, {0x1e51, 0x1e51},
  371. {0x1e53, 0x1e53}, {0x1e55, 0x1e55}, {0x1e57, 0x1e57}, {0x1e59, 0x1e59},
  372. {0x1e5b, 0x1e5b}, {0x1e5d, 0x1e5d}, {0x1e5f, 0x1e5f}, {0x1e61, 0x1e61},
  373. {0x1e63, 0x1e63}, {0x1e65, 0x1e65}, {0x1e67, 0x1e67}, {0x1e69, 0x1e69},
  374. {0x1e6b, 0x1e6b}, {0x1e6d, 0x1e6d}, {0x1e6f, 0x1e6f}, {0x1e71, 0x1e71},
  375. {0x1e73, 0x1e73}, {0x1e75, 0x1e75}, {0x1e77, 0x1e77}, {0x1e79, 0x1e79},
  376. {0x1e7b, 0x1e7b}, {0x1e7d, 0x1e7d}, {0x1e7f, 0x1e7f}, {0x1e81, 0x1e81},
  377. {0x1e83, 0x1e83}, {0x1e85, 0x1e85}, {0x1e87, 0x1e87}, {0x1e89, 0x1e89},
  378. {0x1e8b, 0x1e8b}, {0x1e8d, 0x1e8d}, {0x1e8f, 0x1e8f}, {0x1e91, 0x1e91},
  379. {0x1e93, 0x1e93}, {0x1e95, 0x1e9b}, {0x1ea1, 0x1ea1}, {0x1ea3, 0x1ea3},
  380. {0x1ea5, 0x1ea5}, {0x1ea7, 0x1ea7}, {0x1ea9, 0x1ea9}, {0x1eab, 0x1eab},
  381. {0x1ead, 0x1ead}, {0x1eaf, 0x1eaf}, {0x1eb1, 0x1eb1}, {0x1eb3, 0x1eb3},
  382. {0x1eb5, 0x1eb5}, {0x1eb7, 0x1eb7}, {0x1eb9, 0x1eb9}, {0x1ebb, 0x1ebb},
  383. {0x1ebd, 0x1ebd}, {0x1ebf, 0x1ebf}, {0x1ec1, 0x1ec1}, {0x1ec3, 0x1ec3},
  384. {0x1ec5, 0x1ec5}, {0x1ec7, 0x1ec7}, {0x1ec9, 0x1ec9}, {0x1ecb, 0x1ecb},
  385. {0x1ecd, 0x1ecd}, {0x1ecf, 0x1ecf}, {0x1ed1, 0x1ed1}, {0x1ed3, 0x1ed3},
  386. {0x1ed5, 0x1ed5}, {0x1ed7, 0x1ed7}, {0x1ed9, 0x1ed9}, {0x1edb, 0x1edb},
  387. {0x1edd, 0x1edd}, {0x1edf, 0x1edf}, {0x1ee1, 0x1ee1}, {0x1ee3, 0x1ee3},
  388. {0x1ee5, 0x1ee5}, {0x1ee7, 0x1ee7}, {0x1ee9, 0x1ee9}, {0x1eeb, 0x1eeb},
  389. {0x1eed, 0x1eed}, {0x1eef, 0x1eef}, {0x1ef1, 0x1ef1}, {0x1ef3, 0x1ef3},
  390. {0x1ef5, 0x1ef5}, {0x1ef7, 0x1ef7}, {0x1ef9, 0x1ef9}, {0x1f00, 0x1f07},
  391. {0x1f10, 0x1f15}, {0x1f20, 0x1f27}, {0x1f30, 0x1f37}, {0x1f40, 0x1f45},
  392. {0x1f50, 0x1f57}, {0x1f60, 0x1f67}, {0x1f70, 0x1f7d}, {0x1f80, 0x1f87},
  393. {0x1f90, 0x1f97}, {0x1fa0, 0x1fa7}, {0x1fb0, 0x1fb4}, {0x1fb6, 0x1fb7},
  394. {0x1fbe, 0x1fbe}, {0x1fc2, 0x1fc4}, {0x1fc6, 0x1fc7}, {0x1fd0, 0x1fd3},
  395. {0x1fd6, 0x1fd7}, {0x1fe0, 0x1fe7}, {0x1ff2, 0x1ff4}, {0x1ff6, 0x1ff7},
  396. {0x2071, 0x2071}, {0x207f, 0x207f}, {0x210a, 0x210a}, {0x210e, 0x210f},
  397. {0x2113, 0x2113}, {0x212f, 0x212f}, {0x2134, 0x2134}, {0x2139, 0x2139},
  398. {0x213d, 0x213d}, {0x2146, 0x2149}, {0xfb00, 0xfb06}, {0xfb13, 0xfb17},
  399. {0xff41, 0xff5a} };
  400. static const xmlChLRange xmlLlL[] = {{0x10428, 0x1044f}, {0x1d41a, 0x1d433},
  401. {0x1d44e, 0x1d454}, {0x1d456, 0x1d467}, {0x1d482, 0x1d49b},
  402. {0x1d4b6, 0x1d4b9}, {0x1d4bb, 0x1d4bb}, {0x1d4bd, 0x1d4c3},
  403. {0x1d4c5, 0x1d4cf}, {0x1d4ea, 0x1d503}, {0x1d51e, 0x1d537},
  404. {0x1d552, 0x1d56b}, {0x1d586, 0x1d59f}, {0x1d5ba, 0x1d5d3},
  405. {0x1d5ee, 0x1d607}, {0x1d622, 0x1d63b}, {0x1d656, 0x1d66f},
  406. {0x1d68a, 0x1d6a3}, {0x1d6c2, 0x1d6da}, {0x1d6dc, 0x1d6e1},
  407. {0x1d6fc, 0x1d714}, {0x1d716, 0x1d71b}, {0x1d736, 0x1d74e},
  408. {0x1d750, 0x1d755}, {0x1d770, 0x1d788}, {0x1d78a, 0x1d78f},
  409. {0x1d7aa, 0x1d7c2}, {0x1d7c4, 0x1d7c9} };
  410. static const xmlChRangeGroup xmlLlG = {396,28,xmlLlS,xmlLlL};
  411. static const xmlChSRange xmlLmS[] = {{0x2b0, 0x2c1}, {0x2c6, 0x2d1},
  412. {0x2e0, 0x2e4}, {0x2ee, 0x2ee}, {0x37a, 0x37a}, {0x559, 0x559},
  413. {0x640, 0x640}, {0x6e5, 0x6e6}, {0xe46, 0xe46}, {0xec6, 0xec6},
  414. {0x17d7, 0x17d7}, {0x1843, 0x1843}, {0x1d2c, 0x1d61}, {0x3005, 0x3005},
  415. {0x3031, 0x3035}, {0x303b, 0x303b}, {0x309d, 0x309e}, {0x30fc, 0x30fe},
  416. {0xff70, 0xff70}, {0xff9e, 0xff9f} };
  417. static const xmlChRangeGroup xmlLmG = {20,0,xmlLmS,NULL};
  418. static const xmlChSRange xmlLoS[] = {{0x1bb, 0x1bb}, {0x1c0, 0x1c3},
  419. {0x5d0, 0x5ea}, {0x5f0, 0x5f2}, {0x621, 0x63a}, {0x641, 0x64a},
  420. {0x66e, 0x66f}, {0x671, 0x6d3}, {0x6d5, 0x6d5}, {0x6ee, 0x6ef},
  421. {0x6fa, 0x6fc}, {0x6ff, 0x6ff}, {0x710, 0x710}, {0x712, 0x72f},
  422. {0x74d, 0x74f}, {0x780, 0x7a5}, {0x7b1, 0x7b1}, {0x904, 0x939},
  423. {0x93d, 0x93d}, {0x950, 0x950}, {0x958, 0x961}, {0x985, 0x98c},
  424. {0x98f, 0x990}, {0x993, 0x9a8}, {0x9aa, 0x9b0}, {0x9b2, 0x9b2},
  425. {0x9b6, 0x9b9}, {0x9bd, 0x9bd}, {0x9dc, 0x9dd}, {0x9df, 0x9e1},
  426. {0x9f0, 0x9f1}, {0xa05, 0xa0a}, {0xa0f, 0xa10}, {0xa13, 0xa28},
  427. {0xa2a, 0xa30}, {0xa32, 0xa33}, {0xa35, 0xa36}, {0xa38, 0xa39},
  428. {0xa59, 0xa5c}, {0xa5e, 0xa5e}, {0xa72, 0xa74}, {0xa85, 0xa8d},
  429. {0xa8f, 0xa91}, {0xa93, 0xaa8}, {0xaaa, 0xab0}, {0xab2, 0xab3},
  430. {0xab5, 0xab9}, {0xabd, 0xabd}, {0xad0, 0xad0}, {0xae0, 0xae1},
  431. {0xb05, 0xb0c}, {0xb0f, 0xb10}, {0xb13, 0xb28}, {0xb2a, 0xb30},
  432. {0xb32, 0xb33}, {0xb35, 0xb39}, {0xb3d, 0xb3d}, {0xb5c, 0xb5d},
  433. {0xb5f, 0xb61}, {0xb71, 0xb71}, {0xb83, 0xb83}, {0xb85, 0xb8a},
  434. {0xb8e, 0xb90}, {0xb92, 0xb95}, {0xb99, 0xb9a}, {0xb9c, 0xb9c},
  435. {0xb9e, 0xb9f}, {0xba3, 0xba4}, {0xba8, 0xbaa}, {0xbae, 0xbb5},
  436. {0xbb7, 0xbb9}, {0xc05, 0xc0c}, {0xc0e, 0xc10}, {0xc12, 0xc28},
  437. {0xc2a, 0xc33}, {0xc35, 0xc39}, {0xc60, 0xc61}, {0xc85, 0xc8c},
  438. {0xc8e, 0xc90}, {0xc92, 0xca8}, {0xcaa, 0xcb3}, {0xcb5, 0xcb9},
  439. {0xcbd, 0xcbd}, {0xcde, 0xcde}, {0xce0, 0xce1}, {0xd05, 0xd0c},
  440. {0xd0e, 0xd10}, {0xd12, 0xd28}, {0xd2a, 0xd39}, {0xd60, 0xd61},
  441. {0xd85, 0xd96}, {0xd9a, 0xdb1}, {0xdb3, 0xdbb}, {0xdbd, 0xdbd},
  442. {0xdc0, 0xdc6}, {0xe01, 0xe30}, {0xe32, 0xe33}, {0xe40, 0xe45},
  443. {0xe81, 0xe82}, {0xe84, 0xe84}, {0xe87, 0xe88}, {0xe8a, 0xe8a},
  444. {0xe8d, 0xe8d}, {0xe94, 0xe97}, {0xe99, 0xe9f}, {0xea1, 0xea3},
  445. {0xea5, 0xea5}, {0xea7, 0xea7}, {0xeaa, 0xeab}, {0xead, 0xeb0},
  446. {0xeb2, 0xeb3}, {0xebd, 0xebd}, {0xec0, 0xec4}, {0xedc, 0xedd},
  447. {0xf00, 0xf00}, {0xf40, 0xf47}, {0xf49, 0xf6a}, {0xf88, 0xf8b},
  448. {0x1000, 0x1021}, {0x1023, 0x1027}, {0x1029, 0x102a}, {0x1050, 0x1055},
  449. {0x10d0, 0x10f8}, {0x1100, 0x1159}, {0x115f, 0x11a2}, {0x11a8, 0x11f9},
  450. {0x1200, 0x1206}, {0x1208, 0x1246}, {0x1248, 0x1248}, {0x124a, 0x124d},
  451. {0x1250, 0x1256}, {0x1258, 0x1258}, {0x125a, 0x125d}, {0x1260, 0x1286},
  452. {0x1288, 0x1288}, {0x128a, 0x128d}, {0x1290, 0x12ae}, {0x12b0, 0x12b0},
  453. {0x12b2, 0x12b5}, {0x12b8, 0x12be}, {0x12c0, 0x12c0}, {0x12c2, 0x12c5},
  454. {0x12c8, 0x12ce}, {0x12d0, 0x12d6}, {0x12d8, 0x12ee}, {0x12f0, 0x130e},
  455. {0x1310, 0x1310}, {0x1312, 0x1315}, {0x1318, 0x131e}, {0x1320, 0x1346},
  456. {0x1348, 0x135a}, {0x13a0, 0x13f4}, {0x1401, 0x166c}, {0x166f, 0x1676},
  457. {0x1681, 0x169a}, {0x16a0, 0x16ea}, {0x1700, 0x170c}, {0x170e, 0x1711},
  458. {0x1720, 0x1731}, {0x1740, 0x1751}, {0x1760, 0x176c}, {0x176e, 0x1770},
  459. {0x1780, 0x17b3}, {0x17dc, 0x17dc}, {0x1820, 0x1842}, {0x1844, 0x1877},
  460. {0x1880, 0x18a8}, {0x1900, 0x191c}, {0x1950, 0x196d}, {0x1970, 0x1974},
  461. {0x2135, 0x2138}, {0x3006, 0x3006}, {0x303c, 0x303c}, {0x3041, 0x3096},
  462. {0x309f, 0x309f}, {0x30a1, 0x30fa}, {0x30ff, 0x30ff}, {0x3105, 0x312c},
  463. {0x3131, 0x318e}, {0x31a0, 0x31b7}, {0x31f0, 0x31ff}, {0x3400, 0x3400},
  464. {0x4db5, 0x4db5}, {0x4e00, 0x4e00}, {0x9fa5, 0x9fa5}, {0xa000, 0xa48c},
  465. {0xac00, 0xac00}, {0xd7a3, 0xd7a3}, {0xf900, 0xfa2d}, {0xfa30, 0xfa6a},
  466. {0xfb1d, 0xfb1d}, {0xfb1f, 0xfb28}, {0xfb2a, 0xfb36}, {0xfb38, 0xfb3c},
  467. {0xfb3e, 0xfb3e}, {0xfb40, 0xfb41}, {0xfb43, 0xfb44}, {0xfb46, 0xfbb1},
  468. {0xfbd3, 0xfd3d}, {0xfd50, 0xfd8f}, {0xfd92, 0xfdc7}, {0xfdf0, 0xfdfb},
  469. {0xfe70, 0xfe74}, {0xfe76, 0xfefc}, {0xff66, 0xff6f}, {0xff71, 0xff9d},
  470. {0xffa0, 0xffbe}, {0xffc2, 0xffc7}, {0xffca, 0xffcf}, {0xffd2, 0xffd7},
  471. {0xffda, 0xffdc} };
  472. static const xmlChLRange xmlLoL[] = {{0x10000, 0x1000b}, {0x1000d, 0x10026},
  473. {0x10028, 0x1003a}, {0x1003c, 0x1003d}, {0x1003f, 0x1004d},
  474. {0x10050, 0x1005d}, {0x10080, 0x100fa}, {0x10300, 0x1031e},
  475. {0x10330, 0x10349}, {0x10380, 0x1039d}, {0x10450, 0x1049d},
  476. {0x10800, 0x10805}, {0x10808, 0x10808}, {0x1080a, 0x10835},
  477. {0x10837, 0x10838}, {0x1083c, 0x1083c}, {0x1083f, 0x1083f},
  478. {0x20000, 0x20000}, {0x2a6d6, 0x2a6d6}, {0x2f800, 0x2fa1d} };
  479. static const xmlChRangeGroup xmlLoG = {211,20,xmlLoS,xmlLoL};
  480. static const xmlChSRange xmlLtS[] = {{0x1c5, 0x1c5}, {0x1c8, 0x1c8},
  481. {0x1cb, 0x1cb}, {0x1f2, 0x1f2}, {0x1f88, 0x1f8f}, {0x1f98, 0x1f9f},
  482. {0x1fa8, 0x1faf}, {0x1fbc, 0x1fbc}, {0x1fcc, 0x1fcc}, {0x1ffc, 0x1ffc} };
  483. static const xmlChRangeGroup xmlLtG = {10,0,xmlLtS,NULL};
  484. static const xmlChSRange xmlLuS[] = {{0x41, 0x5a}, {0xc0, 0xd6},
  485. {0xd8, 0xde}, {0x100, 0x100}, {0x102, 0x102}, {0x104, 0x104},
  486. {0x106, 0x106}, {0x108, 0x108}, {0x10a, 0x10a}, {0x10c, 0x10c},
  487. {0x10e, 0x10e}, {0x110, 0x110}, {0x112, 0x112}, {0x114, 0x114},
  488. {0x116, 0x116}, {0x118, 0x118}, {0x11a, 0x11a}, {0x11c, 0x11c},
  489. {0x11e, 0x11e}, {0x120, 0x120}, {0x122, 0x122}, {0x124, 0x124},
  490. {0x126, 0x126}, {0x128, 0x128}, {0x12a, 0x12a}, {0x12c, 0x12c},
  491. {0x12e, 0x12e}, {0x130, 0x130}, {0x132, 0x132}, {0x134, 0x134},
  492. {0x136, 0x136}, {0x139, 0x139}, {0x13b, 0x13b}, {0x13d, 0x13d},
  493. {0x13f, 0x13f}, {0x141, 0x141}, {0x143, 0x143}, {0x145, 0x145},
  494. {0x147, 0x147}, {0x14a, 0x14a}, {0x14c, 0x14c}, {0x14e, 0x14e},
  495. {0x150, 0x150}, {0x152, 0x152}, {0x154, 0x154}, {0x156, 0x156},
  496. {0x158, 0x158}, {0x15a, 0x15a}, {0x15c, 0x15c}, {0x15e, 0x15e},
  497. {0x160, 0x160}, {0x162, 0x162}, {0x164, 0x164}, {0x166, 0x166},
  498. {0x168, 0x168}, {0x16a, 0x16a}, {0x16c, 0x16c}, {0x16e, 0x16e},
  499. {0x170, 0x170}, {0x172, 0x172}, {0x174, 0x174}, {0x176, 0x176},
  500. {0x178, 0x179}, {0x17b, 0x17b}, {0x17d, 0x17d}, {0x181, 0x182},
  501. {0x184, 0x184}, {0x186, 0x187}, {0x189, 0x18b}, {0x18e, 0x191},
  502. {0x193, 0x194}, {0x196, 0x198}, {0x19c, 0x19d}, {0x19f, 0x1a0},
  503. {0x1a2, 0x1a2}, {0x1a4, 0x1a4}, {0x1a6, 0x1a7}, {0x1a9, 0x1a9},
  504. {0x1ac, 0x1ac}, {0x1ae, 0x1af}, {0x1b1, 0x1b3}, {0x1b5, 0x1b5},
  505. {0x1b7, 0x1b8}, {0x1bc, 0x1bc}, {0x1c4, 0x1c4}, {0x1c7, 0x1c7},
  506. {0x1ca, 0x1ca}, {0x1cd, 0x1cd}, {0x1cf, 0x1cf}, {0x1d1, 0x1d1},
  507. {0x1d3, 0x1d3}, {0x1d5, 0x1d5}, {0x1d7, 0x1d7}, {0x1d9, 0x1d9},
  508. {0x1db, 0x1db}, {0x1de, 0x1de}, {0x1e0, 0x1e0}, {0x1e2, 0x1e2},
  509. {0x1e4, 0x1e4}, {0x1e6, 0x1e6}, {0x1e8, 0x1e8}, {0x1ea, 0x1ea},
  510. {0x1ec, 0x1ec}, {0x1ee, 0x1ee}, {0x1f1, 0x1f1}, {0x1f4, 0x1f4},
  511. {0x1f6, 0x1f8}, {0x1fa, 0x1fa}, {0x1fc, 0x1fc}, {0x1fe, 0x1fe},
  512. {0x200, 0x200}, {0x202, 0x202}, {0x204, 0x204}, {0x206, 0x206},
  513. {0x208, 0x208}, {0x20a, 0x20a}, {0x20c, 0x20c}, {0x20e, 0x20e},
  514. {0x210, 0x210}, {0x212, 0x212}, {0x214, 0x214}, {0x216, 0x216},
  515. {0x218, 0x218}, {0x21a, 0x21a}, {0x21c, 0x21c}, {0x21e, 0x21e},
  516. {0x220, 0x220}, {0x222, 0x222}, {0x224, 0x224}, {0x226, 0x226},
  517. {0x228, 0x228}, {0x22a, 0x22a}, {0x22c, 0x22c}, {0x22e, 0x22e},
  518. {0x230, 0x230}, {0x232, 0x232}, {0x386, 0x386}, {0x388, 0x38a},
  519. {0x38c, 0x38c}, {0x38e, 0x38f}, {0x391, 0x3a1}, {0x3a3, 0x3ab},
  520. {0x3d2, 0x3d4}, {0x3d8, 0x3d8}, {0x3da, 0x3da}, {0x3dc, 0x3dc},
  521. {0x3de, 0x3de}, {0x3e0, 0x3e0}, {0x3e2, 0x3e2}, {0x3e4, 0x3e4},
  522. {0x3e6, 0x3e6}, {0x3e8, 0x3e8}, {0x3ea, 0x3ea}, {0x3ec, 0x3ec},
  523. {0x3ee, 0x3ee}, {0x3f4, 0x3f4}, {0x3f7, 0x3f7}, {0x3f9, 0x3fa},
  524. {0x400, 0x42f}, {0x460, 0x460}, {0x462, 0x462}, {0x464, 0x464},
  525. {0x466, 0x466}, {0x468, 0x468}, {0x46a, 0x46a}, {0x46c, 0x46c},
  526. {0x46e, 0x46e}, {0x470, 0x470}, {0x472, 0x472}, {0x474, 0x474},
  527. {0x476, 0x476}, {0x478, 0x478}, {0x47a, 0x47a}, {0x47c, 0x47c},
  528. {0x47e, 0x47e}, {0x480, 0x480}, {0x48a, 0x48a}, {0x48c, 0x48c},
  529. {0x48e, 0x48e}, {0x490, 0x490}, {0x492, 0x492}, {0x494, 0x494},
  530. {0x496, 0x496}, {0x498, 0x498}, {0x49a, 0x49a}, {0x49c, 0x49c},
  531. {0x49e, 0x49e}, {0x4a0, 0x4a0}, {0x4a2, 0x4a2}, {0x4a4, 0x4a4},
  532. {0x4a6, 0x4a6}, {0x4a8, 0x4a8}, {0x4aa, 0x4aa}, {0x4ac, 0x4ac},
  533. {0x4ae, 0x4ae}, {0x4b0, 0x4b0}, {0x4b2, 0x4b2}, {0x4b4, 0x4b4},
  534. {0x4b6, 0x4b6}, {0x4b8, 0x4b8}, {0x4ba, 0x4ba}, {0x4bc, 0x4bc},
  535. {0x4be, 0x4be}, {0x4c0, 0x4c1}, {0x4c3, 0x4c3}, {0x4c5, 0x4c5},
  536. {0x4c7, 0x4c7}, {0x4c9, 0x4c9}, {0x4cb, 0x4cb}, {0x4cd, 0x4cd},
  537. {0x4d0, 0x4d0}, {0x4d2, 0x4d2}, {0x4d4, 0x4d4}, {0x4d6, 0x4d6},
  538. {0x4d8, 0x4d8}, {0x4da, 0x4da}, {0x4dc, 0x4dc}, {0x4de, 0x4de},
  539. {0x4e0, 0x4e0}, {0x4e2, 0x4e2}, {0x4e4, 0x4e4}, {0x4e6, 0x4e6},
  540. {0x4e8, 0x4e8}, {0x4ea, 0x4ea}, {0x4ec, 0x4ec}, {0x4ee, 0x4ee},
  541. {0x4f0, 0x4f0}, {0x4f2, 0x4f2}, {0x4f4, 0x4f4}, {0x4f8, 0x4f8},
  542. {0x500, 0x500}, {0x502, 0x502}, {0x504, 0x504}, {0x506, 0x506},
  543. {0x508, 0x508}, {0x50a, 0x50a}, {0x50c, 0x50c}, {0x50e, 0x50e},
  544. {0x531, 0x556}, {0x10a0, 0x10c5}, {0x1e00, 0x1e00}, {0x1e02, 0x1e02},
  545. {0x1e04, 0x1e04}, {0x1e06, 0x1e06}, {0x1e08, 0x1e08}, {0x1e0a, 0x1e0a},
  546. {0x1e0c, 0x1e0c}, {0x1e0e, 0x1e0e}, {0x1e10, 0x1e10}, {0x1e12, 0x1e12},
  547. {0x1e14, 0x1e14}, {0x1e16, 0x1e16}, {0x1e18, 0x1e18}, {0x1e1a, 0x1e1a},
  548. {0x1e1c, 0x1e1c}, {0x1e1e, 0x1e1e}, {0x1e20, 0x1e20}, {0x1e22, 0x1e22},
  549. {0x1e24, 0x1e24}, {0x1e26, 0x1e26}, {0x1e28, 0x1e28}, {0x1e2a, 0x1e2a},
  550. {0x1e2c, 0x1e2c}, {0x1e2e, 0x1e2e}, {0x1e30, 0x1e30}, {0x1e32, 0x1e32},
  551. {0x1e34, 0x1e34}, {0x1e36, 0x1e36}, {0x1e38, 0x1e38}, {0x1e3a, 0x1e3a},
  552. {0x1e3c, 0x1e3c}, {0x1e3e, 0x1e3e}, {0x1e40, 0x1e40}, {0x1e42, 0x1e42},
  553. {0x1e44, 0x1e44}, {0x1e46, 0x1e46}, {0x1e48, 0x1e48}, {0x1e4a, 0x1e4a},
  554. {0x1e4c, 0x1e4c}, {0x1e4e, 0x1e4e}, {0x1e50, 0x1e50}, {0x1e52, 0x1e52},
  555. {0x1e54, 0x1e54}, {0x1e56, 0x1e56}, {0x1e58, 0x1e58}, {0x1e5a, 0x1e5a},
  556. {0x1e5c, 0x1e5c}, {0x1e5e, 0x1e5e}, {0x1e60, 0x1e60}, {0x1e62, 0x1e62},
  557. {0x1e64, 0x1e64}, {0x1e66, 0x1e66}, {0x1e68, 0x1e68}, {0x1e6a, 0x1e6a},
  558. {0x1e6c, 0x1e6c}, {0x1e6e, 0x1e6e}, {0x1e70, 0x1e70}, {0x1e72, 0x1e72},
  559. {0x1e74, 0x1e74}, {0x1e76, 0x1e76}, {0x1e78, 0x1e78}, {0x1e7a, 0x1e7a},
  560. {0x1e7c, 0x1e7c}, {0x1e7e, 0x1e7e}, {0x1e80, 0x1e80}, {0x1e82, 0x1e82},
  561. {0x1e84, 0x1e84}, {0x1e86, 0x1e86}, {0x1e88, 0x1e88}, {0x1e8a, 0x1e8a},
  562. {0x1e8c, 0x1e8c}, {0x1e8e, 0x1e8e}, {0x1e90, 0x1e90}, {0x1e92, 0x1e92},
  563. {0x1e94, 0x1e94}, {0x1ea0, 0x1ea0}, {0x1ea2, 0x1ea2}, {0x1ea4, 0x1ea4},
  564. {0x1ea6, 0x1ea6}, {0x1ea8, 0x1ea8}, {0x1eaa, 0x1eaa}, {0x1eac, 0x1eac},
  565. {0x1eae, 0x1eae}, {0x1eb0, 0x1eb0}, {0x1eb2, 0x1eb2}, {0x1eb4, 0x1eb4},
  566. {0x1eb6, 0x1eb6}, {0x1eb8, 0x1eb8}, {0x1eba, 0x1eba}, {0x1ebc, 0x1ebc},
  567. {0x1ebe, 0x1ebe}, {0x1ec0, 0x1ec0}, {0x1ec2, 0x1ec2}, {0x1ec4, 0x1ec4},
  568. {0x1ec6, 0x1ec6}, {0x1ec8, 0x1ec8}, {0x1eca, 0x1eca}, {0x1ecc, 0x1ecc},
  569. {0x1ece, 0x1ece}, {0x1ed0, 0x1ed0}, {0x1ed2, 0x1ed2}, {0x1ed4, 0x1ed4},
  570. {0x1ed6, 0x1ed6}, {0x1ed8, 0x1ed8}, {0x1eda, 0x1eda}, {0x1edc, 0x1edc},
  571. {0x1ede, 0x1ede}, {0x1ee0, 0x1ee0}, {0x1ee2, 0x1ee2}, {0x1ee4, 0x1ee4},
  572. {0x1ee6, 0x1ee6}, {0x1ee8, 0x1ee8}, {0x1eea, 0x1eea}, {0x1eec, 0x1eec},
  573. {0x1eee, 0x1eee}, {0x1ef0, 0x1ef0}, {0x1ef2, 0x1ef2}, {0x1ef4, 0x1ef4},
  574. {0x1ef6, 0x1ef6}, {0x1ef8, 0x1ef8}, {0x1f08, 0x1f0f}, {0x1f18, 0x1f1d},
  575. {0x1f28, 0x1f2f}, {0x1f38, 0x1f3f}, {0x1f48, 0x1f4d}, {0x1f59, 0x1f59},
  576. {0x1f5b, 0x1f5b}, {0x1f5d, 0x1f5d}, {0x1f5f, 0x1f5f}, {0x1f68, 0x1f6f},
  577. {0x1fb8, 0x1fbb}, {0x1fc8, 0x1fcb}, {0x1fd8, 0x1fdb}, {0x1fe8, 0x1fec},
  578. {0x1ff8, 0x1ffb}, {0x2102, 0x2102}, {0x2107, 0x2107}, {0x210b, 0x210d},
  579. {0x2110, 0x2112}, {0x2115, 0x2115}, {0x2119, 0x211d}, {0x2124, 0x2124},
  580. {0x2126, 0x2126}, {0x2128, 0x2128}, {0x212a, 0x212d}, {0x2130, 0x2131},
  581. {0x2133, 0x2133}, {0x213e, 0x213f}, {0x2145, 0x2145}, {0xff21, 0xff3a} };
  582. static const xmlChLRange xmlLuL[] = {{0x10400, 0x10427}, {0x1d400, 0x1d419},
  583. {0x1d434, 0x1d44d}, {0x1d468, 0x1d481}, {0x1d49c, 0x1d49c},
  584. {0x1d49e, 0x1d49f}, {0x1d4a2, 0x1d4a2}, {0x1d4a5, 0x1d4a6},
  585. {0x1d4a9, 0x1d4ac}, {0x1d4ae, 0x1d4b5}, {0x1d4d0, 0x1d4e9},
  586. {0x1d504, 0x1d505}, {0x1d507, 0x1d50a}, {0x1d50d, 0x1d514},
  587. {0x1d516, 0x1d51c}, {0x1d538, 0x1d539}, {0x1d53b, 0x1d53e},
  588. {0x1d540, 0x1d544}, {0x1d546, 0x1d546}, {0x1d54a, 0x1d550},
  589. {0x1d56c, 0x1d585}, {0x1d5a0, 0x1d5b9}, {0x1d5d4, 0x1d5ed},
  590. {0x1d608, 0x1d621}, {0x1d63c, 0x1d655}, {0x1d670, 0x1d689},
  591. {0x1d6a8, 0x1d6c0}, {0x1d6e2, 0x1d6fa}, {0x1d71c, 0x1d734},
  592. {0x1d756, 0x1d76e}, {0x1d790, 0x1d7a8} };
  593. static const xmlChRangeGroup xmlLuG = {390,31,xmlLuS,xmlLuL};
  594. static const xmlChSRange xmlMS[] = {{0x300, 0x357}, {0x35d, 0x36f},
  595. {0x483, 0x486}, {0x488, 0x489}, {0x591, 0x5a1}, {0x5a3, 0x5b9},
  596. {0x5bb, 0x5bd}, {0x5bf, 0x5bf}, {0x5c1, 0x5c2}, {0x5c4, 0x5c4},
  597. {0x610, 0x615}, {0x64b, 0x658}, {0x670, 0x670}, {0x6d6, 0x6dc},
  598. {0x6de, 0x6e4}, {0x6e7, 0x6e8}, {0x6ea, 0x6ed}, {0x711, 0x711},
  599. {0x730, 0x74a}, {0x7a6, 0x7b0}, {0x901, 0x903}, {0x93c, 0x93c},
  600. {0x93e, 0x94d}, {0x951, 0x954}, {0x962, 0x963}, {0x981, 0x983},
  601. {0x9bc, 0x9bc}, {0x9be, 0x9c4}, {0x9c7, 0x9c8}, {0x9cb, 0x9cd},
  602. {0x9d7, 0x9d7}, {0x9e2, 0x9e3}, {0xa01, 0xa03}, {0xa3c, 0xa3c},
  603. {0xa3e, 0xa42}, {0xa47, 0xa48}, {0xa4b, 0xa4d}, {0xa70, 0xa71},
  604. {0xa81, 0xa83}, {0xabc, 0xabc}, {0xabe, 0xac5}, {0xac7, 0xac9},
  605. {0xacb, 0xacd}, {0xae2, 0xae3}, {0xb01, 0xb03}, {0xb3c, 0xb3c},
  606. {0xb3e, 0xb43}, {0xb47, 0xb48}, {0xb4b, 0xb4d}, {0xb56, 0xb57},
  607. {0xb82, 0xb82}, {0xbbe, 0xbc2}, {0xbc6, 0xbc8}, {0xbca, 0xbcd},
  608. {0xbd7, 0xbd7}, {0xc01, 0xc03}, {0xc3e, 0xc44}, {0xc46, 0xc48},
  609. {0xc4a, 0xc4d}, {0xc55, 0xc56}, {0xc82, 0xc83}, {0xcbc, 0xcbc},
  610. {0xcbe, 0xcc4}, {0xcc6, 0xcc8}, {0xcca, 0xccd}, {0xcd5, 0xcd6},
  611. {0xd02, 0xd03}, {0xd3e, 0xd43}, {0xd46, 0xd48}, {0xd4a, 0xd4d},
  612. {0xd57, 0xd57}, {0xd82, 0xd83}, {0xdca, 0xdca}, {0xdcf, 0xdd4},
  613. {0xdd6, 0xdd6}, {0xdd8, 0xddf}, {0xdf2, 0xdf3}, {0xe31, 0xe31},
  614. {0xe34, 0xe3a}, {0xe47, 0xe4e}, {0xeb1, 0xeb1}, {0xeb4, 0xeb9},
  615. {0xebb, 0xebc}, {0xec8, 0xecd}, {0xf18, 0xf19}, {0xf35, 0xf35},
  616. {0xf37, 0xf37}, {0xf39, 0xf39}, {0xf3e, 0xf3f}, {0xf71, 0xf84},
  617. {0xf86, 0xf87}, {0xf90, 0xf97}, {0xf99, 0xfbc}, {0xfc6, 0xfc6},
  618. {0x102c, 0x1032}, {0x1036, 0x1039}, {0x1056, 0x1059}, {0x1712, 0x1714},
  619. {0x1732, 0x1734}, {0x1752, 0x1753}, {0x1772, 0x1773}, {0x17b6, 0x17d3},
  620. {0x17dd, 0x17dd}, {0x180b, 0x180d}, {0x18a9, 0x18a9}, {0x1920, 0x192b},
  621. {0x1930, 0x193b}, {0x20d0, 0x20ea}, {0x302a, 0x302f}, {0x3099, 0x309a},
  622. {0xfb1e, 0xfb1e}, {0xfe00, 0xfe0f}, {0xfe20, 0xfe23} };
  623. static const xmlChLRange xmlML[] = {{0x1d165, 0x1d169}, {0x1d16d, 0x1d172},
  624. {0x1d17b, 0x1d182}, {0x1d185, 0x1d18b}, {0x1d1aa, 0x1d1ad},
  625. {0xe0100, 0xe01ef} };
  626. static const xmlChRangeGroup xmlMG = {113,6,xmlMS,xmlML};
  627. static const xmlChSRange xmlMcS[] = {{0x903, 0x903}, {0x93e, 0x940},
  628. {0x949, 0x94c}, {0x982, 0x983}, {0x9be, 0x9c0}, {0x9c7, 0x9c8},
  629. {0x9cb, 0x9cc}, {0x9d7, 0x9d7}, {0xa03, 0xa03}, {0xa3e, 0xa40},
  630. {0xa83, 0xa83}, {0xabe, 0xac0}, {0xac9, 0xac9}, {0xacb, 0xacc},
  631. {0xb02, 0xb03}, {0xb3e, 0xb3e}, {0xb40, 0xb40}, {0xb47, 0xb48},
  632. {0xb4b, 0xb4c}, {0xb57, 0xb57}, {0xbbe, 0xbbf}, {0xbc1, 0xbc2},
  633. {0xbc6, 0xbc8}, {0xbca, 0xbcc}, {0xbd7, 0xbd7}, {0xc01, 0xc03},
  634. {0xc41, 0xc44}, {0xc82, 0xc83}, {0xcbe, 0xcbe}, {0xcc0, 0xcc4},
  635. {0xcc7, 0xcc8}, {0xcca, 0xccb}, {0xcd5, 0xcd6}, {0xd02, 0xd03},
  636. {0xd3e, 0xd40}, {0xd46, 0xd48}, {0xd4a, 0xd4c}, {0xd57, 0xd57},
  637. {0xd82, 0xd83}, {0xdcf, 0xdd1}, {0xdd8, 0xddf}, {0xdf2, 0xdf3},
  638. {0xf3e, 0xf3f}, {0xf7f, 0xf7f}, {0x102c, 0x102c}, {0x1031, 0x1031},
  639. {0x1038, 0x1038}, {0x1056, 0x1057}, {0x17b6, 0x17b6}, {0x17be, 0x17c5},
  640. {0x17c7, 0x17c8}, {0x1923, 0x1926}, {0x1929, 0x192b}, {0x1930, 0x1931},
  641. {0x1933, 0x1938} };
  642. static const xmlChLRange xmlMcL[] = {{0x1d165, 0x1d166}, {0x1d16d, 0x1d172} };
  643. static const xmlChRangeGroup xmlMcG = {55,2,xmlMcS,xmlMcL};
  644. static const xmlChSRange xmlMnS[] = {{0x300, 0x357}, {0x35d, 0x36f},
  645. {0x483, 0x486}, {0x591, 0x5a1}, {0x5a3, 0x5b9}, {0x5bb, 0x5bd},
  646. {0x5bf, 0x5bf}, {0x5c1, 0x5c2}, {0x5c4, 0x5c4}, {0x610, 0x615},
  647. {0x64b, 0x658}, {0x670, 0x670}, {0x6d6, 0x6dc}, {0x6df, 0x6e4},
  648. {0x6e7, 0x6e8}, {0x6ea, 0x6ed}, {0x711, 0x711}, {0x730, 0x74a},
  649. {0x7a6, 0x7b0}, {0x901, 0x902}, {0x93c, 0x93c}, {0x941, 0x948},
  650. {0x94d, 0x94d}, {0x951, 0x954}, {0x962, 0x963}, {0x981, 0x981},
  651. {0x9bc, 0x9bc}, {0x9c1, 0x9c4}, {0x9cd, 0x9cd}, {0x9e2, 0x9e3},
  652. {0xa01, 0xa02}, {0xa3c, 0xa3c}, {0xa41, 0xa42}, {0xa47, 0xa48},
  653. {0xa4b, 0xa4d}, {0xa70, 0xa71}, {0xa81, 0xa82}, {0xabc, 0xabc},
  654. {0xac1, 0xac5}, {0xac7, 0xac8}, {0xacd, 0xacd}, {0xae2, 0xae3},
  655. {0xb01, 0xb01}, {0xb3c, 0xb3c}, {0xb3f, 0xb3f}, {0xb41, 0xb43},
  656. {0xb4d, 0xb4d}, {0xb56, 0xb56}, {0xb82, 0xb82}, {0xbc0, 0xbc0},
  657. {0xbcd, 0xbcd}, {0xc3e, 0xc40}, {0xc46, 0xc48}, {0xc4a, 0xc4d},
  658. {0xc55, 0xc56}, {0xcbc, 0xcbc}, {0xcbf, 0xcbf}, {0xcc6, 0xcc6},
  659. {0xccc, 0xccd}, {0xd41, 0xd43}, {0xd4d, 0xd4d}, {0xdca, 0xdca},
  660. {0xdd2, 0xdd4}, {0xdd6, 0xdd6}, {0xe31, 0xe31}, {0xe34, 0xe3a},
  661. {0xe47, 0xe4e}, {0xeb1, 0xeb1}, {0xeb4, 0xeb9}, {0xebb, 0xebc},
  662. {0xec8, 0xecd}, {0xf18, 0xf19}, {0xf35, 0xf35}, {0xf37, 0xf37},
  663. {0xf39, 0xf39}, {0xf71, 0xf7e}, {0xf80, 0xf84}, {0xf86, 0xf87},
  664. {0xf90, 0xf97}, {0xf99, 0xfbc}, {0xfc6, 0xfc6}, {0x102d, 0x1030},
  665. {0x1032, 0x1032}, {0x1036, 0x1037}, {0x1039, 0x1039}, {0x1058, 0x1059},
  666. {0x1712, 0x1714}, {0x1732, 0x1734}, {0x1752, 0x1753}, {0x1772, 0x1773},
  667. {0x17b7, 0x17bd}, {0x17c6, 0x17c6}, {0x17c9, 0x17d3}, {0x17dd, 0x17dd},
  668. {0x180b, 0x180d}, {0x18a9, 0x18a9}, {0x1920, 0x1922}, {0x1927, 0x1928},
  669. {0x1932, 0x1932}, {0x1939, 0x193b}, {0x20d0, 0x20dc}, {0x20e1, 0x20e1},
  670. {0x20e5, 0x20ea}, {0x302a, 0x302f}, {0x3099, 0x309a}, {0xfb1e, 0xfb1e},
  671. {0xfe00, 0xfe0f}, {0xfe20, 0xfe23} };
  672. static const xmlChLRange xmlMnL[] = {{0x1d167, 0x1d169}, {0x1d17b, 0x1d182},
  673. {0x1d185, 0x1d18b}, {0x1d1aa, 0x1d1ad}, {0xe0100, 0xe01ef} };
  674. static const xmlChRangeGroup xmlMnG = {108,5,xmlMnS,xmlMnL};
  675. static const xmlChSRange xmlNS[] = {{0x30, 0x39}, {0xb2, 0xb3},
  676. {0xb9, 0xb9}, {0xbc, 0xbe}, {0x660, 0x669}, {0x6f0, 0x6f9},
  677. {0x966, 0x96f}, {0x9e6, 0x9ef}, {0x9f4, 0x9f9}, {0xa66, 0xa6f},
  678. {0xae6, 0xaef}, {0xb66, 0xb6f}, {0xbe7, 0xbf2}, {0xc66, 0xc6f},
  679. {0xce6, 0xcef}, {0xd66, 0xd6f}, {0xe50, 0xe59}, {0xed0, 0xed9},
  680. {0xf20, 0xf33}, {0x1040, 0x1049}, {0x1369, 0x137c}, {0x16ee, 0x16f0},
  681. {0x17e0, 0x17e9}, {0x17f0, 0x17f9}, {0x1810, 0x1819}, {0x1946, 0x194f},
  682. {0x2070, 0x2070}, {0x2074, 0x2079}, {0x2080, 0x2089}, {0x2153, 0x2183},
  683. {0x2460, 0x249b}, {0x24ea, 0x24ff}, {0x2776, 0x2793}, {0x3007, 0x3007},
  684. {0x3021, 0x3029}, {0x3038, 0x303a}, {0x3192, 0x3195}, {0x3220, 0x3229},
  685. {0x3251, 0x325f}, {0x3280, 0x3289}, {0x32b1, 0x32bf}, {0xff10, 0xff19} };
  686. static const xmlChLRange xmlNL[] = {{0x10107, 0x10133}, {0x10320, 0x10323},
  687. {0x1034a, 0x1034a}, {0x104a0, 0x104a9}, {0x1d7ce, 0x1d7ff} };
  688. static const xmlChRangeGroup xmlNG = {42,5,xmlNS,xmlNL};
  689. static const xmlChSRange xmlNdS[] = {{0x30, 0x39}, {0x660, 0x669},
  690. {0x6f0, 0x6f9}, {0x966, 0x96f}, {0x9e6, 0x9ef}, {0xa66, 0xa6f},
  691. {0xae6, 0xaef}, {0xb66, 0xb6f}, {0xbe7, 0xbef}, {0xc66, 0xc6f},
  692. {0xce6, 0xcef}, {0xd66, 0xd6f}, {0xe50, 0xe59}, {0xed0, 0xed9},
  693. {0xf20, 0xf29}, {0x1040, 0x1049}, {0x1369, 0x1371}, {0x17e0, 0x17e9},
  694. {0x1810, 0x1819}, {0x1946, 0x194f}, {0xff10, 0xff19} };
  695. static const xmlChLRange xmlNdL[] = {{0x104a0, 0x104a9}, {0x1d7ce, 0x1d7ff} };
  696. static const xmlChRangeGroup xmlNdG = {21,2,xmlNdS,xmlNdL};
  697. static const xmlChSRange xmlNoS[] = {{0xb2, 0xb3}, {0xb9, 0xb9},
  698. {0xbc, 0xbe}, {0x9f4, 0x9f9}, {0xbf0, 0xbf2}, {0xf2a, 0xf33},
  699. {0x1372, 0x137c}, {0x17f0, 0x17f9}, {0x2070, 0x2070}, {0x2074, 0x2079},
  700. {0x2080, 0x2089}, {0x2153, 0x215f}, {0x2460, 0x249b}, {0x24ea, 0x24ff},
  701. {0x2776, 0x2793}, {0x3192, 0x3195}, {0x3220, 0x3229}, {0x3251, 0x325f},
  702. {0x3280, 0x3289}, {0x32b1, 0x32bf} };
  703. static const xmlChLRange xmlNoL[] = {{0x10107, 0x10133}, {0x10320, 0x10323} };
  704. static const xmlChRangeGroup xmlNoG = {20,2,xmlNoS,xmlNoL};
  705. static const xmlChSRange xmlPS[] = {{0x21, 0x23}, {0x25, 0x2a},
  706. {0x2c, 0x2f}, {0x3a, 0x3b}, {0x3f, 0x40}, {0x5b, 0x5d}, {0x5f, 0x5f},
  707. {0x7b, 0x7b}, {0x7d, 0x7d}, {0xa1, 0xa1}, {0xab, 0xab}, {0xb7, 0xb7},
  708. {0xbb, 0xbb}, {0xbf, 0xbf}, {0x37e, 0x37e}, {0x387, 0x387},
  709. {0x55a, 0x55f}, {0x589, 0x58a}, {0x5be, 0x5be}, {0x5c0, 0x5c0},
  710. {0x5c3, 0x5c3}, {0x5f3, 0x5f4}, {0x60c, 0x60d}, {0x61b, 0x61b},
  711. {0x61f, 0x61f}, {0x66a, 0x66d}, {0x6d4, 0x6d4}, {0x700, 0x70d},
  712. {0x964, 0x965}, {0x970, 0x970}, {0xdf4, 0xdf4}, {0xe4f, 0xe4f},
  713. {0xe5a, 0xe5b}, {0xf04, 0xf12}, {0xf3a, 0xf3d}, {0xf85, 0xf85},
  714. {0x104a, 0x104f}, {0x10fb, 0x10fb}, {0x1361, 0x1368}, {0x166d, 0x166e},
  715. {0x169b, 0x169c}, {0x16eb, 0x16ed}, {0x1735, 0x1736}, {0x17d4, 0x17d6},
  716. {0x17d8, 0x17da}, {0x1800, 0x180a}, {0x1944, 0x1945}, {0x2010, 0x2027},
  717. {0x2030, 0x2043}, {0x2045, 0x2051}, {0x2053, 0x2054}, {0x2057, 0x2057},
  718. {0x207d, 0x207e}, {0x208d, 0x208e}, {0x2329, 0x232a}, {0x23b4, 0x23b6},
  719. {0x2768, 0x2775}, {0x27e6, 0x27eb}, {0x2983, 0x2998}, {0x29d8, 0x29db},
  720. {0x29fc, 0x29fd}, {0x3001, 0x3003}, {0x3008, 0x3011}, {0x3014, 0x301f},
  721. {0x3030, 0x3030}, {0x303d, 0x303d}, {0x30a0, 0x30a0}, {0x30fb, 0x30fb},
  722. {0xfd3e, 0xfd3f}, {0xfe30, 0xfe52}, {0xfe54, 0xfe61}, {0xfe63, 0xfe63},
  723. {0xfe68, 0xfe68}, {0xfe6a, 0xfe6b}, {0xff01, 0xff03}, {0xff05, 0xff0a},
  724. {0xff0c, 0xff0f}, {0xff1a, 0xff1b}, {0xff1f, 0xff20}, {0xff3b, 0xff3d},
  725. {0xff3f, 0xff3f}, {0xff5b, 0xff5b}, {0xff5d, 0xff5d}, {0xff5f, 0xff65} };
  726. static const xmlChLRange xmlPL[] = {{0x10100, 0x10101}, {0x1039f, 0x1039f} };
  727. static const xmlChRangeGroup xmlPG = {84,2,xmlPS,xmlPL};
  728. static const xmlChSRange xmlPdS[] = {{0x2d, 0x2d}, {0x58a, 0x58a},
  729. {0x1806, 0x1806}, {0x2010, 0x2015}, {0x301c, 0x301c}, {0x3030, 0x3030},
  730. {0x30a0, 0x30a0}, {0xfe31, 0xfe32}, {0xfe58, 0xfe58}, {0xfe63, 0xfe63},
  731. {0xff0d, 0xff0d} };
  732. static const xmlChRangeGroup xmlPdG = {11,0,xmlPdS,NULL};
  733. static const xmlChSRange xmlPeS[] = {{0x29, 0x29}, {0x5d, 0x5d},
  734. {0x7d, 0x7d}, {0xf3b, 0xf3b}, {0xf3d, 0xf3d}, {0x169c, 0x169c},
  735. {0x2046, 0x2046}, {0x207e, 0x207e}, {0x208e, 0x208e}, {0x232a, 0x232a},
  736. {0x23b5, 0x23b5}, {0x2769, 0x2769}, {0x276b, 0x276b}, {0x276d, 0x276d},
  737. {0x276f, 0x276f}, {0x2771, 0x2771}, {0x2773, 0x2773}, {0x2775, 0x2775},
  738. {0x27e7, 0x27e7}, {0x27e9, 0x27e9}, {0x27eb, 0x27eb}, {0x2984, 0x2984},
  739. {0x2986, 0x2986}, {0x2988, 0x2988}, {0x298a, 0x298a}, {0x298c, 0x298c},
  740. {0x298e, 0x298e}, {0x2990, 0x2990}, {0x2992, 0x2992}, {0x2994, 0x2994},
  741. {0x2996, 0x2996}, {0x2998, 0x2998}, {0x29d9, 0x29d9}, {0x29db, 0x29db},
  742. {0x29fd, 0x29fd}, {0x3009, 0x3009}, {0x300b, 0x300b}, {0x300d, 0x300d},
  743. {0x300f, 0x300f}, {0x3011, 0x3011}, {0x3015, 0x3015}, {0x3017, 0x3017},
  744. {0x3019, 0x3019}, {0x301b, 0x301b}, {0x301e, 0x301f}, {0xfd3f, 0xfd3f},
  745. {0xfe36, 0xfe36}, {0xfe38, 0xfe38}, {0xfe3a, 0xfe3a}, {0xfe3c, 0xfe3c},
  746. {0xfe3e, 0xfe3e}, {0xfe40, 0xfe40}, {0xfe42, 0xfe42}, {0xfe44, 0xfe44},
  747. {0xfe48, 0xfe48}, {0xfe5a, 0xfe5a}, {0xfe5c, 0xfe5c}, {0xfe5e, 0xfe5e},
  748. {0xff09, 0xff09}, {0xff3d, 0xff3d}, {0xff5d, 0xff5d}, {0xff60, 0xff60},
  749. {0xff63, 0xff63} };
  750. static const xmlChRangeGroup xmlPeG = {63,0,xmlPeS,NULL};
  751. static const xmlChSRange xmlPoS[] = {{0x21, 0x23}, {0x25, 0x27},
  752. {0x2a, 0x2a}, {0x2c, 0x2c}, {0x2e, 0x2f}, {0x3a, 0x3b}, {0x3f, 0x40},
  753. {0x5c, 0x5c}, {0xa1, 0xa1}, {0xb7, 0xb7}, {0xbf, 0xbf}, {0x37e, 0x37e},
  754. {0x387, 0x387}, {0x55a, 0x55f}, {0x589, 0x589}, {0x5be, 0x5be},
  755. {0x5c0, 0x5c0}, {0x5c3, 0x5c3}, {0x5f3, 0x5f4}, {0x60c, 0x60d},
  756. {0x61b, 0x61b}, {0x61f, 0x61f}, {0x66a, 0x66d}, {0x6d4, 0x6d4},
  757. {0x700, 0x70d}, {0x964, 0x965}, {0x970, 0x970}, {0xdf4, 0xdf4},
  758. {0xe4f, 0xe4f}, {0xe5a, 0xe5b}, {0xf04, 0xf12}, {0xf85, 0xf85},
  759. {0x104a, 0x104f}, {0x10fb, 0x10fb}, {0x1361, 0x1368}, {0x166d, 0x166e},
  760. {0x16eb, 0x16ed}, {0x1735, 0x1736}, {0x17d4, 0x17d6}, {0x17d8, 0x17da},
  761. {0x1800, 0x1805}, {0x1807, 0x180a}, {0x1944, 0x1945}, {0x2016, 0x2017},
  762. {0x2020, 0x2027}, {0x2030, 0x2038}, {0x203b, 0x203e}, {0x2041, 0x2043},
  763. {0x2047, 0x2051}, {0x2053, 0x2053}, {0x2057, 0x2057}, {0x23b6, 0x23b6},
  764. {0x3001, 0x3003}, {0x303d, 0x303d}, {0xfe30, 0xfe30}, {0xfe45, 0xfe46},
  765. {0xfe49, 0xfe4c}, {0xfe50, 0xfe52}, {0xfe54, 0xfe57}, {0xfe5f, 0xfe61},
  766. {0xfe68, 0xfe68}, {0xfe6a, 0xfe6b}, {0xff01, 0xff03}, {0xff05, 0xff07},
  767. {0xff0a, 0xff0a}, {0xff0c, 0xff0c}, {0xff0e, 0xff0f}, {0xff1a, 0xff1b},
  768. {0xff1f, 0xff20}, {0xff3c, 0xff3c}, {0xff61, 0xff61}, {0xff64, 0xff64} };
  769. static const xmlChLRange xmlPoL[] = {{0x10100, 0x10101}, {0x1039f, 0x1039f} };
  770. static const xmlChRangeGroup xmlPoG = {72,2,xmlPoS,xmlPoL};
  771. static const xmlChSRange xmlPsS[] = {{0x28, 0x28}, {0x5b, 0x5b},
  772. {0x7b, 0x7b}, {0xf3a, 0xf3a}, {0xf3c, 0xf3c}, {0x169b, 0x169b},
  773. {0x201a, 0x201a}, {0x201e, 0x201e}, {0x2045, 0x2045}, {0x207d, 0x207d},
  774. {0x208d, 0x208d}, {0x2329, 0x2329}, {0x23b4, 0x23b4}, {0x2768, 0x2768},
  775. {0x276a, 0x276a}, {0x276c, 0x276c}, {0x276e, 0x276e}, {0x2770, 0x2770},
  776. {0x2772, 0x2772}, {0x2774, 0x2774}, {0x27e6, 0x27e6}, {0x27e8, 0x27e8},
  777. {0x27ea, 0x27ea}, {0x2983, 0x2983}, {0x2985, 0x2985}, {0x2987, 0x2987},
  778. {0x2989, 0x2989}, {0x298b, 0x298b}, {0x298d, 0x298d}, {0x298f, 0x298f},
  779. {0x2991, 0x2991}, {0x2993, 0x2993}, {0x2995, 0x2995}, {0x2997, 0x2997},
  780. {0x29d8, 0x29d8}, {0x29da, 0x29da}, {0x29fc, 0x29fc}, {0x3008, 0x3008},
  781. {0x300a, 0x300a}, {0x300c, 0x300c}, {0x300e, 0x300e}, {0x3010, 0x3010},
  782. {0x3014, 0x3014}, {0x3016, 0x3016}, {0x3018, 0x3018}, {0x301a, 0x301a},
  783. {0x301d, 0x301d}, {0xfd3e, 0xfd3e}, {0xfe35, 0xfe35}, {0xfe37, 0xfe37},
  784. {0xfe39, 0xfe39}, {0xfe3b, 0xfe3b}, {0xfe3d, 0xfe3d}, {0xfe3f, 0xfe3f},
  785. {0xfe41, 0xfe41}, {0xfe43, 0xfe43}, {0xfe47, 0xfe47}, {0xfe59, 0xfe59},
  786. {0xfe5b, 0xfe5b}, {0xfe5d, 0xfe5d}, {0xff08, 0xff08}, {0xff3b, 0xff3b},
  787. {0xff5b, 0xff5b}, {0xff5f, 0xff5f}, {0xff62, 0xff62} };
  788. static const xmlChRangeGroup xmlPsG = {65,0,xmlPsS,NULL};
  789. static const xmlChSRange xmlSS[] = {{0x24, 0x24}, {0x2b, 0x2b},
  790. {0x3c, 0x3e}, {0x5e, 0x5e}, {0x60, 0x60}, {0x7c, 0x7c}, {0x7e, 0x7e},
  791. {0xa2, 0xa9}, {0xac, 0xac}, {0xae, 0xb1}, {0xb4, 0xb4}, {0xb6, 0xb6},
  792. {0xb8, 0xb8}, {0xd7, 0xd7}, {0xf7, 0xf7}, {0x2c2, 0x2c5},
  793. {0x2d2, 0x2df}, {0x2e5, 0x2ed}, {0x2ef, 0x2ff}, {0x374, 0x375},
  794. {0x384, 0x385}, {0x3f6, 0x3f6}, {0x482, 0x482}, {0x60e, 0x60f},
  795. {0x6e9, 0x6e9}, {0x6fd, 0x6fe}, {0x9f2, 0x9f3}, {0x9fa, 0x9fa},
  796. {0xaf1, 0xaf1}, {0xb70, 0xb70}, {0xbf3, 0xbfa}, {0xe3f, 0xe3f},
  797. {0xf01, 0xf03}, {0xf13, 0xf17}, {0xf1a, 0xf1f}, {0xf34, 0xf34},
  798. {0xf36, 0xf36}, {0xf38, 0xf38}, {0xfbe, 0xfc5}, {0xfc7, 0xfcc},
  799. {0xfcf, 0xfcf}, {0x17db, 0x17db}, {0x1940, 0x1940}, {0x19e0, 0x19ff},
  800. {0x1fbd, 0x1fbd}, {0x1fbf, 0x1fc1}, {0x1fcd, 0x1fcf}, {0x1fdd, 0x1fdf},
  801. {0x1fed, 0x1fef}, {0x1ffd, 0x1ffe}, {0x2044, 0x2044}, {0x2052, 0x2052},
  802. {0x207a, 0x207c}, {0x208a, 0x208c}, {0x20a0, 0x20b1}, {0x2100, 0x2101},
  803. {0x2103, 0x2106}, {0x2108, 0x2109}, {0x2114, 0x2114}, {0x2116, 0x2118},
  804. {0x211e, 0x2123}, {0x2125, 0x2125}, {0x2127, 0x2127}, {0x2129, 0x2129},
  805. {0x212e, 0x212e}, {0x2132, 0x2132}, {0x213a, 0x213b}, {0x2140, 0x2144},
  806. {0x214a, 0x214b}, {0x2190, 0x2328}, {0x232b, 0x23b3}, {0x23b7, 0x23d0},
  807. {0x2400, 0x2426}, {0x2440, 0x244a}, {0x249c, 0x24e9}, {0x2500, 0x2617},
  808. {0x2619, 0x267d}, {0x2680, 0x2691}, {0x26a0, 0x26a1}, {0x2701, 0x2704},
  809. {0x2706, 0x2709}, {0x270c, 0x2727}, {0x2729, 0x274b}, {0x274d, 0x274d},
  810. {0x274f, 0x2752}, {0x2756, 0x2756}, {0x2758, 0x275e}, {0x2761, 0x2767},
  811. {0x2794, 0x2794}, {0x2798, 0x27af}, {0x27b1, 0x27be}, {0x27d0, 0x27e5},
  812. {0x27f0, 0x2982}, {0x2999, 0x29d7}, {0x29dc, 0x29fb}, {0x29fe, 0x2b0d},
  813. {0x2e80, 0x2e99}, {0x2e9b, 0x2ef3}, {0x2f00, 0x2fd5}, {0x2ff0, 0x2ffb},
  814. {0x3004, 0x3004}, {0x3012, 0x3013}, {0x3020, 0x3020}, {0x3036, 0x3037},
  815. {0x303e, 0x303f}, {0x309b, 0x309c}, {0x3190, 0x3191}, {0x3196, 0x319f},
  816. {0x3200, 0x321e}, {0x322a, 0x3243}, {0x3250, 0x3250}, {0x3260, 0x327d},
  817. {0x327f, 0x327f}, {0x328a, 0x32b0}, {0x32c0, 0x32fe}, {0x3300, 0x33ff},
  818. {0x4dc0, 0x4dff}, {0xa490, 0xa4c6}, {0xfb29, 0xfb29}, {0xfdfc, 0xfdfd},
  819. {0xfe62, 0xfe62}, {0xfe64, 0xfe66}, {0xfe69, 0xfe69}, {0xff04, 0xff04},
  820. {0xff0b, 0xff0b}, {0xff1c, 0xff1e}, {0xff3e, 0xff3e}, {0xff40, 0xff40},
  821. {0xff5c, 0xff5c}, {0xff5e, 0xff5e}, {0xffe0, 0xffe6}, {0xffe8, 0xffee},
  822. {0xfffc, 0xfffd} };
  823. static const xmlChLRange xmlSL[] = {{0x10102, 0x10102}, {0x10137, 0x1013f},
  824. {0x1d000, 0x1d0f5}, {0x1d100, 0x1d126}, {0x1d12a, 0x1d164},
  825. {0x1d16a, 0x1d16c}, {0x1d183, 0x1d184}, {0x1d18c, 0x1d1a9},
  826. {0x1d1ae, 0x1d1dd}, {0x1d300, 0x1d356}, {0x1d6c1, 0x1d6c1},
  827. {0x1d6db, 0x1d6db}, {0x1d6fb, 0x1d6fb}, {0x1d715, 0x1d715},
  828. {0x1d735, 0x1d735}, {0x1d74f, 0x1d74f}, {0x1d76f, 0x1d76f},
  829. {0x1d789, 0x1d789}, {0x1d7a9, 0x1d7a9}, {0x1d7c3, 0x1d7c3} };
  830. static const xmlChRangeGroup xmlSG = {133,20,xmlSS,xmlSL};
  831. static const xmlChSRange xmlScS[] = {{0x24, 0x24}, {0xa2, 0xa5},
  832. {0x9f2, 0x9f3}, {0xaf1, 0xaf1}, {0xbf9, 0xbf9}, {0xe3f, 0xe3f},
  833. {0x17db, 0x17db}, {0x20a0, 0x20b1}, {0xfdfc, 0xfdfc}, {0xfe69, 0xfe69},
  834. {0xff04, 0xff04}, {0xffe0, 0xffe1}, {0xffe5, 0xffe6} };
  835. static const xmlChRangeGroup xmlScG = {13,0,xmlScS,NULL};
  836. static const xmlChSRange xmlSkS[] = {{0x5e, 0x5e}, {0x60, 0x60},
  837. {0xa8, 0xa8}, {0xaf, 0xaf}, {0xb4, 0xb4}, {0xb8, 0xb8}, {0x2c2, 0x2c5},
  838. {0x2d2, 0x2df}, {0x2e5, 0x2ed}, {0x2ef, 0x2ff}, {0x374, 0x375},
  839. {0x384, 0x385}, {0x1fbd, 0x1fbd}, {0x1fbf, 0x1fc1}, {0x1fcd, 0x1fcf},
  840. {0x1fdd, 0x1fdf}, {0x1fed, 0x1fef}, {0x1ffd, 0x1ffe}, {0x309b, 0x309c},
  841. {0xff3e, 0xff3e}, {0xff40, 0xff40}, {0xffe3, 0xffe3} };
  842. static const xmlChRangeGroup xmlSkG = {22,0,xmlSkS,NULL};
  843. static const xmlChSRange xmlSmS[] = {{0x2b, 0x2b}, {0x3c, 0x3e},
  844. {0x7c, 0x7c}, {0x7e, 0x7e}, {0xac, 0xac}, {0xb1, 0xb1}, {0xd7, 0xd7},
  845. {0xf7, 0xf7}, {0x3f6, 0x3f6}, {0x2044, 0x2044}, {0x2052, 0x2052},
  846. {0x207a, 0x207c}, {0x208a, 0x208c}, {0x2140, 0x2144}, {0x214b, 0x214b},
  847. {0x2190, 0x2194}, {0x219a, 0x219b}, {0x21a0, 0x21a0}, {0x21a3, 0x21a3},
  848. {0x21a6, 0x21a6}, {0x21ae, 0x21ae}, {0x21ce, 0x21cf}, {0x21d2, 0x21d2},
  849. {0x21d4, 0x21d4}, {0x21f4, 0x22ff}, {0x2308, 0x230b}, {0x2320, 0x2321},
  850. {0x237c, 0x237c}, {0x239b, 0x23b3}, {0x25b7, 0x25b7}, {0x25c1, 0x25c1},
  851. {0x25f8, 0x25ff}, {0x266f, 0x266f}, {0x27d0, 0x27e5}, {0x27f0, 0x27ff},
  852. {0x2900, 0x2982}, {0x2999, 0x29d7}, {0x29dc, 0x29fb}, {0x29fe, 0x2aff},
  853. {0xfb29, 0xfb29}, {0xfe62, 0xfe62}, {0xfe64, 0xfe66}, {0xff0b, 0xff0b},
  854. {0xff1c, 0xff1e}, {0xff5c, 0xff5c}, {0xff5e, 0xff5e}, {0xffe2, 0xffe2},
  855. {0xffe9, 0xffec} };
  856. static const xmlChLRange xmlSmL[] = {{0x1d6c1, 0x1d6c1}, {0x1d6db, 0x1d6db},
  857. {0x1d6fb, 0x1d6fb}, {0x1d715, 0x1d715}, {0x1d735, 0x1d735},
  858. {0x1d74f, 0x1d74f}, {0x1d76f, 0x1d76f}, {0x1d789, 0x1d789},
  859. {0x1d7a9, 0x1d7a9}, {0x1d7c3, 0x1d7c3} };
  860. static const xmlChRangeGroup xmlSmG = {48,10,xmlSmS,xmlSmL};
  861. static const xmlChSRange xmlSoS[] = {{0xa6, 0xa7}, {0xa9, 0xa9},
  862. {0xae, 0xae}, {0xb0, 0xb0}, {0xb6, 0xb6}, {0x482, 0x482},
  863. {0x60e, 0x60f}, {0x6e9, 0x6e9}, {0x6fd, 0x6fe}, {0x9fa, 0x9fa},
  864. {0xb70, 0xb70}, {0xbf3, 0xbf8}, {0xbfa, 0xbfa}, {0xf01, 0xf03},
  865. {0xf13, 0xf17}, {0xf1a, 0xf1f}, {0xf34, 0xf34}, {0xf36, 0xf36},
  866. {0xf38, 0xf38}, {0xfbe, 0xfc5}, {0xfc7, 0xfcc}, {0xfcf, 0xfcf},
  867. {0x1940, 0x1940}, {0x19e0, 0x19ff}, {0x2100, 0x2101}, {0x2103, 0x2106},
  868. {0x2108, 0x2109}, {0x2114, 0x2114}, {0x2116, 0x2118}, {0x211e, 0x2123},
  869. {0x2125, 0x2125}, {0x2127, 0x2127}, {0x2129, 0x2129}, {0x212e, 0x212e},
  870. {0x2132, 0x2132}, {0x213a, 0x213b}, {0x214a, 0x214a}, {0x2195, 0x2199},
  871. {0x219c, 0x219f}, {0x21a1, 0x21a2}, {0x21a4, 0x21a5}, {0x21a7, 0x21ad},
  872. {0x21af, 0x21cd}, {0x21d0, 0x21d1}, {0x21d3, 0x21d3}, {0x21d5, 0x21f3},
  873. {0x2300, 0x2307}, {0x230c, 0x231f}, {0x2322, 0x2328}, {0x232b, 0x237b},
  874. {0x237d, 0x239a}, {0x23b7, 0x23d0}, {0x2400, 0x2426}, {0x2440, 0x244a},
  875. {0x249c, 0x24e9}, {0x2500, 0x25b6}, {0x25b8, 0x25c0}, {0x25c2, 0x25f7},
  876. {0x2600, 0x2617}, {0x2619, 0x266e}, {0x2670, 0x267d}, {0x2680, 0x2691},
  877. {0x26a0, 0x26a1}, {0x2701, 0x2704}, {0x2706, 0x2709}, {0x270c, 0x2727},
  878. {0x2729, 0x274b}, {0x274d, 0x274d}, {0x274f, 0x2752}, {0x2756, 0x2756},
  879. {0x2758, 0x275e}, {0x2761, 0x2767}, {0x2794, 0x2794}, {0x2798, 0x27af},
  880. {0x27b1, 0x27be}, {0x2800, 0x28ff}, {0x2b00, 0x2b0d}, {0x2e80, 0x2e99},
  881. {0x2e9b, 0x2ef3}, {0x2f00, 0x2fd5}, {0x2ff0, 0x2ffb}, {0x3004, 0x3004},
  882. {0x3012, 0x3013}, {0x3020, 0x3020}, {0x3036, 0x3037}, {0x303e, 0x303f},
  883. {0x3190, 0x3191}, {0x3196, 0x319f}, {0x3200, 0x321e}, {0x322a, 0x3243},
  884. {0x3250, 0x3250}, {0x3260, 0x327d}, {0x327f, 0x327f}, {0x328a, 0x32b0},
  885. {0x32c0, 0x32fe}, {0x3300, 0x33ff}, {0x4dc0, 0x4dff}, {0xa490, 0xa4c6},
  886. {0xfdfd, 0xfdfd}, {0xffe4, 0xffe4}, {0xffe8, 0xffe8}, {0xffed, 0xffee},
  887. {0xfffc, 0xfffd} };
  888. static const xmlChLRange xmlSoL[] = {{0x10102, 0x10102}, {0x10137, 0x1013f},
  889. {0x1d000, 0x1d0f5}, {0x1d100, 0x1d126}, {0x1d12a, 0x1d164},
  890. {0x1d16a, 0x1d16c}, {0x1d183, 0x1d184}, {0x1d18c, 0x1d1a9},
  891. {0x1d1ae, 0x1d1dd}, {0x1d300, 0x1d356} };
  892. static const xmlChRangeGroup xmlSoG = {103,10,xmlSoS,xmlSoL};
  893. static const xmlChSRange xmlZS[] = {{0x20, 0x20}, {0xa0, 0xa0},
  894. {0x1680, 0x1680}, {0x180e, 0x180e}, {0x2000, 0x200a}, {0x2028, 0x2029},
  895. {0x202f, 0x202f}, {0x205f, 0x205f}, {0x3000, 0x3000} };
  896. static const xmlChRangeGroup xmlZG = {9,0,xmlZS,NULL};
  897. static const xmlUnicodeNameTable xmlUnicodeBlockTbl = {xmlUnicodeBlocks, 128};
  898. static const xmlUnicodeNameTable xmlUnicodeCatTbl = {xmlUnicodeCats, 36};
  899. /**
  900. * xmlUnicodeLookup:
  901. * @tptr: pointer to the name table
  902. * @name: name to be found
  903. *
  904. * binary table lookup for user-supplied name
  905. *
  906. * Returns pointer to range function if found, otherwise NULL
  907. */
  908. static xmlIntFunc
  909. *xmlUnicodeLookup(const xmlUnicodeNameTable *tptr, const char *tname) {
  910. int low, high, mid, cmp;
  911. const xmlUnicodeRange *sptr;
  912. if ((tptr == NULL) || (tname == NULL)) return(NULL);
  913. low = 0;
  914. high = tptr->numentries - 1;
  915. sptr = tptr->table;
  916. while (low <= high) {
  917. mid = (low + high) / 2;
  918. if ((cmp=strcmp(tname, sptr[mid].rangename)) == 0)
  919. return (sptr[mid].func);
  920. if (cmp < 0)
  921. high = mid - 1;
  922. else
  923. low = mid + 1;
  924. }
  925. return (NULL);
  926. }
  927. /**
  928. * xmlUCSIsAegeanNumbers:
  929. * @code: UCS code point
  930. *
  931. * Check whether the character is part of AegeanNumbers UCS Block
  932. *
  933. * Returns 1 if true 0 otherwise
  934. */
  935. int
  936. xmlUCSIsAegeanNumbers(int code) {
  937. return(((code >= 0x10100) && (code <= 0x1013F)));
  938. }
  939. /**
  940. * xmlUCSIsAlphabeticPresentationForms:
  941. * @code: UCS code point
  942. *
  943. * Check whether the character is part of AlphabeticPresentationForms UCS Block
  944. *
  945. * Returns 1 if true 0 otherwise
  946. */
  947. int
  948. xmlUCSIsAlphabeticPresentationForms(int code) {
  949. return(((code >= 0xFB00) && (code <= 0xFB4F)));
  950. }
  951. /**
  952. * xmlUCSIsArabic:
  953. * @code: UCS code point
  954. *
  955. * Check whether the character is part of Arabic UCS Block
  956. *
  957. * Returns 1 if true 0 otherwise
  958. */
  959. int
  960. xmlUCSIsArabic(int code) {
  961. return(((code >= 0x0600) && (code <= 0x06FF)));
  962. }
  963. /**
  964. * xmlUCSIsArabicPresentationFormsA:
  965. * @code: UCS code point
  966. *
  967. * Check whether the character is part of ArabicPresentationForms-A UCS Block
  968. *
  969. * Returns 1 if true 0 otherwise
  970. */
  971. int
  972. xmlUCSIsArabicPresentationFormsA(int code) {
  973. return(((code >= 0xFB50) && (code <= 0xFDFF)));
  974. }
  975. /**
  976. * xmlUCSIsArabicPresentationFormsB:
  977. * @code: UCS code point
  978. *
  979. * Check whether the character is part of ArabicPresentationForms-B UCS Block
  980. *
  981. * Returns 1 if true 0 otherwise
  982. */
  983. int
  984. xmlUCSIsArabicPresentationFormsB(int code) {
  985. return(((code >= 0xFE70) && (code <= 0xFEFF)));
  986. }
  987. /**
  988. * xmlUCSIsArmenian:
  989. * @code: UCS code point
  990. *
  991. * Check whether the character is part of Armenian UCS Block
  992. *
  993. * Returns 1 if true 0 otherwise
  994. */
  995. int
  996. xmlUCSIsArmenian(int code) {
  997. return(((code >= 0x0530) && (code <= 0x058F)));
  998. }
  999. /**
  1000. * xmlUCSIsArrows:
  1001. * @code: UCS code point
  1002. *
  1003. * Check whether the character is part of Arrows UCS Block
  1004. *
  1005. * Returns 1 if true 0 otherwise
  1006. */
  1007. int
  1008. xmlUCSIsArrows(int code) {
  1009. return(((code >= 0x2190) && (code <= 0x21FF)));
  1010. }
  1011. /**
  1012. * xmlUCSIsBasicLatin:
  1013. * @code: UCS code point
  1014. *
  1015. * Check whether the character is part of BasicLatin UCS Block
  1016. *
  1017. * Returns 1 if true 0 otherwise
  1018. */
  1019. int
  1020. xmlUCSIsBasicLatin(int code) {
  1021. return(((code >= 0x0000) && (code <= 0x007F)));
  1022. }
  1023. /**
  1024. * xmlUCSIsBengali:
  1025. * @code: UCS code point
  1026. *
  1027. * Check whether the character is part of Bengali UCS Block
  1028. *
  1029. * Returns 1 if true 0 otherwise
  1030. */
  1031. int
  1032. xmlUCSIsBengali(int code) {
  1033. return(((code >= 0x0980) && (code <= 0x09FF)));
  1034. }
  1035. /**
  1036. * xmlUCSIsBlockElements:
  1037. * @code: UCS code point
  1038. *
  1039. * Check whether the character is part of BlockElements UCS Block
  1040. *
  1041. * Returns 1 if true 0 otherwise
  1042. */
  1043. int
  1044. xmlUCSIsBlockElements(int code) {
  1045. return(((code >= 0x2580) && (code <= 0x259F)));
  1046. }
  1047. /**
  1048. * xmlUCSIsBopomofo:
  1049. * @code: UCS code point
  1050. *
  1051. * Check whether the character is part of Bopomofo UCS Block
  1052. *
  1053. * Returns 1 if true 0 otherwise
  1054. */
  1055. int
  1056. xmlUCSIsBopomofo(int code) {
  1057. return(((code >= 0x3100) && (code <= 0x312F)));
  1058. }
  1059. /**
  1060. * xmlUCSIsBopomofoExtended:
  1061. * @code: UCS code point
  1062. *
  1063. * Check whether the character is part of BopomofoExtended UCS Block
  1064. *
  1065. * Returns 1 if true 0 otherwise
  1066. */
  1067. int
  1068. xmlUCSIsBopomofoExtended(int code) {
  1069. return(((code >= 0x31A0) && (code <= 0x31BF)));
  1070. }
  1071. /**
  1072. * xmlUCSIsBoxDrawing:
  1073. * @code: UCS code point
  1074. *
  1075. * Check whether the character is part of BoxDrawing UCS Block
  1076. *
  1077. * Returns 1 if true 0 otherwise
  1078. */
  1079. int
  1080. xmlUCSIsBoxDrawing(int code) {
  1081. return(((code >= 0x2500) && (code <= 0x257F)));
  1082. }
  1083. /**
  1084. * xmlUCSIsBraillePatterns:
  1085. * @code: UCS code point
  1086. *
  1087. * Check whether the character is part of BraillePatterns UCS Block
  1088. *
  1089. * Returns 1 if true 0 otherwise
  1090. */
  1091. int
  1092. xmlUCSIsBraillePatterns(int code) {
  1093. return(((code >= 0x2800) && (code <= 0x28FF)));
  1094. }
  1095. /**
  1096. * xmlUCSIsBuhid:
  1097. * @code: UCS code point
  1098. *
  1099. * Check whether the character is part of Buhid UCS Block
  1100. *
  1101. * Returns 1 if true 0 otherwise
  1102. */
  1103. int
  1104. xmlUCSIsBuhid(int code) {
  1105. return(((code >= 0x1740) && (code <= 0x175F)));
  1106. }
  1107. /**
  1108. * xmlUCSIsByzantineMusicalSymbols:
  1109. * @code: UCS code point
  1110. *
  1111. * Check whether the character is part of ByzantineMusicalSymbols UCS Block
  1112. *
  1113. * Returns 1 if true 0 otherwise
  1114. */
  1115. int
  1116. xmlUCSIsByzantineMusicalSymbols(int code) {
  1117. return(((code >= 0x1D000) && (code <= 0x1D0FF)));
  1118. }
  1119. /**
  1120. * xmlUCSIsCJKCompatibility:
  1121. * @code: UCS code point
  1122. *
  1123. * Check whether the character is part of CJKCompatibility UCS Block
  1124. *
  1125. * Returns 1 if true 0 otherwise
  1126. */
  1127. int
  1128. xmlUCSIsCJKCompatibility(int code) {
  1129. return(((code >= 0x3300) && (code <= 0x33FF)));
  1130. }
  1131. /**
  1132. * xmlUCSIsCJKCompatibilityForms:
  1133. * @code: UCS code point
  1134. *
  1135. * Check whether the character is part of CJKCompatibilityForms UCS Block
  1136. *
  1137. * Returns 1 if true 0 otherwise
  1138. */
  1139. int
  1140. xmlUCSIsCJKCompatibilityForms(int code) {
  1141. return(((code >= 0xFE30) && (code <= 0xFE4F)));
  1142. }
  1143. /**
  1144. * xmlUCSIsCJKCompatibilityIdeographs:
  1145. * @code: UCS code point
  1146. *
  1147. * Check whether the character is part of CJKCompatibilityIdeographs UCS Block
  1148. *
  1149. * Returns 1 if true 0 otherwise
  1150. */
  1151. int
  1152. xmlUCSIsCJKCompatibilityIdeographs(int code) {
  1153. return(((code >= 0xF900) && (code <= 0xFAFF)));
  1154. }
  1155. /**
  1156. * xmlUCSIsCJKCompatibilityIdeographsSupplement:
  1157. * @code: UCS code point
  1158. *
  1159. * Check whether the character is part of CJKCompatibilityIdeographsSupplement UCS Block
  1160. *
  1161. * Returns 1 if true 0 otherwise
  1162. */
  1163. int
  1164. xmlUCSIsCJKCompatibilityIdeographsSupplement(int code) {
  1165. return(((code >= 0x2F800) && (code <= 0x2FA1F)));
  1166. }
  1167. /**
  1168. * xmlUCSIsCJKRadicalsSupplement:
  1169. * @code: UCS code point
  1170. *
  1171. * Check whether the character is part of CJKRadicalsSupplement UCS Block
  1172. *
  1173. * Returns 1 if true 0 otherwise
  1174. */
  1175. int
  1176. xmlUCSIsCJKRadicalsSupplement(int code) {
  1177. return(((code >= 0x2E80) && (code <= 0x2EFF)));
  1178. }
  1179. /**
  1180. * xmlUCSIsCJKSymbolsandPunctuation:
  1181. * @code: UCS code point
  1182. *
  1183. * Check whether the character is part of CJKSymbolsandPunctuation UCS Block
  1184. *
  1185. * Returns 1 if true 0 otherwise
  1186. */
  1187. int
  1188. xmlUCSIsCJKSymbolsandPunctuation(int code) {
  1189. return(((code >= 0x3000) && (code <= 0x303F)));
  1190. }
  1191. /**
  1192. * xmlUCSIsCJKUnifiedIdeographs:
  1193. * @code: UCS code point
  1194. *
  1195. * Check whether the character is part of CJKUnifiedIdeographs UCS Block
  1196. *
  1197. * Returns 1 if true 0 otherwise
  1198. */
  1199. int
  1200. xmlUCSIsCJKUnifiedIdeographs(int code) {
  1201. return(((code >= 0x4E00) && (code <= 0x9FFF)));
  1202. }
  1203. /**
  1204. * xmlUCSIsCJKUnifiedIdeographsExtensionA:
  1205. * @code: UCS code point
  1206. *
  1207. * Check whether the character is part of CJKUnifiedIdeographsExtensionA UCS Block
  1208. *
  1209. * Returns 1 if true 0 otherwise
  1210. */
  1211. int
  1212. xmlUCSIsCJKUnifiedIdeographsExtensionA(int code) {
  1213. return(((code >= 0x3400) && (code <= 0x4DBF)));
  1214. }
  1215. /**
  1216. * xmlUCSIsCJKUnifiedIdeographsExtensionB:
  1217. * @code: UCS code point
  1218. *
  1219. * Check whether the character is part of CJKUnifiedIdeographsExtensionB UCS Block
  1220. *
  1221. * Returns 1 if true 0 otherwise
  1222. */
  1223. int
  1224. xmlUCSIsCJKUnifiedIdeographsExtensionB(int code) {
  1225. return(((code >= 0x20000) && (code <= 0x2A6DF)));
  1226. }
  1227. /**
  1228. * xmlUCSIsCherokee:
  1229. * @code: UCS code point
  1230. *
  1231. * Check whether the character is part of Cherokee UCS Block
  1232. *
  1233. * Returns 1 if true 0 otherwise
  1234. */
  1235. int
  1236. xmlUCSIsCherokee(int code) {
  1237. return(((code >= 0x13A0) && (code <= 0x13FF)));
  1238. }
  1239. /**
  1240. * xmlUCSIsCombiningDiacriticalMarks:
  1241. * @code: UCS code point
  1242. *
  1243. * Check whether the character is part of CombiningDiacriticalMarks UCS Block
  1244. *
  1245. * Returns 1 if true 0 otherwise
  1246. */
  1247. int
  1248. xmlUCSIsCombiningDiacriticalMarks(int code) {
  1249. return(((code >= 0x0300) && (code <= 0x036F)));
  1250. }
  1251. /**
  1252. * xmlUCSIsCombiningDiacriticalMarksforSymbols:
  1253. * @code: UCS code point
  1254. *
  1255. * Check whether the character is part of CombiningDiacriticalMarksforSymbols UCS Block
  1256. *
  1257. * Returns 1 if true 0 otherwise
  1258. */
  1259. int
  1260. xmlUCSIsCombiningDiacriticalMarksforSymbols(int code) {
  1261. return(((code >= 0x20D0) && (code <= 0x20FF)));
  1262. }
  1263. /**
  1264. * xmlUCSIsCombiningHalfMarks:
  1265. * @code: UCS code point
  1266. *
  1267. * Check whether the character is part of CombiningHalfMarks UCS Block
  1268. *
  1269. * Returns 1 if true 0 otherwise
  1270. */
  1271. int
  1272. xmlUCSIsCombiningHalfMarks(int code) {
  1273. return(((code >= 0xFE20) && (code <= 0xFE2F)));
  1274. }
  1275. /**
  1276. * xmlUCSIsCombiningMarksforSymbols:
  1277. * @code: UCS code point
  1278. *
  1279. * Check whether the character is part of CombiningMarksforSymbols UCS Block
  1280. *
  1281. * Returns 1 if true 0 otherwise
  1282. */
  1283. int
  1284. xmlUCSIsCombiningMarksforSymbols(int code) {
  1285. return(((code >= 0x20D0) && (code <= 0x20FF)));
  1286. }
  1287. /**
  1288. * xmlUCSIsControlPictures:
  1289. * @code: UCS code point
  1290. *
  1291. * Check whether the character is part of ControlPictures UCS Block
  1292. *
  1293. * Returns 1 if true 0 otherwise
  1294. */
  1295. int
  1296. xmlUCSIsControlPictures(int code) {
  1297. return(((code >= 0x2400) && (code <= 0x243F)));
  1298. }
  1299. /**
  1300. * xmlUCSIsCurrencySymbols:
  1301. * @code: UCS code point
  1302. *
  1303. * Check whether the character is part of CurrencySymbols UCS Block
  1304. *
  1305. * Returns 1 if true 0 otherwise
  1306. */
  1307. int
  1308. xmlUCSIsCurrencySymbols(int code) {
  1309. return(((code >= 0x20A0) && (code <= 0x20CF)));
  1310. }
  1311. /**
  1312. * xmlUCSIsCypriotSyllabary:
  1313. * @code: UCS code point
  1314. *
  1315. * Check whether the character is part of CypriotSyllabary UCS Block
  1316. *
  1317. * Returns 1 if true 0 otherwise
  1318. */
  1319. int
  1320. xmlUCSIsCypriotSyllabary(int code) {
  1321. return(((code >= 0x10800) && (code <= 0x1083F)));
  1322. }
  1323. /**
  1324. * xmlUCSIsCyrillic:
  1325. * @code: UCS code point
  1326. *
  1327. * Check whether the character is part of Cyrillic UCS Block
  1328. *
  1329. * Returns 1 if true 0 otherwise
  1330. */
  1331. int
  1332. xmlUCSIsCyrillic(int code) {
  1333. return(((code >= 0x0400) && (code <= 0x04FF)));
  1334. }
  1335. /**
  1336. * xmlUCSIsCyrillicSupplement:
  1337. * @code: UCS code point
  1338. *
  1339. * Check whether the character is part of CyrillicSupplement UCS Block
  1340. *
  1341. * Returns 1 if true 0 otherwise
  1342. */
  1343. int
  1344. xmlUCSIsCyrillicSupplement(int code) {
  1345. return(((code >= 0x0500) && (code <= 0x052F)));
  1346. }
  1347. /**
  1348. * xmlUCSIsDeseret:
  1349. * @code: UCS code point
  1350. *
  1351. * Check whether the character is part of Deseret UCS Block
  1352. *
  1353. * Returns 1 if true 0 otherwise
  1354. */
  1355. int
  1356. xmlUCSIsDeseret(int code) {
  1357. return(((code >= 0x10400) && (code <= 0x1044F)));
  1358. }
  1359. /**
  1360. * xmlUCSIsDevanagari:
  1361. * @code: UCS code point
  1362. *
  1363. * Check whether the character is part of Devanagari UCS Block
  1364. *
  1365. * Returns 1 if true 0 otherwise
  1366. */
  1367. int
  1368. xmlUCSIsDevanagari(int code) {
  1369. return(((code >= 0x0900) && (code <= 0x097F)));
  1370. }
  1371. /**
  1372. * xmlUCSIsDingbats:
  1373. * @code: UCS code point
  1374. *
  1375. * Check whether the character is part of Dingbats UCS Block
  1376. *
  1377. * Returns 1 if true 0 otherwise
  1378. */
  1379. int
  1380. xmlUCSIsDingbats(int code) {
  1381. return(((code >= 0x2700) && (code <= 0x27BF)));
  1382. }
  1383. /**
  1384. * xmlUCSIsEnclosedAlphanumerics:
  1385. * @code: UCS code point
  1386. *
  1387. * Check whether the character is part of EnclosedAlphanumerics UCS Block
  1388. *
  1389. * Returns 1 if true 0 otherwise
  1390. */
  1391. int
  1392. xmlUCSIsEnclosedAlphanumerics(int code) {
  1393. return(((code >= 0x2460) && (code <= 0x24FF)));
  1394. }
  1395. /**
  1396. * xmlUCSIsEnclosedCJKLettersandMonths:
  1397. * @code: UCS code point
  1398. *
  1399. * Check whether the character is part of EnclosedCJKLettersandMonths UCS Block
  1400. *
  1401. * Returns 1 if true 0 otherwise
  1402. */
  1403. int
  1404. xmlUCSIsEnclosedCJKLettersandMonths(int code) {
  1405. return(((code >= 0x3200) && (code <= 0x32FF)));
  1406. }
  1407. /**
  1408. * xmlUCSIsEthiopic:
  1409. * @code: UCS code point
  1410. *
  1411. * Check whether the character is part of Ethiopic UCS Block
  1412. *
  1413. * Returns 1 if true 0 otherwise
  1414. */
  1415. int
  1416. xmlUCSIsEthiopic(int code) {
  1417. return(((code >= 0x1200) && (code <= 0x137F)));
  1418. }
  1419. /**
  1420. * xmlUCSIsGeneralPunctuation:
  1421. * @code: UCS code point
  1422. *
  1423. * Check whether the character is part of GeneralPunctuation UCS Block
  1424. *
  1425. * Returns 1 if true 0 otherwise
  1426. */
  1427. int
  1428. xmlUCSIsGeneralPunctuation(int code) {
  1429. return(((code >= 0x2000) && (code <= 0x206F)));
  1430. }
  1431. /**
  1432. * xmlUCSIsGeometricShapes:
  1433. * @code: UCS code point
  1434. *
  1435. * Check whether the character is part of GeometricShapes UCS Block
  1436. *
  1437. * Returns 1 if true 0 otherwise
  1438. */
  1439. int
  1440. xmlUCSIsGeometricShapes(int code) {
  1441. return(((code >= 0x25A0) && (code <= 0x25FF)));
  1442. }
  1443. /**
  1444. * xmlUCSIsGeorgian:
  1445. * @code: UCS code point
  1446. *
  1447. * Check whether the character is part of Georgian UCS Block
  1448. *
  1449. * Returns 1 if true 0 otherwise
  1450. */
  1451. int
  1452. xmlUCSIsGeorgian(int code) {
  1453. return(((code >= 0x10A0) && (code <= 0x10FF)));
  1454. }
  1455. /**
  1456. * xmlUCSIsGothic:
  1457. * @code: UCS code point
  1458. *
  1459. * Check whether the character is part of Gothic UCS Block
  1460. *
  1461. * Returns 1 if true 0 otherwise
  1462. */
  1463. int
  1464. xmlUCSIsGothic(int code) {
  1465. return(((code >= 0x10330) && (code <= 0x1034F)));
  1466. }
  1467. /**
  1468. * xmlUCSIsGreek:
  1469. * @code: UCS code point
  1470. *
  1471. * Check whether the character is part of Greek UCS Block
  1472. *
  1473. * Returns 1 if true 0 otherwise
  1474. */
  1475. int
  1476. xmlUCSIsGreek(int code) {
  1477. return(((code >= 0x0370) && (code <= 0x03FF)));
  1478. }
  1479. /**
  1480. * xmlUCSIsGreekExtended:
  1481. * @code: UCS code point
  1482. *
  1483. * Check whether the character is part of GreekExtended UCS Block
  1484. *
  1485. * Returns 1 if true 0 otherwise
  1486. */
  1487. int
  1488. xmlUCSIsGreekExtended(int code) {
  1489. return(((code >= 0x1F00) && (code <= 0x1FFF)));
  1490. }
  1491. /**
  1492. * xmlUCSIsGreekandCoptic:
  1493. * @code: UCS code point
  1494. *
  1495. * Check whether the character is part of GreekandCoptic UCS Block
  1496. *
  1497. * Returns 1 if true 0 otherwise
  1498. */
  1499. int
  1500. xmlUCSIsGreekandCoptic(int code) {
  1501. return(((code >= 0x0370) && (code <= 0x03FF)));
  1502. }
  1503. /**
  1504. * xmlUCSIsGujarati:
  1505. * @code: UCS code point
  1506. *
  1507. * Check whether the character is part of Gujarati UCS Block
  1508. *
  1509. * Returns 1 if true 0 otherwise
  1510. */
  1511. int
  1512. xmlUCSIsGujarati(int code) {
  1513. return(((code >= 0x0A80) && (code <= 0x0AFF)));
  1514. }
  1515. /**
  1516. * xmlUCSIsGurmukhi:
  1517. * @code: UCS code point
  1518. *
  1519. * Check whether the character is part of Gurmukhi UCS Block
  1520. *
  1521. * Returns 1 if true 0 otherwise
  1522. */
  1523. int
  1524. xmlUCSIsGurmukhi(int code) {
  1525. return(((code >= 0x0A00) && (code <= 0x0A7F)));
  1526. }
  1527. /**
  1528. * xmlUCSIsHalfwidthandFullwidthForms:
  1529. * @code: UCS code point
  1530. *
  1531. * Check whether the character is part of HalfwidthandFullwidthForms UCS Block
  1532. *
  1533. * Returns 1 if true 0 otherwise
  1534. */
  1535. int
  1536. xmlUCSIsHalfwidthandFullwidthForms(int code) {
  1537. return(((code >= 0xFF00) && (code <= 0xFFEF)));
  1538. }
  1539. /**
  1540. * xmlUCSIsHangulCompatibilityJamo:
  1541. * @code: UCS code point
  1542. *
  1543. * Check whether the character is part of HangulCompatibilityJamo UCS Block
  1544. *
  1545. * Returns 1 if true 0 otherwise
  1546. */
  1547. int
  1548. xmlUCSIsHangulCompatibilityJamo(int code) {
  1549. return(((code >= 0x3130) && (code <= 0x318F)));
  1550. }
  1551. /**
  1552. * xmlUCSIsHangulJamo:
  1553. * @code: UCS code point
  1554. *
  1555. * Check whether the character is part of HangulJamo UCS Block
  1556. *
  1557. * Returns 1 if true 0 otherwise
  1558. */
  1559. int
  1560. xmlUCSIsHangulJamo(int code) {
  1561. return(((code >= 0x1100) && (code <= 0x11FF)));
  1562. }
  1563. /**
  1564. * xmlUCSIsHangulSyllables:
  1565. * @code: UCS code point
  1566. *
  1567. * Check whether the character is part of HangulSyllables UCS Block
  1568. *
  1569. * Returns 1 if true 0 otherwise
  1570. */
  1571. int
  1572. xmlUCSIsHangulSyllables(int code) {
  1573. return(((code >= 0xAC00) && (code <= 0xD7AF)));
  1574. }
  1575. /**
  1576. * xmlUCSIsHanunoo:
  1577. * @code: UCS code point
  1578. *
  1579. * Check whether the character is part of Hanunoo UCS Block
  1580. *
  1581. * Returns 1 if true 0 otherwise
  1582. */
  1583. int
  1584. xmlUCSIsHanunoo(int code) {
  1585. return(((code >= 0x1720) && (code <= 0x173F)));
  1586. }
  1587. /**
  1588. * xmlUCSIsHebrew:
  1589. * @code: UCS code point
  1590. *
  1591. * Check whether the character is part of Hebrew UCS Block
  1592. *
  1593. * Returns 1 if true 0 otherwise
  1594. */
  1595. int
  1596. xmlUCSIsHebrew(int code) {
  1597. return(((code >= 0x0590) && (code <= 0x05FF)));
  1598. }
  1599. /**
  1600. * xmlUCSIsHighPrivateUseSurrogates:
  1601. * @code: UCS code point
  1602. *
  1603. * Check whether the character is part of HighPrivateUseSurrogates UCS Block
  1604. *
  1605. * Returns 1 if true 0 otherwise
  1606. */
  1607. int
  1608. xmlUCSIsHighPrivateUseSurrogates(int code) {
  1609. return(((code >= 0xDB80) && (code <= 0xDBFF)));
  1610. }
  1611. /**
  1612. * xmlUCSIsHighSurrogates:
  1613. * @code: UCS code point
  1614. *
  1615. * Check whether the character is part of HighSurrogates UCS Block
  1616. *
  1617. * Returns 1 if true 0 otherwise
  1618. */
  1619. int
  1620. xmlUCSIsHighSurrogates(int code) {
  1621. return(((code >= 0xD800) && (code <= 0xDB7F)));
  1622. }
  1623. /**
  1624. * xmlUCSIsHiragana:
  1625. * @code: UCS code point
  1626. *
  1627. * Check whether the character is part of Hiragana UCS Block
  1628. *
  1629. * Returns 1 if true 0 otherwise
  1630. */
  1631. int
  1632. xmlUCSIsHiragana(int code) {
  1633. return(((code >= 0x3040) && (code <= 0x309F)));
  1634. }
  1635. /**
  1636. * xmlUCSIsIPAExtensions:
  1637. * @code: UCS code point
  1638. *
  1639. * Check whether the character is part of IPAExtensions UCS Block
  1640. *
  1641. * Returns 1 if true 0 otherwise
  1642. */
  1643. int
  1644. xmlUCSIsIPAExtensions(int code) {
  1645. return(((code >= 0x0250) && (code <= 0x02AF)));
  1646. }
  1647. /**
  1648. * xmlUCSIsIdeographicDescriptionCharacters:
  1649. * @code: UCS code point
  1650. *
  1651. * Check whether the character is part of IdeographicDescriptionCharacters UCS Block
  1652. *
  1653. * Returns 1 if true 0 otherwise
  1654. */
  1655. int
  1656. xmlUCSIsIdeographicDescriptionCharacters(int code) {
  1657. return(((code >= 0x2FF0) && (code <= 0x2FFF)));
  1658. }
  1659. /**
  1660. * xmlUCSIsKanbun:
  1661. * @code: UCS code point
  1662. *
  1663. * Check whether the character is part of Kanbun UCS Block
  1664. *
  1665. * Returns 1 if true 0 otherwise
  1666. */
  1667. int
  1668. xmlUCSIsKanbun(int code) {
  1669. return(((code >= 0x3190) && (code <= 0x319F)));
  1670. }
  1671. /**
  1672. * xmlUCSIsKangxiRadicals:
  1673. * @code: UCS code point
  1674. *
  1675. * Check whether the character is part of KangxiRadicals UCS Block
  1676. *
  1677. * Returns 1 if true 0 otherwise
  1678. */
  1679. int
  1680. xmlUCSIsKangxiRadicals(int code) {
  1681. return(((code >= 0x2F00) && (code <= 0x2FDF)));
  1682. }
  1683. /**
  1684. * xmlUCSIsKannada:
  1685. * @code: UCS code point
  1686. *
  1687. * Check whether the character is part of Kannada UCS Block
  1688. *
  1689. * Returns 1 if true 0 otherwise
  1690. */
  1691. int
  1692. xmlUCSIsKannada(int code) {
  1693. return(((code >= 0x0C80) && (code <= 0x0CFF)));
  1694. }
  1695. /**
  1696. * xmlUCSIsKatakana:
  1697. * @code: UCS code point
  1698. *
  1699. * Check whether the character is part of Katakana UCS Block
  1700. *
  1701. * Returns 1 if true 0 otherwise
  1702. */
  1703. int
  1704. xmlUCSIsKatakana(int code) {
  1705. return(((code >= 0x30A0) && (code <= 0x30FF)));
  1706. }
  1707. /**
  1708. * xmlUCSIsKatakanaPhoneticExtensions:
  1709. * @code: UCS code point
  1710. *
  1711. * Check whether the character is part of KatakanaPhoneticExtensions UCS Block
  1712. *
  1713. * Returns 1 if true 0 otherwise
  1714. */
  1715. int
  1716. xmlUCSIsKatakanaPhoneticExtensions(int code) {
  1717. return(((code >= 0x31F0) && (code <= 0x31FF)));
  1718. }
  1719. /**
  1720. * xmlUCSIsKhmer:
  1721. * @code: UCS code point
  1722. *
  1723. * Check whether the character is part of Khmer UCS Block
  1724. *
  1725. * Returns 1 if true 0 otherwise
  1726. */
  1727. int
  1728. xmlUCSIsKhmer(int code) {
  1729. return(((code >= 0x1780) && (code <= 0x17FF)));
  1730. }
  1731. /**
  1732. * xmlUCSIsKhmerSymbols:
  1733. * @code: UCS code point
  1734. *
  1735. * Check whether the character is part of KhmerSymbols UCS Block
  1736. *
  1737. * Returns 1 if true 0 otherwise
  1738. */
  1739. int
  1740. xmlUCSIsKhmerSymbols(int code) {
  1741. return(((code >= 0x19E0) && (code <= 0x19FF)));
  1742. }
  1743. /**
  1744. * xmlUCSIsLao:
  1745. * @code: UCS code point
  1746. *
  1747. * Check whether the character is part of Lao UCS Block
  1748. *
  1749. * Returns 1 if true 0 otherwise
  1750. */
  1751. int
  1752. xmlUCSIsLao(int code) {
  1753. return(((code >= 0x0E80) && (code <= 0x0EFF)));
  1754. }
  1755. /**
  1756. * xmlUCSIsLatin1Supplement:
  1757. * @code: UCS code point
  1758. *
  1759. * Check whether the character is part of Latin-1Supplement UCS Block
  1760. *
  1761. * Returns 1 if true 0 otherwise
  1762. */
  1763. int
  1764. xmlUCSIsLatin1Supplement(int code) {
  1765. return(((code >= 0x0080) && (code <= 0x00FF)));
  1766. }
  1767. /**
  1768. * xmlUCSIsLatinExtendedA:
  1769. * @code: UCS code point
  1770. *
  1771. * Check whether the character is part of LatinExtended-A UCS Block
  1772. *
  1773. * Returns 1 if true 0 otherwise
  1774. */
  1775. int
  1776. xmlUCSIsLatinExtendedA(int code) {
  1777. return(((code >= 0x0100) && (code <= 0x017F)));
  1778. }
  1779. /**
  1780. * xmlUCSIsLatinExtendedB:
  1781. * @code: UCS code point
  1782. *
  1783. * Check whether the character is part of LatinExtended-B UCS Block
  1784. *
  1785. * Returns 1 if true 0 otherwise
  1786. */
  1787. int
  1788. xmlUCSIsLatinExtendedB(int code) {
  1789. return(((code >= 0x0180) && (code <= 0x024F)));
  1790. }
  1791. /**
  1792. * xmlUCSIsLatinExtendedAdditional:
  1793. * @code: UCS code point
  1794. *
  1795. * Check whether the character is part of LatinExtendedAdditional UCS Block
  1796. *
  1797. * Returns 1 if true 0 otherwise
  1798. */
  1799. int
  1800. xmlUCSIsLatinExtendedAdditional(int code) {
  1801. return(((code >= 0x1E00) && (code <= 0x1EFF)));
  1802. }
  1803. /**
  1804. * xmlUCSIsLetterlikeSymbols:
  1805. * @code: UCS code point
  1806. *
  1807. * Check whether the character is part of LetterlikeSymbols UCS Block
  1808. *
  1809. * Returns 1 if true 0 otherwise
  1810. */
  1811. int
  1812. xmlUCSIsLetterlikeSymbols(int code) {
  1813. return(((code >= 0x2100) && (code <= 0x214F)));
  1814. }
  1815. /**
  1816. * xmlUCSIsLimbu:
  1817. * @code: UCS code point
  1818. *
  1819. * Check whether the character is part of Limbu UCS Block
  1820. *
  1821. * Returns 1 if true 0 otherwise
  1822. */
  1823. int
  1824. xmlUCSIsLimbu(int code) {
  1825. return(((code >= 0x1900) && (code <= 0x194F)));
  1826. }
  1827. /**
  1828. * xmlUCSIsLinearBIdeograms:
  1829. * @code: UCS code point
  1830. *
  1831. * Check whether the character is part of LinearBIdeograms UCS Block
  1832. *
  1833. * Returns 1 if true 0 otherwise
  1834. */
  1835. int
  1836. xmlUCSIsLinearBIdeograms(int code) {
  1837. return(((code >= 0x10080) && (code <= 0x100FF)));
  1838. }
  1839. /**
  1840. * xmlUCSIsLinearBSyllabary:
  1841. * @code: UCS code point
  1842. *
  1843. * Check whether the character is part of LinearBSyllabary UCS Block
  1844. *
  1845. * Returns 1 if true 0 otherwise
  1846. */
  1847. int
  1848. xmlUCSIsLinearBSyllabary(int code) {
  1849. return(((code >= 0x10000) && (code <= 0x1007F)));
  1850. }
  1851. /**
  1852. * xmlUCSIsLowSurrogates:
  1853. * @code: UCS code point
  1854. *
  1855. * Check whether the character is part of LowSurrogates UCS Block
  1856. *
  1857. * Returns 1 if true 0 otherwise
  1858. */
  1859. int
  1860. xmlUCSIsLowSurrogates(int code) {
  1861. return(((code >= 0xDC00) && (code <= 0xDFFF)));
  1862. }
  1863. /**
  1864. * xmlUCSIsMalayalam:
  1865. * @code: UCS code point
  1866. *
  1867. * Check whether the character is part of Malayalam UCS Block
  1868. *
  1869. * Returns 1 if true 0 otherwise
  1870. */
  1871. int
  1872. xmlUCSIsMalayalam(int code) {
  1873. return(((code >= 0x0D00) && (code <= 0x0D7F)));
  1874. }
  1875. /**
  1876. * xmlUCSIsMathematicalAlphanumericSymbols:
  1877. * @code: UCS code point
  1878. *
  1879. * Check whether the character is part of MathematicalAlphanumericSymbols UCS Block
  1880. *
  1881. * Returns 1 if true 0 otherwise
  1882. */
  1883. int
  1884. xmlUCSIsMathematicalAlphanumericSymbols(int code) {
  1885. return(((code >= 0x1D400) && (code <= 0x1D7FF)));
  1886. }
  1887. /**
  1888. * xmlUCSIsMathematicalOperators:
  1889. * @code: UCS code point
  1890. *
  1891. * Check whether the character is part of MathematicalOperators UCS Block
  1892. *
  1893. * Returns 1 if true 0 otherwise
  1894. */
  1895. int
  1896. xmlUCSIsMathematicalOperators(int code) {
  1897. return(((code >= 0x2200) && (code <= 0x22FF)));
  1898. }
  1899. /**
  1900. * xmlUCSIsMiscellaneousMathematicalSymbolsA:
  1901. * @code: UCS code point
  1902. *
  1903. * Check whether the character is part of MiscellaneousMathematicalSymbols-A UCS Block
  1904. *
  1905. * Returns 1 if true 0 otherwise
  1906. */
  1907. int
  1908. xmlUCSIsMiscellaneousMathematicalSymbolsA(int code) {
  1909. return(((code >= 0x27C0) && (code <= 0x27EF)));
  1910. }
  1911. /**
  1912. * xmlUCSIsMiscellaneousMathematicalSymbolsB:
  1913. * @code: UCS code point
  1914. *
  1915. * Check whether the character is part of MiscellaneousMathematicalSymbols-B UCS Block
  1916. *
  1917. * Returns 1 if true 0 otherwise
  1918. */
  1919. int
  1920. xmlUCSIsMiscellaneousMathematicalSymbolsB(int code) {
  1921. return(((code >= 0x2980) && (code <= 0x29FF)));
  1922. }
  1923. /**
  1924. * xmlUCSIsMiscellaneousSymbols:
  1925. * @code: UCS code point
  1926. *
  1927. * Check whether the character is part of MiscellaneousSymbols UCS Block
  1928. *
  1929. * Returns 1 if true 0 otherwise
  1930. */
  1931. int
  1932. xmlUCSIsMiscellaneousSymbols(int code) {
  1933. return(((code >= 0x2600) && (code <= 0x26FF)));
  1934. }
  1935. /**
  1936. * xmlUCSIsMiscellaneousSymbolsandArrows:
  1937. * @code: UCS code point
  1938. *
  1939. * Check whether the character is part of MiscellaneousSymbolsandArrows UCS Block
  1940. *
  1941. * Returns 1 if true 0 otherwise
  1942. */
  1943. int
  1944. xmlUCSIsMiscellaneousSymbolsandArrows(int code) {
  1945. return(((code >= 0x2B00) && (code <= 0x2BFF)));
  1946. }
  1947. /**
  1948. * xmlUCSIsMiscellaneousTechnical:
  1949. * @code: UCS code point
  1950. *
  1951. * Check whether the character is part of MiscellaneousTechnical UCS Block
  1952. *
  1953. * Returns 1 if true 0 otherwise
  1954. */
  1955. int
  1956. xmlUCSIsMiscellaneousTechnical(int code) {
  1957. return(((code >= 0x2300) && (code <= 0x23FF)));
  1958. }
  1959. /**
  1960. * xmlUCSIsMongolian:
  1961. * @code: UCS code point
  1962. *
  1963. * Check whether the character is part of Mongolian UCS Block
  1964. *
  1965. * Returns 1 if true 0 otherwise
  1966. */
  1967. int
  1968. xmlUCSIsMongolian(int code) {
  1969. return(((code >= 0x1800) && (code <= 0x18AF)));
  1970. }
  1971. /**
  1972. * xmlUCSIsMusicalSymbols:
  1973. * @code: UCS code point
  1974. *
  1975. * Check whether the character is part of MusicalSymbols UCS Block
  1976. *
  1977. * Returns 1 if true 0 otherwise
  1978. */
  1979. int
  1980. xmlUCSIsMusicalSymbols(int code) {
  1981. return(((code >= 0x1D100) && (code <= 0x1D1FF)));
  1982. }
  1983. /**
  1984. * xmlUCSIsMyanmar:
  1985. * @code: UCS code point
  1986. *
  1987. * Check whether the character is part of Myanmar UCS Block
  1988. *
  1989. * Returns 1 if true 0 otherwise
  1990. */
  1991. int
  1992. xmlUCSIsMyanmar(int code) {
  1993. return(((code >= 0x1000) && (code <= 0x109F)));
  1994. }
  1995. /**
  1996. * xmlUCSIsNumberForms:
  1997. * @code: UCS code point
  1998. *
  1999. * Check whether the character is part of NumberForms UCS Block
  2000. *
  2001. * Returns 1 if true 0 otherwise
  2002. */
  2003. int
  2004. xmlUCSIsNumberForms(int code) {
  2005. return(((code >= 0x2150) && (code <= 0x218F)));
  2006. }
  2007. /**
  2008. * xmlUCSIsOgham:
  2009. * @code: UCS code point
  2010. *
  2011. * Check whether the character is part of Ogham UCS Block
  2012. *
  2013. * Returns 1 if true 0 otherwise
  2014. */
  2015. int
  2016. xmlUCSIsOgham(int code) {
  2017. return(((code >= 0x1680) && (code <= 0x169F)));
  2018. }
  2019. /**
  2020. * xmlUCSIsOldItalic:
  2021. * @code: UCS code point
  2022. *
  2023. * Check whether the character is part of OldItalic UCS Block
  2024. *
  2025. * Returns 1 if true 0 otherwise
  2026. */
  2027. int
  2028. xmlUCSIsOldItalic(int code) {
  2029. return(((code >= 0x10300) && (code <= 0x1032F)));
  2030. }
  2031. /**
  2032. * xmlUCSIsOpticalCharacterRecognition:
  2033. * @code: UCS code point
  2034. *
  2035. * Check whether the character is part of OpticalCharacterRecognition UCS Block
  2036. *
  2037. * Returns 1 if true 0 otherwise
  2038. */
  2039. int
  2040. xmlUCSIsOpticalCharacterRecognition(int code) {
  2041. return(((code >= 0x2440) && (code <= 0x245F)));
  2042. }
  2043. /**
  2044. * xmlUCSIsOriya:
  2045. * @code: UCS code point
  2046. *
  2047. * Check whether the character is part of Oriya UCS Block
  2048. *
  2049. * Returns 1 if true 0 otherwise
  2050. */
  2051. int
  2052. xmlUCSIsOriya(int code) {
  2053. return(((code >= 0x0B00) && (code <= 0x0B7F)));
  2054. }
  2055. /**
  2056. * xmlUCSIsOsmanya:
  2057. * @code: UCS code point
  2058. *
  2059. * Check whether the character is part of Osmanya UCS Block
  2060. *
  2061. * Returns 1 if true 0 otherwise
  2062. */
  2063. int
  2064. xmlUCSIsOsmanya(int code) {
  2065. return(((code >= 0x10480) && (code <= 0x104AF)));
  2066. }
  2067. /**
  2068. * xmlUCSIsPhoneticExtensions:
  2069. * @code: UCS code point
  2070. *
  2071. * Check whether the character is part of PhoneticExtensions UCS Block
  2072. *
  2073. * Returns 1 if true 0 otherwise
  2074. */
  2075. int
  2076. xmlUCSIsPhoneticExtensions(int code) {
  2077. return(((code >= 0x1D00) && (code <= 0x1D7F)));
  2078. }
  2079. /**
  2080. * xmlUCSIsPrivateUse:
  2081. * @code: UCS code point
  2082. *
  2083. * Check whether the character is part of PrivateUse UCS Block
  2084. *
  2085. * Returns 1 if true 0 otherwise
  2086. */
  2087. int
  2088. xmlUCSIsPrivateUse(int code) {
  2089. return(((code >= 0xE000) && (code <= 0xF8FF)) ||
  2090. ((code >= 0xF0000) && (code <= 0xFFFFF)) ||
  2091. ((code >= 0x100000) && (code <= 0x10FFFF)));
  2092. }
  2093. /**
  2094. * xmlUCSIsPrivateUseArea:
  2095. * @code: UCS code point
  2096. *
  2097. * Check whether the character is part of PrivateUseArea UCS Block
  2098. *
  2099. * Returns 1 if true 0 otherwise
  2100. */
  2101. int
  2102. xmlUCSIsPrivateUseArea(int code) {
  2103. return(((code >= 0xE000) && (code <= 0xF8FF)));
  2104. }
  2105. /**
  2106. * xmlUCSIsRunic:
  2107. * @code: UCS code point
  2108. *
  2109. * Check whether the character is part of Runic UCS Block
  2110. *
  2111. * Returns 1 if true 0 otherwise
  2112. */
  2113. int
  2114. xmlUCSIsRunic(int code) {
  2115. return(((code >= 0x16A0) && (code <= 0x16FF)));
  2116. }
  2117. /**
  2118. * xmlUCSIsShavian:
  2119. * @code: UCS code point
  2120. *
  2121. * Check whether the character is part of Shavian UCS Block
  2122. *
  2123. * Returns 1 if true 0 otherwise
  2124. */
  2125. int
  2126. xmlUCSIsShavian(int code) {
  2127. return(((code >= 0x10450) && (code <= 0x1047F)));
  2128. }
  2129. /**
  2130. * xmlUCSIsSinhala:
  2131. * @code: UCS code point
  2132. *
  2133. * Check whether the character is part of Sinhala UCS Block
  2134. *
  2135. * Returns 1 if true 0 otherwise
  2136. */
  2137. int
  2138. xmlUCSIsSinhala(int code) {
  2139. return(((code >= 0x0D80) && (code <= 0x0DFF)));
  2140. }
  2141. /**
  2142. * xmlUCSIsSmallFormVariants:
  2143. * @code: UCS code point
  2144. *
  2145. * Check whether the character is part of SmallFormVariants UCS Block
  2146. *
  2147. * Returns 1 if true 0 otherwise
  2148. */
  2149. int
  2150. xmlUCSIsSmallFormVariants(int code) {
  2151. return(((code >= 0xFE50) && (code <= 0xFE6F)));
  2152. }
  2153. /**
  2154. * xmlUCSIsSpacingModifierLetters:
  2155. * @code: UCS code point
  2156. *
  2157. * Check whether the character is part of SpacingModifierLetters UCS Block
  2158. *
  2159. * Returns 1 if true 0 otherwise
  2160. */
  2161. int
  2162. xmlUCSIsSpacingModifierLetters(int code) {
  2163. return(((code >= 0x02B0) && (code <= 0x02FF)));
  2164. }
  2165. /**
  2166. * xmlUCSIsSpecials:
  2167. * @code: UCS code point
  2168. *
  2169. * Check whether the character is part of Specials UCS Block
  2170. *
  2171. * Returns 1 if true 0 otherwise
  2172. */
  2173. int
  2174. xmlUCSIsSpecials(int code) {
  2175. return(((code >= 0xFFF0) && (code <= 0xFFFF)));
  2176. }
  2177. /**
  2178. * xmlUCSIsSuperscriptsandSubscripts:
  2179. * @code: UCS code point
  2180. *
  2181. * Check whether the character is part of SuperscriptsandSubscripts UCS Block
  2182. *
  2183. * Returns 1 if true 0 otherwise
  2184. */
  2185. int
  2186. xmlUCSIsSuperscriptsandSubscripts(int code) {
  2187. return(((code >= 0x2070) && (code <= 0x209F)));
  2188. }
  2189. /**
  2190. * xmlUCSIsSupplementalArrowsA:
  2191. * @code: UCS code point
  2192. *
  2193. * Check whether the character is part of SupplementalArrows-A UCS Block
  2194. *
  2195. * Returns 1 if true 0 otherwise
  2196. */
  2197. int
  2198. xmlUCSIsSupplementalArrowsA(int code) {
  2199. return(((code >= 0x27F0) && (code <= 0x27FF)));
  2200. }
  2201. /**
  2202. * xmlUCSIsSupplementalArrowsB:
  2203. * @code: UCS code point
  2204. *
  2205. * Check whether the character is part of SupplementalArrows-B UCS Block
  2206. *
  2207. * Returns 1 if true 0 otherwise
  2208. */
  2209. int
  2210. xmlUCSIsSupplementalArrowsB(int code) {
  2211. return(((code >= 0x2900) && (code <= 0x297F)));
  2212. }
  2213. /**
  2214. * xmlUCSIsSupplementalMathematicalOperators:
  2215. * @code: UCS code point
  2216. *
  2217. * Check whether the character is part of SupplementalMathematicalOperators UCS Block
  2218. *
  2219. * Returns 1 if true 0 otherwise
  2220. */
  2221. int
  2222. xmlUCSIsSupplementalMathematicalOperators(int code) {
  2223. return(((code >= 0x2A00) && (code <= 0x2AFF)));
  2224. }
  2225. /**
  2226. * xmlUCSIsSupplementaryPrivateUseAreaA:
  2227. * @code: UCS code point
  2228. *
  2229. * Check whether the character is part of SupplementaryPrivateUseArea-A UCS Block
  2230. *
  2231. * Returns 1 if true 0 otherwise
  2232. */
  2233. int
  2234. xmlUCSIsSupplementaryPrivateUseAreaA(int code) {
  2235. return(((code >= 0xF0000) && (code <= 0xFFFFF)));
  2236. }
  2237. /**
  2238. * xmlUCSIsSupplementaryPrivateUseAreaB:
  2239. * @code: UCS code point
  2240. *
  2241. * Check whether the character is part of SupplementaryPrivateUseArea-B UCS Block
  2242. *
  2243. * Returns 1 if true 0 otherwise
  2244. */
  2245. int
  2246. xmlUCSIsSupplementaryPrivateUseAreaB(int code) {
  2247. return(((code >= 0x100000) && (code <= 0x10FFFF)));
  2248. }
  2249. /**
  2250. * xmlUCSIsSyriac:
  2251. * @code: UCS code point
  2252. *
  2253. * Check whether the character is part of Syriac UCS Block
  2254. *
  2255. * Returns 1 if true 0 otherwise
  2256. */
  2257. int
  2258. xmlUCSIsSyriac(int code) {
  2259. return(((code >= 0x0700) && (code <= 0x074F)));
  2260. }
  2261. /**
  2262. * xmlUCSIsTagalog:
  2263. * @code: UCS code point
  2264. *
  2265. * Check whether the character is part of Tagalog UCS Block
  2266. *
  2267. * Returns 1 if true 0 otherwise
  2268. */
  2269. int
  2270. xmlUCSIsTagalog(int code) {
  2271. return(((code >= 0x1700) && (code <= 0x171F)));
  2272. }
  2273. /**
  2274. * xmlUCSIsTagbanwa:
  2275. * @code: UCS code point
  2276. *
  2277. * Check whether the character is part of Tagbanwa UCS Block
  2278. *
  2279. * Returns 1 if true 0 otherwise
  2280. */
  2281. int
  2282. xmlUCSIsTagbanwa(int code) {
  2283. return(((code >= 0x1760) && (code <= 0x177F)));
  2284. }
  2285. /**
  2286. * xmlUCSIsTags:
  2287. * @code: UCS code point
  2288. *
  2289. * Check whether the character is part of Tags UCS Block
  2290. *
  2291. * Returns 1 if true 0 otherwise
  2292. */
  2293. int
  2294. xmlUCSIsTags(int code) {
  2295. return(((code >= 0xE0000) && (code <= 0xE007F)));
  2296. }
  2297. /**
  2298. * xmlUCSIsTaiLe:
  2299. * @code: UCS code point
  2300. *
  2301. * Check whether the character is part of TaiLe UCS Block
  2302. *
  2303. * Returns 1 if true 0 otherwise
  2304. */
  2305. int
  2306. xmlUCSIsTaiLe(int code) {
  2307. return(((code >= 0x1950) && (code <= 0x197F)));
  2308. }
  2309. /**
  2310. * xmlUCSIsTaiXuanJingSymbols:
  2311. * @code: UCS code point
  2312. *
  2313. * Check whether the character is part of TaiXuanJingSymbols UCS Block
  2314. *
  2315. * Returns 1 if true 0 otherwise
  2316. */
  2317. int
  2318. xmlUCSIsTaiXuanJingSymbols(int code) {
  2319. return(((code >= 0x1D300) && (code <= 0x1D35F)));
  2320. }
  2321. /**
  2322. * xmlUCSIsTamil:
  2323. * @code: UCS code point
  2324. *
  2325. * Check whether the character is part of Tamil UCS Block
  2326. *
  2327. * Returns 1 if true 0 otherwise
  2328. */
  2329. int
  2330. xmlUCSIsTamil(int code) {
  2331. return(((code >= 0x0B80) && (code <= 0x0BFF)));
  2332. }
  2333. /**
  2334. * xmlUCSIsTelugu:
  2335. * @code: UCS code point
  2336. *
  2337. * Check whether the character is part of Telugu UCS Block
  2338. *
  2339. * Returns 1 if true 0 otherwise
  2340. */
  2341. int
  2342. xmlUCSIsTelugu(int code) {
  2343. return(((code >= 0x0C00) && (code <= 0x0C7F)));
  2344. }
  2345. /**
  2346. * xmlUCSIsThaana:
  2347. * @code: UCS code point
  2348. *
  2349. * Check whether the character is part of Thaana UCS Block
  2350. *
  2351. * Returns 1 if true 0 otherwise
  2352. */
  2353. int
  2354. xmlUCSIsThaana(int code) {
  2355. return(((code >= 0x0780) && (code <= 0x07BF)));
  2356. }
  2357. /**
  2358. * xmlUCSIsThai:
  2359. * @code: UCS code point
  2360. *
  2361. * Check whether the character is part of Thai UCS Block
  2362. *
  2363. * Returns 1 if true 0 otherwise
  2364. */
  2365. int
  2366. xmlUCSIsThai(int code) {
  2367. return(((code >= 0x0E00) && (code <= 0x0E7F)));
  2368. }
  2369. /**
  2370. * xmlUCSIsTibetan:
  2371. * @code: UCS code point
  2372. *
  2373. * Check whether the character is part of Tibetan UCS Block
  2374. *
  2375. * Returns 1 if true 0 otherwise
  2376. */
  2377. int
  2378. xmlUCSIsTibetan(int code) {
  2379. return(((code >= 0x0F00) && (code <= 0x0FFF)));
  2380. }
  2381. /**
  2382. * xmlUCSIsUgaritic:
  2383. * @code: UCS code point
  2384. *
  2385. * Check whether the character is part of Ugaritic UCS Block
  2386. *
  2387. * Returns 1 if true 0 otherwise
  2388. */
  2389. int
  2390. xmlUCSIsUgaritic(int code) {
  2391. return(((code >= 0x10380) && (code <= 0x1039F)));
  2392. }
  2393. /**
  2394. * xmlUCSIsUnifiedCanadianAboriginalSyllabics:
  2395. * @code: UCS code point
  2396. *
  2397. * Check whether the character is part of UnifiedCanadianAboriginalSyllabics UCS Block
  2398. *
  2399. * Returns 1 if true 0 otherwise
  2400. */
  2401. int
  2402. xmlUCSIsUnifiedCanadianAboriginalSyllabics(int code) {
  2403. return(((code >= 0x1400) && (code <= 0x167F)));
  2404. }
  2405. /**
  2406. * xmlUCSIsVariationSelectors:
  2407. * @code: UCS code point
  2408. *
  2409. * Check whether the character is part of VariationSelectors UCS Block
  2410. *
  2411. * Returns 1 if true 0 otherwise
  2412. */
  2413. int
  2414. xmlUCSIsVariationSelectors(int code) {
  2415. return(((code >= 0xFE00) && (code <= 0xFE0F)));
  2416. }
  2417. /**
  2418. * xmlUCSIsVariationSelectorsSupplement:
  2419. * @code: UCS code point
  2420. *
  2421. * Check whether the character is part of VariationSelectorsSupplement UCS Block
  2422. *
  2423. * Returns 1 if true 0 otherwise
  2424. */
  2425. int
  2426. xmlUCSIsVariationSelectorsSupplement(int code) {
  2427. return(((code >= 0xE0100) && (code <= 0xE01EF)));
  2428. }
  2429. /**
  2430. * xmlUCSIsYiRadicals:
  2431. * @code: UCS code point
  2432. *
  2433. * Check whether the character is part of YiRadicals UCS Block
  2434. *
  2435. * Returns 1 if true 0 otherwise
  2436. */
  2437. int
  2438. xmlUCSIsYiRadicals(int code) {
  2439. return(((code >= 0xA490) && (code <= 0xA4CF)));
  2440. }
  2441. /**
  2442. * xmlUCSIsYiSyllables:
  2443. * @code: UCS code point
  2444. *
  2445. * Check whether the character is part of YiSyllables UCS Block
  2446. *
  2447. * Returns 1 if true 0 otherwise
  2448. */
  2449. int
  2450. xmlUCSIsYiSyllables(int code) {
  2451. return(((code >= 0xA000) && (code <= 0xA48F)));
  2452. }
  2453. /**
  2454. * xmlUCSIsYijingHexagramSymbols:
  2455. * @code: UCS code point
  2456. *
  2457. * Check whether the character is part of YijingHexagramSymbols UCS Block
  2458. *
  2459. * Returns 1 if true 0 otherwise
  2460. */
  2461. int
  2462. xmlUCSIsYijingHexagramSymbols(int code) {
  2463. return(((code >= 0x4DC0) && (code <= 0x4DFF)));
  2464. }
  2465. /**
  2466. * xmlUCSIsBlock:
  2467. * @code: UCS code point
  2468. * @block: UCS block name
  2469. *
  2470. * Check whether the character is part of the UCS Block
  2471. *
  2472. * Returns 1 if true, 0 if false and -1 on unknown block
  2473. */
  2474. int
  2475. xmlUCSIsBlock(int code, const char *block) {
  2476. xmlIntFunc *func;
  2477. func = xmlUnicodeLookup(&xmlUnicodeBlockTbl, block);
  2478. if (func == NULL)
  2479. return (-1);
  2480. return (func(code));
  2481. }
  2482. /**
  2483. * xmlUCSIsCatC:
  2484. * @code: UCS code point
  2485. *
  2486. * Check whether the character is part of C UCS Category
  2487. *
  2488. * Returns 1 if true 0 otherwise
  2489. */
  2490. int
  2491. xmlUCSIsCatC(int code) {
  2492. return(xmlCharInRange((unsigned int)code, &xmlCG));
  2493. }
  2494. /**
  2495. * xmlUCSIsCatCc:
  2496. * @code: UCS code point
  2497. *
  2498. * Check whether the character is part of Cc UCS Category
  2499. *
  2500. * Returns 1 if true 0 otherwise
  2501. */
  2502. int
  2503. xmlUCSIsCatCc(int code) {
  2504. return(((code >= 0x0) && (code <= 0x1f)) ||
  2505. ((code >= 0x7f) && (code <= 0x9f)));
  2506. }
  2507. /**
  2508. * xmlUCSIsCatCf:
  2509. * @code: UCS code point
  2510. *
  2511. * Check whether the character is part of Cf UCS Category
  2512. *
  2513. * Returns 1 if true 0 otherwise
  2514. */
  2515. int
  2516. xmlUCSIsCatCf(int code) {
  2517. return(xmlCharInRange((unsigned int)code, &xmlCfG));
  2518. }
  2519. /**
  2520. * xmlUCSIsCatCo:
  2521. * @code: UCS code point
  2522. *
  2523. * Check whether the character is part of Co UCS Category
  2524. *
  2525. * Returns 1 if true 0 otherwise
  2526. */
  2527. int
  2528. xmlUCSIsCatCo(int code) {
  2529. return((code == 0xe000) ||
  2530. (code == 0xf8ff) ||
  2531. (code == 0xf0000) ||
  2532. (code == 0xffffd) ||
  2533. (code == 0x100000) ||
  2534. (code == 0x10fffd));
  2535. }
  2536. /**
  2537. * xmlUCSIsCatCs:
  2538. * @code: UCS code point
  2539. *
  2540. * Check whether the character is part of Cs UCS Category
  2541. *
  2542. * Returns 1 if true 0 otherwise
  2543. */
  2544. int
  2545. xmlUCSIsCatCs(int code) {
  2546. return((code == 0xd800) ||
  2547. ((code >= 0xdb7f) && (code <= 0xdb80)) ||
  2548. ((code >= 0xdbff) && (code <= 0xdc00)) ||
  2549. (code == 0xdfff));
  2550. }
  2551. /**
  2552. * xmlUCSIsCatL:
  2553. * @code: UCS code point
  2554. *
  2555. * Check whether the character is part of L UCS Category
  2556. *
  2557. * Returns 1 if true 0 otherwise
  2558. */
  2559. int
  2560. xmlUCSIsCatL(int code) {
  2561. return(xmlCharInRange((unsigned int)code, &xmlLG));
  2562. }
  2563. /**
  2564. * xmlUCSIsCatLl:
  2565. * @code: UCS code point
  2566. *
  2567. * Check whether the character is part of Ll UCS Category
  2568. *
  2569. * Returns 1 if true 0 otherwise
  2570. */
  2571. int
  2572. xmlUCSIsCatLl(int code) {
  2573. return(xmlCharInRange((unsigned int)code, &xmlLlG));
  2574. }
  2575. /**
  2576. * xmlUCSIsCatLm:
  2577. * @code: UCS code point
  2578. *
  2579. * Check whether the character is part of Lm UCS Category
  2580. *
  2581. * Returns 1 if true 0 otherwise
  2582. */
  2583. int
  2584. xmlUCSIsCatLm(int code) {
  2585. return(xmlCharInRange((unsigned int)code, &xmlLmG));
  2586. }
  2587. /**
  2588. * xmlUCSIsCatLo:
  2589. * @code: UCS code point
  2590. *
  2591. * Check whether the character is part of Lo UCS Category
  2592. *
  2593. * Returns 1 if true 0 otherwise
  2594. */
  2595. int
  2596. xmlUCSIsCatLo(int code) {
  2597. return(xmlCharInRange((unsigned int)code, &xmlLoG));
  2598. }
  2599. /**
  2600. * xmlUCSIsCatLt:
  2601. * @code: UCS code point
  2602. *
  2603. * Check whether the character is part of Lt UCS Category
  2604. *
  2605. * Returns 1 if true 0 otherwise
  2606. */
  2607. int
  2608. xmlUCSIsCatLt(int code) {
  2609. return(xmlCharInRange((unsigned int)code, &xmlLtG));
  2610. }
  2611. /**
  2612. * xmlUCSIsCatLu:
  2613. * @code: UCS code point
  2614. *
  2615. * Check whether the character is part of Lu UCS Category
  2616. *
  2617. * Returns 1 if true 0 otherwise
  2618. */
  2619. int
  2620. xmlUCSIsCatLu(int code) {
  2621. return(xmlCharInRange((unsigned int)code, &xmlLuG));
  2622. }
  2623. /**
  2624. * xmlUCSIsCatM:
  2625. * @code: UCS code point
  2626. *
  2627. * Check whether the character is part of M UCS Category
  2628. *
  2629. * Returns 1 if true 0 otherwise
  2630. */
  2631. int
  2632. xmlUCSIsCatM(int code) {
  2633. return(xmlCharInRange((unsigned int)code, &xmlMG));
  2634. }
  2635. /**
  2636. * xmlUCSIsCatMc:
  2637. * @code: UCS code point
  2638. *
  2639. * Check whether the character is part of Mc UCS Category
  2640. *
  2641. * Returns 1 if true 0 otherwise
  2642. */
  2643. int
  2644. xmlUCSIsCatMc(int code) {
  2645. return(xmlCharInRange((unsigned int)code, &xmlMcG));
  2646. }
  2647. /**
  2648. * xmlUCSIsCatMe:
  2649. * @code: UCS code point
  2650. *
  2651. * Check whether the character is part of Me UCS Category
  2652. *
  2653. * Returns 1 if true 0 otherwise
  2654. */
  2655. int
  2656. xmlUCSIsCatMe(int code) {
  2657. return(((code >= 0x488) && (code <= 0x489)) ||
  2658. (code == 0x6de) ||
  2659. ((code >= 0x20dd) && (code <= 0x20e0)) ||
  2660. ((code >= 0x20e2) && (code <= 0x20e4)));
  2661. }
  2662. /**
  2663. * xmlUCSIsCatMn:
  2664. * @code: UCS code point
  2665. *
  2666. * Check whether the character is part of Mn UCS Category
  2667. *
  2668. * Returns 1 if true 0 otherwise
  2669. */
  2670. int
  2671. xmlUCSIsCatMn(int code) {
  2672. return(xmlCharInRange((unsigned int)code, &xmlMnG));
  2673. }
  2674. /**
  2675. * xmlUCSIsCatN:
  2676. * @code: UCS code point
  2677. *
  2678. * Check whether the character is part of N UCS Category
  2679. *
  2680. * Returns 1 if true 0 otherwise
  2681. */
  2682. int
  2683. xmlUCSIsCatN(int code) {
  2684. return(xmlCharInRange((unsigned int)code, &xmlNG));
  2685. }
  2686. /**
  2687. * xmlUCSIsCatNd:
  2688. * @code: UCS code point
  2689. *
  2690. * Check whether the character is part of Nd UCS Category
  2691. *
  2692. * Returns 1 if true 0 otherwise
  2693. */
  2694. int
  2695. xmlUCSIsCatNd(int code) {
  2696. return(xmlCharInRange((unsigned int)code, &xmlNdG));
  2697. }
  2698. /**
  2699. * xmlUCSIsCatNl:
  2700. * @code: UCS code point
  2701. *
  2702. * Check whether the character is part of Nl UCS Category
  2703. *
  2704. * Returns 1 if true 0 otherwise
  2705. */
  2706. int
  2707. xmlUCSIsCatNl(int code) {
  2708. return(((code >= 0x16ee) && (code <= 0x16f0)) ||
  2709. ((code >= 0x2160) && (code <= 0x2183)) ||
  2710. (code == 0x3007) ||
  2711. ((code >= 0x3021) && (code <= 0x3029)) ||
  2712. ((code >= 0x3038) && (code <= 0x303a)) ||
  2713. (code == 0x1034a));
  2714. }
  2715. /**
  2716. * xmlUCSIsCatNo:
  2717. * @code: UCS code point
  2718. *
  2719. * Check whether the character is part of No UCS Category
  2720. *
  2721. * Returns 1 if true 0 otherwise
  2722. */
  2723. int
  2724. xmlUCSIsCatNo(int code) {
  2725. return(xmlCharInRange((unsigned int)code, &xmlNoG));
  2726. }
  2727. /**
  2728. * xmlUCSIsCatP:
  2729. * @code: UCS code point
  2730. *
  2731. * Check whether the character is part of P UCS Category
  2732. *
  2733. * Returns 1 if true 0 otherwise
  2734. */
  2735. int
  2736. xmlUCSIsCatP(int code) {
  2737. return(xmlCharInRange((unsigned int)code, &xmlPG));
  2738. }
  2739. /**
  2740. * xmlUCSIsCatPc:
  2741. * @code: UCS code point
  2742. *
  2743. * Check whether the character is part of Pc UCS Category
  2744. *
  2745. * Returns 1 if true 0 otherwise
  2746. */
  2747. int
  2748. xmlUCSIsCatPc(int code) {
  2749. return((code == 0x5f) ||
  2750. ((code >= 0x203f) && (code <= 0x2040)) ||
  2751. (code == 0x2054) ||
  2752. (code == 0x30fb) ||
  2753. ((code >= 0xfe33) && (code <= 0xfe34)) ||
  2754. ((code >= 0xfe4d) && (code <= 0xfe4f)) ||
  2755. (code == 0xff3f) ||
  2756. (code == 0xff65));
  2757. }
  2758. /**
  2759. * xmlUCSIsCatPd:
  2760. * @code: UCS code point
  2761. *
  2762. * Check whether the character is part of Pd UCS Category
  2763. *
  2764. * Returns 1 if true 0 otherwise
  2765. */
  2766. int
  2767. xmlUCSIsCatPd(int code) {
  2768. return(xmlCharInRange((unsigned int)code, &xmlPdG));
  2769. }
  2770. /**
  2771. * xmlUCSIsCatPe:
  2772. * @code: UCS code point
  2773. *
  2774. * Check whether the character is part of Pe UCS Category
  2775. *
  2776. * Returns 1 if true 0 otherwise
  2777. */
  2778. int
  2779. xmlUCSIsCatPe(int code) {
  2780. return(xmlCharInRange((unsigned int)code, &xmlPeG));
  2781. }
  2782. /**
  2783. * xmlUCSIsCatPf:
  2784. * @code: UCS code point
  2785. *
  2786. * Check whether the character is part of Pf UCS Category
  2787. *
  2788. * Returns 1 if true 0 otherwise
  2789. */
  2790. int
  2791. xmlUCSIsCatPf(int code) {
  2792. return((code == 0xbb) ||
  2793. (code == 0x2019) ||
  2794. (code == 0x201d) ||
  2795. (code == 0x203a));
  2796. }
  2797. /**
  2798. * xmlUCSIsCatPi:
  2799. * @code: UCS code point
  2800. *
  2801. * Check whether the character is part of Pi UCS Category
  2802. *
  2803. * Returns 1 if true 0 otherwise
  2804. */
  2805. int
  2806. xmlUCSIsCatPi(int code) {
  2807. return((code == 0xab) ||
  2808. (code == 0x2018) ||
  2809. ((code >= 0x201b) && (code <= 0x201c)) ||
  2810. (code == 0x201f) ||
  2811. (code == 0x2039));
  2812. }
  2813. /**
  2814. * xmlUCSIsCatPo:
  2815. * @code: UCS code point
  2816. *
  2817. * Check whether the character is part of Po UCS Category
  2818. *
  2819. * Returns 1 if true 0 otherwise
  2820. */
  2821. int
  2822. xmlUCSIsCatPo(int code) {
  2823. return(xmlCharInRange((unsigned int)code, &xmlPoG));
  2824. }
  2825. /**
  2826. * xmlUCSIsCatPs:
  2827. * @code: UCS code point
  2828. *
  2829. * Check whether the character is part of Ps UCS Category
  2830. *
  2831. * Returns 1 if true 0 otherwise
  2832. */
  2833. int
  2834. xmlUCSIsCatPs(int code) {
  2835. return(xmlCharInRange((unsigned int)code, &xmlPsG));
  2836. }
  2837. /**
  2838. * xmlUCSIsCatS:
  2839. * @code: UCS code point
  2840. *
  2841. * Check whether the character is part of S UCS Category
  2842. *
  2843. * Returns 1 if true 0 otherwise
  2844. */
  2845. int
  2846. xmlUCSIsCatS(int code) {
  2847. return(xmlCharInRange((unsigned int)code, &xmlSG));
  2848. }
  2849. /**
  2850. * xmlUCSIsCatSc:
  2851. * @code: UCS code point
  2852. *
  2853. * Check whether the character is part of Sc UCS Category
  2854. *
  2855. * Returns 1 if true 0 otherwise
  2856. */
  2857. int
  2858. xmlUCSIsCatSc(int code) {
  2859. return(xmlCharInRange((unsigned int)code, &xmlScG));
  2860. }
  2861. /**
  2862. * xmlUCSIsCatSk:
  2863. * @code: UCS code point
  2864. *
  2865. * Check whether the character is part of Sk UCS Category
  2866. *
  2867. * Returns 1 if true 0 otherwise
  2868. */
  2869. int
  2870. xmlUCSIsCatSk(int code) {
  2871. return(xmlCharInRange((unsigned int)code, &xmlSkG));
  2872. }
  2873. /**
  2874. * xmlUCSIsCatSm:
  2875. * @code: UCS code point
  2876. *
  2877. * Check whether the character is part of Sm UCS Category
  2878. *
  2879. * Returns 1 if true 0 otherwise
  2880. */
  2881. int
  2882. xmlUCSIsCatSm(int code) {
  2883. return(xmlCharInRange((unsigned int)code, &xmlSmG));
  2884. }
  2885. /**
  2886. * xmlUCSIsCatSo:
  2887. * @code: UCS code point
  2888. *
  2889. * Check whether the character is part of So UCS Category
  2890. *
  2891. * Returns 1 if true 0 otherwise
  2892. */
  2893. int
  2894. xmlUCSIsCatSo(int code) {
  2895. return(xmlCharInRange((unsigned int)code, &xmlSoG));
  2896. }
  2897. /**
  2898. * xmlUCSIsCatZ:
  2899. * @code: UCS code point
  2900. *
  2901. * Check whether the character is part of Z UCS Category
  2902. *
  2903. * Returns 1 if true 0 otherwise
  2904. */
  2905. int
  2906. xmlUCSIsCatZ(int code) {
  2907. return(xmlCharInRange((unsigned int)code, &xmlZG));
  2908. }
  2909. /**
  2910. * xmlUCSIsCatZl:
  2911. * @code: UCS code point
  2912. *
  2913. * Check whether the character is part of Zl UCS Category
  2914. *
  2915. * Returns 1 if true 0 otherwise
  2916. */
  2917. int
  2918. xmlUCSIsCatZl(int code) {
  2919. return((code == 0x2028));
  2920. }
  2921. /**
  2922. * xmlUCSIsCatZp:
  2923. * @code: UCS code point
  2924. *
  2925. * Check whether the character is part of Zp UCS Category
  2926. *
  2927. * Returns 1 if true 0 otherwise
  2928. */
  2929. int
  2930. xmlUCSIsCatZp(int code) {
  2931. return((code == 0x2029));
  2932. }
  2933. /**
  2934. * xmlUCSIsCatZs:
  2935. * @code: UCS code point
  2936. *
  2937. * Check whether the character is part of Zs UCS Category
  2938. *
  2939. * Returns 1 if true 0 otherwise
  2940. */
  2941. int
  2942. xmlUCSIsCatZs(int code) {
  2943. return((code == 0x20) ||
  2944. (code == 0xa0) ||
  2945. (code == 0x1680) ||
  2946. (code == 0x180e) ||
  2947. ((code >= 0x2000) && (code <= 0x200a)) ||
  2948. (code == 0x202f) ||
  2949. (code == 0x205f) ||
  2950. (code == 0x3000));
  2951. }
  2952. /**
  2953. * xmlUCSIsCat:
  2954. * @code: UCS code point
  2955. * @cat: UCS Category name
  2956. *
  2957. * Check whether the character is part of the UCS Category
  2958. *
  2959. * Returns 1 if true, 0 if false and -1 on unknown category
  2960. */
  2961. int
  2962. xmlUCSIsCat(int code, const char *cat) {
  2963. xmlIntFunc *func;
  2964. func = xmlUnicodeLookup(&xmlUnicodeCatTbl, cat);
  2965. if (func == NULL)
  2966. return (-1);
  2967. return (func(code));
  2968. }
  2969. #endif /* LIBXML_UNICODE_ENABLED */