xmlunicode.c 100 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179
  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(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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 xmlChRangeGroup xmlZG = {9,0,xmlZS,NULL};
  897. static xmlUnicodeNameTable xmlUnicodeBlockTbl = {xmlUnicodeBlocks, 128};
  898. static 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(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. #define bottom_xmlunicode
  2970. #include "elfgcchack.h"
  2971. #endif /* LIBXML_UNICODE_ENABLED */