123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <link rel="dns-prefetch" href="https://assets-cdn.github.com">
- <link rel="dns-prefetch" href="https://avatars0.githubusercontent.com">
- <link rel="dns-prefetch" href="https://avatars1.githubusercontent.com">
- <link rel="dns-prefetch" href="https://avatars2.githubusercontent.com">
- <link rel="dns-prefetch" href="https://avatars3.githubusercontent.com">
- <link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
- <link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
- <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://assets-cdn.github.com/assets/frameworks-592c4aa40e940d1b0607a3cf272916ff.css" />
- <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://assets-cdn.github.com/assets/github-fdbbae74da4136fd4258a92eb943be60.css" />
-
-
-
-
- <meta name="viewport" content="width=device-width">
-
- <title>gen-unicode-ctype/gen-unicode-ctype.c at master · mike-fabian/gen-unicode-ctype</title>
- <meta name="description" content="GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.">
- <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
- <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
- <meta property="fb:app_id" content="1401488693436528">
-
- <meta property="og:image" content="https://avatars1.githubusercontent.com/u/2330175?s=400&v=4" /><meta property="og:site_name" content="GitHub" /><meta property="og:type" content="object" /><meta property="og:title" content="mike-fabian/gen-unicode-ctype" /><meta property="og:url" content="https://github.com/mike-fabian/gen-unicode-ctype" /><meta property="og:description" content="Contribute to gen-unicode-ctype development by creating an account on GitHub." />
- <link rel="assets" href="https://assets-cdn.github.com/">
- <link rel="web-socket" href="wss://live.github.com/_sockets/VjI6MjUzNzYyNjY3OjBkMTcwZjQxZmVkNDZlMTFmYjQ3MWI3MjM3MmFjN2M1YTI3NzEzZWQ4MTU1MjQ5ODA1MTc4OTE0OTRjMTZhNzU=--67f60fd409add2d6a535fa19bbe87d901d0d2846">
- <meta name="pjax-timeout" content="1000">
- <link rel="sudo-modal" href="/sessions/sudo_modal">
- <meta name="request-id" content="CD5A:0759:75FE12:E53D5C:5AD72F18" data-pjax-transient>
-
- <meta name="selected-link" value="repo_source" data-pjax-transient>
- <meta name="google-site-verification" content="KT5gs8h0wvaagLKAVWq8bbeNwnZZK1r1XQysX3xurLU">
- <meta name="google-site-verification" content="ZzhVyEFwb7w3e0-uOTltm8Jsck2F5StVihD0exw2fsA">
- <meta name="google-site-verification" content="GXs5KoUUkNCoaAZn7wPN-t01Pywp9M3sEjnt_3_ZWPc">
- <meta name="google-analytics" content="UA-3769691-2">
- <meta name="octolytics-host" content="collector.githubapp.com" /><meta name="octolytics-app-id" content="github" /><meta name="octolytics-event-url" content="https://collector.githubapp.com/github-external/browser_event" /><meta name="octolytics-dimension-request_id" content="CD5A:0759:75FE12:E53D5C:5AD72F18" /><meta name="octolytics-dimension-region_edge" content="iad" /><meta name="octolytics-dimension-region_render" content="iad" /><meta name="octolytics-actor-id" content="3752591" /><meta name="octolytics-actor-login" content="PaulBoersma" /><meta name="octolytics-actor-hash" content="e13000c0d6fd76e620e937fb740d13380e3ea52d2cd26690bb1340a79e2bd2f7" />
- <meta name="analytics-location" content="/<user-name>/<repo-name>/blob/show" data-pjax-transient="true" />
- <meta class="js-ga-set" name="dimension1" content="Logged In">
-
- <meta name="hostname" content="github.com">
- <meta name="user-login" content="PaulBoersma">
- <meta name="expected-hostname" content="github.com">
- <meta name="js-proxy-site-detection-payload" content="NTQ0M2VhY2Q0NTBjMDJjOGU5NzI0MGU3ZWNiNGI2NmRmZDAwMTJlNmYxOTU3ZjAzZGNkNjgzNmRlNDM1NDNkYXx7InJlbW90ZV9hZGRyZXNzIjoiMTQ1LjEwOS4xMjEuMTc2IiwicmVxdWVzdF9pZCI6IkNENUE6MDc1OTo3NUZFMTI6RTUzRDVDOjVBRDcyRjE4IiwidGltZXN0YW1wIjoxNTI0MDUxNzQwLCJob3N0IjoiZ2l0aHViLmNvbSJ9">
- <meta name="enabled-features" content="UNIVERSE_BANNER,FREE_TRIALS,MARKETPLACE_INSIGHTS,MARKETPLACE_SELF_SERVE,MARKETPLACE_INSIGHTS_CONVERSION_PERCENTAGES">
- <meta name="html-safe-nonce" content="18073ae25209c1d1f5f7e471ed10892bc9dd0c73">
- <meta http-equiv="x-pjax-version" content="2d80109c0c2b8cc548d68aa995e3239a">
-
- <link href="https://github.com/mike-fabian/gen-unicode-ctype/commits/master.atom" rel="alternate" title="Recent Commits to gen-unicode-ctype:master" type="application/atom+xml">
- <meta name="description" content="Contribute to gen-unicode-ctype development by creating an account on GitHub.">
- <meta name="go-import" content="github.com/mike-fabian/gen-unicode-ctype git https://github.com/mike-fabian/gen-unicode-ctype.git">
- <meta name="octolytics-dimension-user_id" content="2330175" /><meta name="octolytics-dimension-user_login" content="mike-fabian" /><meta name="octolytics-dimension-repository_id" content="26581669" /><meta name="octolytics-dimension-repository_nwo" content="mike-fabian/gen-unicode-ctype" /><meta name="octolytics-dimension-repository_public" content="true" /><meta name="octolytics-dimension-repository_is_fork" content="false" /><meta name="octolytics-dimension-repository_network_root_id" content="26581669" /><meta name="octolytics-dimension-repository_network_root_nwo" content="mike-fabian/gen-unicode-ctype" /><meta name="octolytics-dimension-repository_explore_github_marketplace_ci_cta_shown" content="false" />
- <link rel="canonical" href="https://github.com/mike-fabian/gen-unicode-ctype/blob/master/gen-unicode-ctype.c" data-pjax-transient>
- <meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">
- <meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">
- <link rel="mask-icon" href="https://assets-cdn.github.com/pinned-octocat.svg" color="#000000">
- <link rel="icon" type="image/x-icon" class="js-site-favicon" href="https://assets-cdn.github.com/favicon.ico">
- <meta name="theme-color" content="#1e2327">
- <link rel="manifest" href="/manifest.json" crossOrigin="use-credentials">
- </head>
- <body class="logged-in env-production page-blob">
-
- <div class="position-relative js-header-wrapper ">
- <a href="#start-of-content" tabindex="1" class="p-3 bg-blue text-white show-on-focus js-skip-to-content">Skip to content</a>
- <div id="js-pjax-loader-bar" class="pjax-loader-bar"><div class="progress"></div></div>
-
-
-
-
- <header class="Header f5" role="banner">
- <div class="d-flex flex-justify-between px-3 container-lg">
- <div class="d-flex flex-justify-between ">
- <div class="">
- <a class="header-logo-invertocat" href="https://github.com/" data-hotkey="g d" aria-label="Homepage" data-ga-click="Header, go to dashboard, icon:logo">
- <svg height="32" class="octicon octicon-mark-github" viewBox="0 0 16 16" version="1.1" width="32" aria-hidden="true"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>
- </a>
- </div>
- </div>
- <div class="HeaderMenu d-flex flex-justify-between flex-auto">
- <div class="d-flex">
- <div class="">
- <div class="header-search scoped-search site-scoped-search js-site-search" role="search">
- <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-site-search-form" data-scoped-search-url="/mike-fabian/gen-unicode-ctype/search" data-unscoped-search-url="/search" action="/mike-fabian/gen-unicode-ctype/search" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="✓" />
- <label class="form-control header-search-wrapper js-chromeless-input-container">
- <a class="header-search-scope no-underline" href="/mike-fabian/gen-unicode-ctype/blob/master/gen-unicode-ctype.c">This repository</a>
- <input type="text"
- class="form-control header-search-input js-site-search-focus js-site-search-field is-clearable"
- data-hotkey="s,/"
- name="q"
- value=""
- placeholder="Search"
- aria-label="Search this repository"
- data-unscoped-placeholder="Search GitHub"
- data-scoped-placeholder="Search"
- autocapitalize="off"
- >
- <input type="hidden" class="js-site-search-type-field" name="type" >
- </label>
- </form></div>
- </div>
- <ul class="d-flex pl-2 flex-items-center text-bold list-style-none" role="navigation">
- <li>
- <a class="js-selected-navigation-item HeaderNavlink px-2" data-hotkey="g p" data-ga-click="Header, click, Nav menu - item:pulls context:user" aria-label="Pull requests you created" data-selected-links="/pulls /pulls/assigned /pulls/mentioned /pulls" href="/pulls">
- Pull requests
- </a> </li>
- <li>
- <a class="js-selected-navigation-item HeaderNavlink px-2" data-hotkey="g i" data-ga-click="Header, click, Nav menu - item:issues context:user" aria-label="Issues you created" data-selected-links="/issues /issues/assigned /issues/mentioned /issues" href="/issues">
- Issues
- </a> </li>
- <li>
- <a class="js-selected-navigation-item HeaderNavlink px-2" data-ga-click="Header, click, Nav menu - item:marketplace context:user" data-selected-links=" /marketplace" href="/marketplace">
- Marketplace
- </a> </li>
- <li>
- <a class="js-selected-navigation-item HeaderNavlink px-2" data-ga-click="Header, click, Nav menu - item:explore" data-selected-links="/explore /trending /trending/developers /integrations /integrations/feature/code /integrations/feature/collaborate /integrations/feature/ship showcases showcases_search showcases_landing /explore" href="/explore">
- Explore
- </a> </li>
- </ul>
- </div>
- <div class="d-flex">
-
- <ul class="user-nav d-flex flex-items-center list-style-none" id="user-links">
- <li class="dropdown js-menu-container">
- <span class="d-inline-block px-2">
-
- <a aria-label="You have no unread notifications" class="notification-indicator tooltipped tooltipped-s js-socket-channel js-notification-indicator" data-hotkey="g n" data-ga-click="Header, go to notifications, icon:read" data-channel="notification-changed:3752591" href="/notifications">
- <span class="mail-status "></span>
- <svg class="octicon octicon-bell" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M14 12v1H0v-1l.73-.58c.77-.77.81-2.55 1.19-4.42C2.69 3.23 6 2 6 2c0-.55.45-1 1-1s1 .45 1 1c0 0 3.39 1.23 4.16 5 .38 1.88.42 3.66 1.19 4.42l.66.58H14zm-7 4c1.11 0 2-.89 2-2H5c0 1.11.89 2 2 2z"/></svg>
- </a>
- </span>
- </li>
- <li class="dropdown js-menu-container">
- <details class="dropdown-details details-reset js-dropdown-details d-flex px-2 flex-items-center">
- <summary class="HeaderNavlink"
- aria-label="Create new…"
- data-ga-click="Header, create new, icon:add">
- <svg class="octicon octicon-plus float-left mr-1 mt-1" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5z"/></svg>
- <span class="dropdown-caret mt-1"></span>
- </summary>
- <ul class="dropdown-menu dropdown-menu-sw">
-
- <a class="dropdown-item" href="/new" data-ga-click="Header, create new repository">
- New repository
- </a>
- <a class="dropdown-item" href="/new/import" data-ga-click="Header, import a repository">
- Import repository
- </a>
- <a class="dropdown-item" href="https://gist.github.com/" data-ga-click="Header, create new gist">
- New gist
- </a>
- <a class="dropdown-item" href="/organizations/new" data-ga-click="Header, create new organization">
- New organization
- </a>
- <div class="dropdown-divider"></div>
- <div class="dropdown-header">
- <span title="mike-fabian/gen-unicode-ctype">This repository</span>
- </div>
- <a class="dropdown-item" href="/mike-fabian/gen-unicode-ctype/issues/new" data-ga-click="Header, create new issue">
- New issue
- </a>
- </ul>
- </details>
- </li>
- <li class="dropdown js-menu-container">
- <details class="dropdown-details details-reset js-dropdown-details d-flex pl-2 flex-items-center">
- <summary class="HeaderNavlink name mt-1"
- aria-label="View profile and more"
- data-ga-click="Header, show menu, icon:avatar">
- <img alt="@PaulBoersma" class="avatar float-left mr-1" src="https://avatars1.githubusercontent.com/u/3752591?s=40&v=4" height="20" width="20">
- <span class="dropdown-caret"></span>
- </summary>
- <ul class="dropdown-menu dropdown-menu-sw">
- <li class="dropdown-header header-nav-current-user css-truncate">
- Signed in as <strong class="css-truncate-target">PaulBoersma</strong>
- </li>
- <li class="dropdown-divider"></li>
- <li><a class="dropdown-item" href="/PaulBoersma" data-ga-click="Header, go to profile, text:your profile">
- Your profile
- </a></li>
- <li><a class="dropdown-item" href="/PaulBoersma?tab=stars" data-ga-click="Header, go to starred repos, text:your stars">
- Your stars
- </a></li>
- <li><a class="dropdown-item" href="https://gist.github.com/" data-ga-click="Header, your gists, text:your gists">Your gists</a></li>
- <li class="dropdown-divider"></li>
- <li><a class="dropdown-item" href="https://help.github.com" data-ga-click="Header, go to help, text:help">
- Help
- </a></li>
- <li><a class="dropdown-item" href="/settings/profile" data-ga-click="Header, go to settings, icon:settings">
- Settings
- </a></li>
- <li><!-- '"` --><!-- </textarea></xmp> --></option></form><form class="logout-form" action="/logout" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="authenticity_token" value="uNo9bDPeXo36OAM44Rl9gIRhELvQjSjRBzs3kStxNpid4PD6gaW0DtoX7YdAhtkG5EHR5hfShY0fciybV9/Oxw==" />
- <button type="submit" class="dropdown-item dropdown-signout" data-ga-click="Header, sign out, icon:logout">
- Sign out
- </button>
- </form></li>
- </ul>
- </details>
- </li>
- </ul>
- <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="sr-only right-0" action="/logout" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="authenticity_token" value="LzWU0MzdxB+TbQOKrEbIvnvHkZR57z6xsZ2GxvtbJUwKD1lGfqYunLNC7TUN2Ww4G+dQyb6wk+2p1J3Mh/XdEw==" />
- <button type="submit" class="dropdown-item dropdown-signout" data-ga-click="Header, sign out, icon:logout">
- Sign out
- </button>
- </form> </div>
- </div>
- </div>
- </header>
-
- </div>
- <div id="start-of-content" class="show-on-focus"></div>
- <div id="js-flash-container">
- </div>
- <div role="main" class="application-main ">
- <div itemscope itemtype="http://schema.org/SoftwareSourceCode" class="">
- <div id="js-repo-pjax-container" data-pjax-container >
-
- <div class="pagehead repohead instapaper_ignore readability-menu experiment-repo-nav ">
- <div class="repohead-details-container clearfix container">
- <ul class="pagehead-actions">
- <li>
- <!-- '"` --><!-- </textarea></xmp> --></option></form><form data-autosubmit="true" data-remote="true" class="js-social-container" action="/notifications/subscribe" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="authenticity_token" value="WpPcx+N59JzBK5gZ9Y05uG8Ji4AljEQYqvd6KmPE+d7PRZUz6qn/Y7dd4l2QLsxzYBJEuLkSBBUsUoJflD8xWw==" /> <input type="hidden" name="repository_id" id="repository_id" value="26581669" class="form-control" />
- <div class="select-menu js-menu-container js-select-menu">
- <a href="/mike-fabian/gen-unicode-ctype/subscription"
- class="btn btn-sm btn-with-count select-menu-button js-menu-target"
- role="button"
- aria-haspopup="true"
- aria-expanded="false"
- aria-label="Toggle repository notifications menu"
- data-ga-click="Repository, click Watch settings, action:blob#show">
- <span class="js-select-button">
- <svg class="octicon octicon-eye" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"/></svg>
- Watch
- </span>
- </a>
- <a class="social-count js-social-count"
- href="/mike-fabian/gen-unicode-ctype/watchers"
- aria-label="1 user is watching this repository">
- 1
- </a>
- <div class="select-menu-modal-holder">
- <div class="select-menu-modal subscription-menu-modal js-menu-content">
- <div class="select-menu-header js-navigation-enable" tabindex="-1">
- <svg class="octicon octicon-x js-menu-close" role="img" aria-label="Close" viewBox="0 0 12 16" version="1.1" width="12" height="16"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"/></svg>
- <span class="select-menu-title">Notifications</span>
- </div>
- <div class="select-menu-list js-navigation-container" role="menu">
- <div class="select-menu-item js-navigation-item selected" role="menuitem" tabindex="0">
- <svg class="octicon octicon-check select-menu-item-icon" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
- <div class="select-menu-item-text">
- <input type="radio" name="do" id="do_included" value="included" checked="checked" />
- <span class="select-menu-item-heading">Not watching</span>
- <span class="description">Be notified when participating or @mentioned.</span>
- <span class="js-select-button-text hidden-select-button-text">
- <svg class="octicon octicon-eye" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"/></svg>
- Watch
- </span>
- </div>
- </div>
- <div class="select-menu-item js-navigation-item " role="menuitem" tabindex="0">
- <svg class="octicon octicon-check select-menu-item-icon" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
- <div class="select-menu-item-text">
- <input type="radio" name="do" id="do_subscribed" value="subscribed" />
- <span class="select-menu-item-heading">Watching</span>
- <span class="description">Be notified of all conversations.</span>
- <span class="js-select-button-text hidden-select-button-text">
- <svg class="octicon octicon-eye" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"/></svg>
- Unwatch
- </span>
- </div>
- </div>
- <div class="select-menu-item js-navigation-item " role="menuitem" tabindex="0">
- <svg class="octicon octicon-check select-menu-item-icon" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
- <div class="select-menu-item-text">
- <input type="radio" name="do" id="do_ignore" value="ignore" />
- <span class="select-menu-item-heading">Ignoring</span>
- <span class="description">Never be notified.</span>
- <span class="js-select-button-text hidden-select-button-text">
- <svg class="octicon octicon-mute" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8 2.81v10.38c0 .67-.81 1-1.28.53L3 10H1c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h2l3.72-3.72C7.19 1.81 8 2.14 8 2.81zm7.53 3.22l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06L11.44 8 9.47 9.97l1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06L13.56 8l1.97-1.97z"/></svg>
- Stop ignoring
- </span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </form>
- </li>
- <li>
-
- <div class="js-toggler-container js-social-container starring-container ">
- <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="starred js-social-form" action="/mike-fabian/gen-unicode-ctype/unstar" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="authenticity_token" value="YwJeY0QMuT136mr2WiZRZdhnudkU4Grx1fP6Hi1TvRyFomYJcya641WP3hrE/nr+jM2t7GHjV7gRifXRSoS7gQ==" />
- <input type="hidden" name="context" value="repository"></input>
- <button
- type="submit"
- class="btn btn-sm btn-with-count js-toggler-target"
- aria-label="Unstar this repository" title="Unstar mike-fabian/gen-unicode-ctype"
- data-ga-click="Repository, click unstar button, action:blob#show; text:Unstar">
- <svg class="octicon octicon-star" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74z"/></svg>
- Unstar
- </button>
- <a class="social-count js-social-count" href="/mike-fabian/gen-unicode-ctype/stargazers"
- aria-label="0 users starred this repository">
- 0
- </a>
- </form>
- <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="unstarred js-social-form" action="/mike-fabian/gen-unicode-ctype/star" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="authenticity_token" value="Hi33lA/kCnIh+ZWp9iQSsIzrJv5+Rt8G6q6SZZW9ioco61HbedmsOxMZqZU2UxmIh89E8Y+uhRW6lFu+6YQwNQ==" />
- <input type="hidden" name="context" value="repository"></input>
- <button
- type="submit"
- class="btn btn-sm btn-with-count js-toggler-target"
- aria-label="Star this repository" title="Star mike-fabian/gen-unicode-ctype"
- data-ga-click="Repository, click star button, action:blob#show; text:Star">
- <svg class="octicon octicon-star" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74z"/></svg>
- Star
- </button>
- <a class="social-count js-social-count" href="/mike-fabian/gen-unicode-ctype/stargazers"
- aria-label="0 users starred this repository">
- 0
- </a>
- </form> </div>
- </li>
- <li>
- <a href="#fork-destination-box" class="btn btn-sm btn-with-count"
- title="Fork your own copy of mike-fabian/gen-unicode-ctype to your account"
- aria-label="Fork your own copy of mike-fabian/gen-unicode-ctype to your account"
- rel="facebox"
- data-ga-click="Repository, show fork modal, action:blob#show; text:Fork">
- <svg class="octicon octicon-repo-forked" viewBox="0 0 10 16" version="1.1" width="10" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8 1a1.993 1.993 0 0 0-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 0 0 2 1a1.993 1.993 0 0 0-1 3.72V6.5l3 3v1.78A1.993 1.993 0 0 0 5 15a1.993 1.993 0 0 0 1-3.72V9.5l3-3V4.72A1.993 1.993 0 0 0 8 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"/></svg>
- Fork
- </a>
- <div id="fork-destination-box" style="display: none;">
- <h2 class="facebox-header" data-facebox-id="facebox-header">Where should we fork this repository?</h2>
- <include-fragment src=""
- class="js-fork-select-fragment fork-select-fragment"
- data-url="/mike-fabian/gen-unicode-ctype/fork?fragment=1">
- <img alt="Loading" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-128.gif" width="64" height="64" />
- </include-fragment>
- </div>
- <a href="/mike-fabian/gen-unicode-ctype/network" class="social-count"
- aria-label="0 users forked this repository">
- 0
- </a>
- </li>
- </ul>
- <h1 class="public ">
- <svg class="octicon octicon-repo" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9H3V8h1v1zm0-3H3v1h1V6zm0-2H3v1h1V4zm0-2H3v1h1V2zm8-1v12c0 .55-.45 1-1 1H6v2l-1.5-1.5L3 16v-2H1c-.55 0-1-.45-1-1V1c0-.55.45-1 1-1h10c.55 0 1 .45 1 1zm-1 10H1v2h2v-1h3v1h5v-2zm0-10H2v9h9V1z"/></svg>
- <span class="author" itemprop="author"><a class="url fn" rel="author" href="/mike-fabian">mike-fabian</a></span><!--
- --><span class="path-divider">/</span><!--
- --><strong itemprop="name"><a data-pjax="#js-repo-pjax-container" href="/mike-fabian/gen-unicode-ctype">gen-unicode-ctype</a></strong>
- </h1>
- </div>
-
- <nav class="reponav js-repo-nav js-sidenav-container-pjax container"
- itemscope
- itemtype="http://schema.org/BreadcrumbList"
- role="navigation"
- data-pjax="#js-repo-pjax-container">
- <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
- <a class="js-selected-navigation-item selected reponav-item" itemprop="url" data-hotkey="g c" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches repo_packages /mike-fabian/gen-unicode-ctype" href="/mike-fabian/gen-unicode-ctype">
- <svg class="octicon octicon-code" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M9.5 3L8 4.5 11.5 8 8 11.5 9.5 13 14 8 9.5 3zm-5 0L0 8l4.5 5L6 11.5 2.5 8 6 4.5 4.5 3z"/></svg>
- <span itemprop="name">Code</span>
- <meta itemprop="position" content="1">
- </a> </span>
- <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
- <a itemprop="url" data-hotkey="g i" class="js-selected-navigation-item reponav-item" data-selected-links="repo_issues repo_labels repo_milestones /mike-fabian/gen-unicode-ctype/issues" href="/mike-fabian/gen-unicode-ctype/issues">
- <svg class="octicon octicon-issue-opened" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"/></svg>
- <span itemprop="name">Issues</span>
- <span class="Counter">0</span>
- <meta itemprop="position" content="2">
- </a> </span>
- <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
- <a data-hotkey="g p" itemprop="url" class="js-selected-navigation-item reponav-item" data-selected-links="repo_pulls checks /mike-fabian/gen-unicode-ctype/pulls" href="/mike-fabian/gen-unicode-ctype/pulls">
- <svg class="octicon octicon-git-pull-request" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0L4 3l3 3V4h1c.27.02.48.11.69.31.21.2.3.42.31.69v6.28A1.993 1.993 0 0 0 10 15a1.993 1.993 0 0 0 1-3.72zm-1 2.92c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zM4 3c0-1.11-.89-2-2-2a1.993 1.993 0 0 0-1 3.72v6.56A1.993 1.993 0 0 0 2 15a1.993 1.993 0 0 0 1-3.72V4.72c.59-.34 1-.98 1-1.72zm-.8 10c0 .66-.55 1.2-1.2 1.2-.65 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"/></svg>
- <span itemprop="name">Pull requests</span>
- <span class="Counter">0</span>
- <meta itemprop="position" content="3">
- </a> </span>
- <a data-hotkey="g b" class="js-selected-navigation-item reponav-item" data-selected-links="repo_projects new_repo_project repo_project /mike-fabian/gen-unicode-ctype/projects" href="/mike-fabian/gen-unicode-ctype/projects">
- <svg class="octicon octicon-project" viewBox="0 0 15 16" version="1.1" width="15" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M10 12h3V2h-3v10zm-4-2h3V2H6v8zm-4 4h3V2H2v12zm-1 1h13V1H1v14zM14 0H1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1z"/></svg>
- Projects
- <span class="Counter" >0</span>
- </a>
- <a class="js-selected-navigation-item reponav-item" data-hotkey="g w" data-selected-links="repo_wiki /mike-fabian/gen-unicode-ctype/wiki" href="/mike-fabian/gen-unicode-ctype/wiki">
- <svg class="octicon octicon-book" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M3 5h4v1H3V5zm0 3h4V7H3v1zm0 2h4V9H3v1zm11-5h-4v1h4V5zm0 2h-4v1h4V7zm0 2h-4v1h4V9zm2-6v9c0 .55-.45 1-1 1H9.5l-1 1-1-1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h5.5l1 1 1-1H15c.55 0 1 .45 1 1zm-8 .5L7.5 3H2v9h6V3.5zm7-.5H9.5l-.5.5V12h6V3z"/></svg>
- Wiki
- </a>
- <a class="js-selected-navigation-item reponav-item" data-selected-links="repo_graphs repo_contributors dependency_graph pulse /mike-fabian/gen-unicode-ctype/pulse" href="/mike-fabian/gen-unicode-ctype/pulse">
- <svg class="octicon octicon-graph" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M16 14v1H0V0h1v14h15zM5 13H3V8h2v5zm4 0H7V3h2v10zm4 0h-2V6h2v7z"/></svg>
- Insights
- </a>
- </nav>
- </div>
- <div class="container new-discussion-timeline experiment-repo-nav ">
- <div class="repository-content ">
-
- <a class="d-none js-permalink-shortcut" data-hotkey="y" href="/mike-fabian/gen-unicode-ctype/blob/c6c57c3d2cdbd188b65dd1d40fb4cf0e6ff65e76/gen-unicode-ctype.c">Permalink</a>
- <!-- blob contrib key: blob_contributors:v21:203dbe6d11a042c559ce35cf72b654ea -->
- <div class="file-navigation">
-
- <div class="select-menu branch-select-menu js-menu-container js-select-menu float-left">
- <button class=" btn btn-sm select-menu-button js-menu-target css-truncate" data-hotkey="w"
-
- type="button" aria-label="Switch branches or tags" aria-expanded="false" aria-haspopup="true">
- <i>Branch:</i>
- <span class="js-select-button css-truncate-target">master</span>
- </button>
- <div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax>
- <div class="select-menu-modal">
- <div class="select-menu-header">
- <svg class="octicon octicon-x js-menu-close" role="img" aria-label="Close" viewBox="0 0 12 16" version="1.1" width="12" height="16"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"/></svg>
- <span class="select-menu-title">Switch branches/tags</span>
- </div>
- <div class="select-menu-filters">
- <div class="select-menu-text-filter">
- <input type="text" aria-label="Filter branches/tags" id="context-commitish-filter-field" class="form-control js-filterable-field js-navigation-enable" placeholder="Filter branches/tags">
- </div>
- <div class="select-menu-tabs">
- <ul>
- <li class="select-menu-tab">
- <a href="#" data-tab-filter="branches" data-filter-placeholder="Filter branches/tags" class="js-select-menu-tab" role="tab">Branches</a>
- </li>
- <li class="select-menu-tab">
- <a href="#" data-tab-filter="tags" data-filter-placeholder="Find a tag…" class="js-select-menu-tab" role="tab">Tags</a>
- </li>
- </ul>
- </div>
- </div>
- <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches" role="menu">
- <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
- <a class="select-menu-item js-navigation-item js-navigation-open selected"
- href="/mike-fabian/gen-unicode-ctype/blob/master/gen-unicode-ctype.c"
- data-name="master"
- data-skip-pjax="true"
- rel="nofollow">
- <svg class="octicon octicon-check select-menu-item-icon" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
- <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
- master
- </span>
- </a>
- </div>
- <div class="select-menu-no-results">Nothing to show</div>
- </div>
- <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
- <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
- </div>
- <div class="select-menu-no-results">Nothing to show</div>
- </div>
- </div>
- </div>
- </div>
- <div class="BtnGroup float-right">
- <a href="/mike-fabian/gen-unicode-ctype/find/master"
- class="js-pjax-capture-input btn btn-sm BtnGroup-item"
- data-pjax
- data-hotkey="t">
- Find file
- </a>
- <clipboard-copy
- for="blob-path"
- aria-label="Copy file path to clipboard"
- class="btn btn-sm BtnGroup-item tooltipped tooltipped-s"
- copied-label="Copied!">
- Copy path
- </clipboard-copy>
- </div>
- <div id="blob-path" class="breadcrumb">
- <span class="repo-root js-repo-root"><span class="js-path-segment"><a data-pjax="true" href="/mike-fabian/gen-unicode-ctype"><span>gen-unicode-ctype</span></a></span></span><span class="separator">/</span><strong class="final-path">gen-unicode-ctype.c</strong>
- </div>
- </div>
- <include-fragment src="/mike-fabian/gen-unicode-ctype/contributors/master/gen-unicode-ctype.c" class="commit-tease">
- <div>
- Fetching contributors…
- </div>
- <div class="commit-tease-contributors">
- <img alt="" class="loader-loading float-left" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32-EAF2F5.gif" width="16" height="16" />
- <span class="loader-error">Cannot retrieve contributors at this time</span>
- </div>
- </include-fragment>
- <div class="file">
- <div class="file-header">
- <div class="file-actions">
- <div class="BtnGroup">
- <a id="raw-url" class="btn btn-sm BtnGroup-item" href="/mike-fabian/gen-unicode-ctype/raw/master/gen-unicode-ctype.c">Raw</a>
- <a class="btn btn-sm js-update-url-with-hash BtnGroup-item" data-hotkey="b" href="/mike-fabian/gen-unicode-ctype/blame/master/gen-unicode-ctype.c">Blame</a>
- <a rel="nofollow" class="btn btn-sm BtnGroup-item" href="/mike-fabian/gen-unicode-ctype/commits/master/gen-unicode-ctype.c">History</a>
- </div>
- <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="inline-form js-update-url-with-hash" action="/mike-fabian/gen-unicode-ctype/edit/master/gen-unicode-ctype.c" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="authenticity_token" value="wT+V/K3bG8l0/+UVkwcnYon0szTqxGQjNTcHvk51GHjBOIxZm7LXSHkKumf/3abK09Ct4pvQrdqmBCZWGbLc0g==" />
- <button class="btn-octicon tooltipped tooltipped-nw" type="submit"
- aria-label="Fork this project and edit the file" data-hotkey="e" data-disable-with>
- <svg class="octicon octicon-pencil" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M0 12v3h3l8-8-3-3-8 8zm3 2H1v-2h1v1h1v1zm10.3-9.3L12 6 9 3l1.3-1.3a.996.996 0 0 1 1.41 0l1.59 1.59c.39.39.39 1.02 0 1.41z"/></svg>
- </button>
- </form>
- <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="inline-form" action="/mike-fabian/gen-unicode-ctype/delete/master/gen-unicode-ctype.c" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="authenticity_token" value="BdcVX2tCicFZEl2jIUDLPNsMYT5aIPJnk6W0YH5hJsdSVOmseTsdzP7a3C/X6OnzPhjKC1FRqE42kUCE9z5HGg==" />
- <button class="btn-octicon btn-octicon-danger tooltipped tooltipped-nw" type="submit"
- aria-label="Fork this project and delete the file" data-disable-with>
- <svg class="octicon octicon-trashcan" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M11 2H9c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1H2c-.55 0-1 .45-1 1v1c0 .55.45 1 1 1v9c0 .55.45 1 1 1h7c.55 0 1-.45 1-1V5c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 12H3V5h1v8h1V5h1v8h1V5h1v8h1V5h1v9zm1-10H2V3h9v1z"/></svg>
- </button>
- </form> </div>
- <div class="file-info">
- 785 lines (700 sloc)
- <span class="file-info-divider"></span>
- 23.7 KB
- </div>
- </div>
-
- <div itemprop="text" class="blob-wrapper data type-c">
- <table class="highlight tab-size js-file-line-container" data-tab-size="8">
- <tr>
- <td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
- <td id="LC1" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Generate a Unicode conforming LC_CTYPE category from a UnicodeData file.</span></td>
- </tr>
- <tr>
- <td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
- <td id="LC2" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> Copyright (C) 2000-2014 Free Software Foundation, Inc.</span></td>
- </tr>
- <tr>
- <td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
- <td id="LC3" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> This file is part of the GNU C Library.</span></td>
- </tr>
- <tr>
- <td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
- <td id="LC4" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> Contributed by Bruno Haible <haible@clisp.cons.org>, 2000.</span></td>
- </tr>
- <tr>
- <td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
- <td id="LC5" class="blob-code blob-code-inner js-file-line"><span class="pl-c"></span></td>
- </tr>
- <tr>
- <td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
- <td id="LC6" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> The GNU C Library is free software; you can redistribute it and/or</span></td>
- </tr>
- <tr>
- <td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
- <td id="LC7" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> modify it under the terms of the GNU Lesser General Public</span></td>
- </tr>
- <tr>
- <td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
- <td id="LC8" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> License as published by the Free Software Foundation; either</span></td>
- </tr>
- <tr>
- <td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
- <td id="LC9" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> version 2.1 of the License, or (at your option) any later version.</span></td>
- </tr>
- <tr>
- <td id="L10" class="blob-num js-line-number" data-line-number="10"></td>
- <td id="LC10" class="blob-code blob-code-inner js-file-line"><span class="pl-c"></span></td>
- </tr>
- <tr>
- <td id="L11" class="blob-num js-line-number" data-line-number="11"></td>
- <td id="LC11" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> The GNU C Library is distributed in the hope that it will be useful,</span></td>
- </tr>
- <tr>
- <td id="L12" class="blob-num js-line-number" data-line-number="12"></td>
- <td id="LC12" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span></td>
- </tr>
- <tr>
- <td id="L13" class="blob-num js-line-number" data-line-number="13"></td>
- <td id="LC13" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></td>
- </tr>
- <tr>
- <td id="L14" class="blob-num js-line-number" data-line-number="14"></td>
- <td id="LC14" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> Lesser General Public License for more details.</span></td>
- </tr>
- <tr>
- <td id="L15" class="blob-num js-line-number" data-line-number="15"></td>
- <td id="LC15" class="blob-code blob-code-inner js-file-line"><span class="pl-c"></span></td>
- </tr>
- <tr>
- <td id="L16" class="blob-num js-line-number" data-line-number="16"></td>
- <td id="LC16" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> You should have received a copy of the GNU Lesser General Public</span></td>
- </tr>
- <tr>
- <td id="L17" class="blob-num js-line-number" data-line-number="17"></td>
- <td id="LC17" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> License along with the GNU C Library; if not, see</span></td>
- </tr>
- <tr>
- <td id="L18" class="blob-num js-line-number" data-line-number="18"></td>
- <td id="LC18" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> <http://www.gnu.org/licenses/>. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L19" class="blob-num js-line-number" data-line-number="19"></td>
- <td id="LC19" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L20" class="blob-num js-line-number" data-line-number="20"></td>
- <td id="LC20" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Usage example:</span></td>
- </tr>
- <tr>
- <td id="L21" class="blob-num js-line-number" data-line-number="21"></td>
- <td id="LC21" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> $ gen-unicode /usr/local/share/Unidata/UnicodeData.txt 3.1</span></td>
- </tr>
- <tr>
- <td id="L22" class="blob-num js-line-number" data-line-number="22"></td>
- <td id="LC22" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L23" class="blob-num js-line-number" data-line-number="23"></td>
- <td id="LC23" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L24" class="blob-num js-line-number" data-line-number="24"></td>
- <td id="LC24" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>stdio.h<span class="pl-pds">></span></span></td>
- </tr>
- <tr>
- <td id="L25" class="blob-num js-line-number" data-line-number="25"></td>
- <td id="LC25" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>stdlib.h<span class="pl-pds">></span></span></td>
- </tr>
- <tr>
- <td id="L26" class="blob-num js-line-number" data-line-number="26"></td>
- <td id="LC26" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>stdbool.h<span class="pl-pds">></span></span></td>
- </tr>
- <tr>
- <td id="L27" class="blob-num js-line-number" data-line-number="27"></td>
- <td id="LC27" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>string.h<span class="pl-pds">></span></span></td>
- </tr>
- <tr>
- <td id="L28" class="blob-num js-line-number" data-line-number="28"></td>
- <td id="LC28" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>time.h<span class="pl-pds">></span></span></td>
- </tr>
- <tr>
- <td id="L29" class="blob-num js-line-number" data-line-number="29"></td>
- <td id="LC29" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L30" class="blob-num js-line-number" data-line-number="30"></td>
- <td id="LC30" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> This structure represents one line in the UnicodeData.txt file. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L31" class="blob-num js-line-number" data-line-number="31"></td>
- <td id="LC31" class="blob-code blob-code-inner js-file-line"><span class="pl-k">struct</span> unicode_attribute</td>
- </tr>
- <tr>
- <td id="L32" class="blob-num js-line-number" data-line-number="32"></td>
- <td id="LC32" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L33" class="blob-num js-line-number" data-line-number="33"></td>
- <td id="LC33" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *name; <span class="pl-c"><span class="pl-c">/*</span> Character name <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L34" class="blob-num js-line-number" data-line-number="34"></td>
- <td id="LC34" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *category; <span class="pl-c"><span class="pl-c">/*</span> General category <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L35" class="blob-num js-line-number" data-line-number="35"></td>
- <td id="LC35" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *combining; <span class="pl-c"><span class="pl-c">/*</span> Canonical combining classes <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L36" class="blob-num js-line-number" data-line-number="36"></td>
- <td id="LC36" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *bidi; <span class="pl-c"><span class="pl-c">/*</span> Bidirectional category <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L37" class="blob-num js-line-number" data-line-number="37"></td>
- <td id="LC37" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *decomposition; <span class="pl-c"><span class="pl-c">/*</span> Character decomposition mapping <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L38" class="blob-num js-line-number" data-line-number="38"></td>
- <td id="LC38" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *decdigit; <span class="pl-c"><span class="pl-c">/*</span> Decimal digit value <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L39" class="blob-num js-line-number" data-line-number="39"></td>
- <td id="LC39" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *digit; <span class="pl-c"><span class="pl-c">/*</span> Digit value <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L40" class="blob-num js-line-number" data-line-number="40"></td>
- <td id="LC40" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *numeric; <span class="pl-c"><span class="pl-c">/*</span> Numeric value <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L41" class="blob-num js-line-number" data-line-number="41"></td>
- <td id="LC41" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">int</span> mirrored; <span class="pl-c"><span class="pl-c">/*</span> mirrored <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L42" class="blob-num js-line-number" data-line-number="42"></td>
- <td id="LC42" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *oldname; <span class="pl-c"><span class="pl-c">/*</span> Old Unicode 1.0 name <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L43" class="blob-num js-line-number" data-line-number="43"></td>
- <td id="LC43" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *comment; <span class="pl-c"><span class="pl-c">/*</span> Comment <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L44" class="blob-num js-line-number" data-line-number="44"></td>
- <td id="LC44" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">unsigned</span> <span class="pl-k">int</span> upper; <span class="pl-c"><span class="pl-c">/*</span> Uppercase mapping <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L45" class="blob-num js-line-number" data-line-number="45"></td>
- <td id="LC45" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">unsigned</span> <span class="pl-k">int</span> lower; <span class="pl-c"><span class="pl-c">/*</span> Lowercase mapping <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L46" class="blob-num js-line-number" data-line-number="46"></td>
- <td id="LC46" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">unsigned</span> <span class="pl-k">int</span> title; <span class="pl-c"><span class="pl-c">/*</span> Titlecase mapping <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L47" class="blob-num js-line-number" data-line-number="47"></td>
- <td id="LC47" class="blob-code blob-code-inner js-file-line">};</td>
- </tr>
- <tr>
- <td id="L48" class="blob-num js-line-number" data-line-number="48"></td>
- <td id="LC48" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L49" class="blob-num js-line-number" data-line-number="49"></td>
- <td id="LC49" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Missing fields are represented with "" for strings, and NONE for</span></td>
- </tr>
- <tr>
- <td id="L50" class="blob-num js-line-number" data-line-number="50"></td>
- <td id="LC50" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> characters. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L51" class="blob-num js-line-number" data-line-number="51"></td>
- <td id="LC51" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">NONE</span> (~(<span class="pl-k">unsigned</span> <span class="pl-k">int</span>)<span class="pl-c1">0</span>)</td>
- </tr>
- <tr>
- <td id="L52" class="blob-num js-line-number" data-line-number="52"></td>
- <td id="LC52" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L53" class="blob-num js-line-number" data-line-number="53"></td>
- <td id="LC53" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> The entire contents of the UnicodeData.txt file. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L54" class="blob-num js-line-number" data-line-number="54"></td>
- <td id="LC54" class="blob-code blob-code-inner js-file-line"><span class="pl-k">struct</span> unicode_attribute unicode_attributes [<span class="pl-c1">0x110000</span>];</td>
- </tr>
- <tr>
- <td id="L55" class="blob-num js-line-number" data-line-number="55"></td>
- <td id="LC55" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L56" class="blob-num js-line-number" data-line-number="56"></td>
- <td id="LC56" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Stores in unicode_attributes[i] the values from the given fields. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L57" class="blob-num js-line-number" data-line-number="57"></td>
- <td id="LC57" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">void</span></td>
- </tr>
- <tr>
- <td id="L58" class="blob-num js-line-number" data-line-number="58"></td>
- <td id="LC58" class="blob-code blob-code-inner js-file-line"><span class="pl-en">fill_attribute</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> i,</td>
- </tr>
- <tr>
- <td id="L59" class="blob-num js-line-number" data-line-number="59"></td>
- <td id="LC59" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *field1, <span class="pl-k">const</span> <span class="pl-k">char</span> *field2,</td>
- </tr>
- <tr>
- <td id="L60" class="blob-num js-line-number" data-line-number="60"></td>
- <td id="LC60" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *field3, <span class="pl-k">const</span> <span class="pl-k">char</span> *field4,</td>
- </tr>
- <tr>
- <td id="L61" class="blob-num js-line-number" data-line-number="61"></td>
- <td id="LC61" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *field5, <span class="pl-k">const</span> <span class="pl-k">char</span> *field6,</td>
- </tr>
- <tr>
- <td id="L62" class="blob-num js-line-number" data-line-number="62"></td>
- <td id="LC62" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *field7, <span class="pl-k">const</span> <span class="pl-k">char</span> *field8,</td>
- </tr>
- <tr>
- <td id="L63" class="blob-num js-line-number" data-line-number="63"></td>
- <td id="LC63" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *field9, <span class="pl-k">const</span> <span class="pl-k">char</span> *field10,</td>
- </tr>
- <tr>
- <td id="L64" class="blob-num js-line-number" data-line-number="64"></td>
- <td id="LC64" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *field11, <span class="pl-k">const</span> <span class="pl-k">char</span> *field12,</td>
- </tr>
- <tr>
- <td id="L65" class="blob-num js-line-number" data-line-number="65"></td>
- <td id="LC65" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">char</span> *field13, <span class="pl-k">const</span> <span class="pl-k">char</span> *field14)</td>
- </tr>
- <tr>
- <td id="L66" class="blob-num js-line-number" data-line-number="66"></td>
- <td id="LC66" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L67" class="blob-num js-line-number" data-line-number="67"></td>
- <td id="LC67" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">struct</span> unicode_attribute * uni;</td>
- </tr>
- <tr>
- <td id="L68" class="blob-num js-line-number" data-line-number="68"></td>
- <td id="LC68" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L69" class="blob-num js-line-number" data-line-number="69"></td>
- <td id="LC69" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (i >= <span class="pl-c1">0x110000</span>)</td>
- </tr>
- <tr>
- <td id="L70" class="blob-num js-line-number" data-line-number="70"></td>
- <td id="LC70" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L71" class="blob-num js-line-number" data-line-number="71"></td>
- <td id="LC71" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span>index too large<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L72" class="blob-num js-line-number" data-line-number="72"></td>
- <td id="LC72" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">exit</span> (<span class="pl-c1">1</span>);</td>
- </tr>
- <tr>
- <td id="L73" class="blob-num js-line-number" data-line-number="73"></td>
- <td id="LC73" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L74" class="blob-num js-line-number" data-line-number="74"></td>
- <td id="LC74" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">strcmp</span> (field2, <span class="pl-s"><span class="pl-pds">"</span>Cs<span class="pl-pds">"</span></span>) == <span class="pl-c1">0</span>)</td>
- </tr>
- <tr>
- <td id="L75" class="blob-num js-line-number" data-line-number="75"></td>
- <td id="LC75" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Surrogates are UTF-16 artefacts, not real characters. Ignore them. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L76" class="blob-num js-line-number" data-line-number="76"></td>
- <td id="LC76" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span>;</td>
- </tr>
- <tr>
- <td id="L77" class="blob-num js-line-number" data-line-number="77"></td>
- <td id="LC77" class="blob-code blob-code-inner js-file-line"> uni = &unicode_attributes[i];</td>
- </tr>
- <tr>
- <td id="L78" class="blob-num js-line-number" data-line-number="78"></td>
- <td id="LC78" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Copy the strings. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L79" class="blob-num js-line-number" data-line-number="79"></td>
- <td id="LC79" class="blob-code blob-code-inner js-file-line"> uni->name = <span class="pl-c1">strdup</span> (field1);</td>
- </tr>
- <tr>
- <td id="L80" class="blob-num js-line-number" data-line-number="80"></td>
- <td id="LC80" class="blob-code blob-code-inner js-file-line"> uni->category = (field2[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> : <span class="pl-c1">strdup</span> (field2));</td>
- </tr>
- <tr>
- <td id="L81" class="blob-num js-line-number" data-line-number="81"></td>
- <td id="LC81" class="blob-code blob-code-inner js-file-line"> uni->combining = (field3[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> : <span class="pl-c1">strdup</span> (field3));</td>
- </tr>
- <tr>
- <td id="L82" class="blob-num js-line-number" data-line-number="82"></td>
- <td id="LC82" class="blob-code blob-code-inner js-file-line"> uni->bidi = (field4[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> : <span class="pl-c1">strdup</span> (field4));</td>
- </tr>
- <tr>
- <td id="L83" class="blob-num js-line-number" data-line-number="83"></td>
- <td id="LC83" class="blob-code blob-code-inner js-file-line"> uni->decomposition = (field5[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> : <span class="pl-c1">strdup</span> (field5));</td>
- </tr>
- <tr>
- <td id="L84" class="blob-num js-line-number" data-line-number="84"></td>
- <td id="LC84" class="blob-code blob-code-inner js-file-line"> uni->decdigit = (field6[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> : <span class="pl-c1">strdup</span> (field6));</td>
- </tr>
- <tr>
- <td id="L85" class="blob-num js-line-number" data-line-number="85"></td>
- <td id="LC85" class="blob-code blob-code-inner js-file-line"> uni->digit = (field7[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> : <span class="pl-c1">strdup</span> (field7));</td>
- </tr>
- <tr>
- <td id="L86" class="blob-num js-line-number" data-line-number="86"></td>
- <td id="LC86" class="blob-code blob-code-inner js-file-line"> uni->numeric = (field8[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> : <span class="pl-c1">strdup</span> (field8));</td>
- </tr>
- <tr>
- <td id="L87" class="blob-num js-line-number" data-line-number="87"></td>
- <td id="LC87" class="blob-code blob-code-inner js-file-line"> uni->mirrored = (field9[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span>Y<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L88" class="blob-num js-line-number" data-line-number="88"></td>
- <td id="LC88" class="blob-code blob-code-inner js-file-line"> uni->oldname = (field10[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> : <span class="pl-c1">strdup</span> (field10));</td>
- </tr>
- <tr>
- <td id="L89" class="blob-num js-line-number" data-line-number="89"></td>
- <td id="LC89" class="blob-code blob-code-inner js-file-line"> uni->comment = (field11[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> : <span class="pl-c1">strdup</span> (field11));</td>
- </tr>
- <tr>
- <td id="L90" class="blob-num js-line-number" data-line-number="90"></td>
- <td id="LC90" class="blob-code blob-code-inner js-file-line"> uni->upper = (field12[<span class="pl-c1">0</span>] ==<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? NONE : <span class="pl-c1">strtoul</span> (field12, <span class="pl-c1">NULL</span>, <span class="pl-c1">16</span>));</td>
- </tr>
- <tr>
- <td id="L91" class="blob-num js-line-number" data-line-number="91"></td>
- <td id="LC91" class="blob-code blob-code-inner js-file-line"> uni->lower = (field13[<span class="pl-c1">0</span>] ==<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? NONE : <span class="pl-c1">strtoul</span> (field13, <span class="pl-c1">NULL</span>, <span class="pl-c1">16</span>));</td>
- </tr>
- <tr>
- <td id="L92" class="blob-num js-line-number" data-line-number="92"></td>
- <td id="LC92" class="blob-code blob-code-inner js-file-line"> uni->title = (field14[<span class="pl-c1">0</span>] ==<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span> ? NONE : <span class="pl-c1">strtoul</span> (field14, <span class="pl-c1">NULL</span>, <span class="pl-c1">16</span>));</td>
- </tr>
- <tr>
- <td id="L93" class="blob-num js-line-number" data-line-number="93"></td>
- <td id="LC93" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L94" class="blob-num js-line-number" data-line-number="94"></td>
- <td id="LC94" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L95" class="blob-num js-line-number" data-line-number="95"></td>
- <td id="LC95" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Maximum length of a field in the UnicodeData.txt file. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L96" class="blob-num js-line-number" data-line-number="96"></td>
- <td id="LC96" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">FIELDLEN</span> <span class="pl-c1">120</span></td>
- </tr>
- <tr>
- <td id="L97" class="blob-num js-line-number" data-line-number="97"></td>
- <td id="LC97" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L98" class="blob-num js-line-number" data-line-number="98"></td>
- <td id="LC98" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Reads the next field from STREAM. The buffer BUFFER has size FIELDLEN.</span></td>
- </tr>
- <tr>
- <td id="L99" class="blob-num js-line-number" data-line-number="99"></td>
- <td id="LC99" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> Reads up to (but excluding) DELIM.</span></td>
- </tr>
- <tr>
- <td id="L100" class="blob-num js-line-number" data-line-number="100"></td>
- <td id="LC100" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> Returns 1 when a field was successfully read, otherwise 0. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L101" class="blob-num js-line-number" data-line-number="101"></td>
- <td id="LC101" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">int</span></td>
- </tr>
- <tr>
- <td id="L102" class="blob-num js-line-number" data-line-number="102"></td>
- <td id="LC102" class="blob-code blob-code-inner js-file-line"><span class="pl-en">getfield</span> (<span class="pl-c1">FILE</span> *stream, <span class="pl-k">char</span> *buffer, <span class="pl-k">int</span> delim)</td>
- </tr>
- <tr>
- <td id="L103" class="blob-num js-line-number" data-line-number="103"></td>
- <td id="LC103" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L104" class="blob-num js-line-number" data-line-number="104"></td>
- <td id="LC104" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">int</span> count = <span class="pl-c1">0</span>;</td>
- </tr>
- <tr>
- <td id="L105" class="blob-num js-line-number" data-line-number="105"></td>
- <td id="LC105" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">int</span> c;</td>
- </tr>
- <tr>
- <td id="L106" class="blob-num js-line-number" data-line-number="106"></td>
- <td id="LC106" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L107" class="blob-num js-line-number" data-line-number="107"></td>
- <td id="LC107" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">for</span> (; (c = <span class="pl-c1">getc</span> (stream)), (c != EOF && c != delim); )</td>
- </tr>
- <tr>
- <td id="L108" class="blob-num js-line-number" data-line-number="108"></td>
- <td id="LC108" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L109" class="blob-num js-line-number" data-line-number="109"></td>
- <td id="LC109" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> The original unicode.org UnicodeData.txt file happens to have</span></td>
- </tr>
- <tr>
- <td id="L110" class="blob-num js-line-number" data-line-number="110"></td>
- <td id="LC110" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> CR/LF line terminators. Silently convert to LF. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L111" class="blob-num js-line-number" data-line-number="111"></td>
- <td id="LC111" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (c == <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\r</span><span class="pl-pds">'</span></span>)</td>
- </tr>
- <tr>
- <td id="L112" class="blob-num js-line-number" data-line-number="112"></td>
- <td id="LC112" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">continue</span>;</td>
- </tr>
- <tr>
- <td id="L113" class="blob-num js-line-number" data-line-number="113"></td>
- <td id="LC113" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L114" class="blob-num js-line-number" data-line-number="114"></td>
- <td id="LC114" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Put c into the buffer. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L115" class="blob-num js-line-number" data-line-number="115"></td>
- <td id="LC115" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (++count >= FIELDLEN - <span class="pl-c1">1</span>)</td>
- </tr>
- <tr>
- <td id="L116" class="blob-num js-line-number" data-line-number="116"></td>
- <td id="LC116" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L117" class="blob-num js-line-number" data-line-number="117"></td>
- <td id="LC117" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span>field too long<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L118" class="blob-num js-line-number" data-line-number="118"></td>
- <td id="LC118" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">exit</span> (<span class="pl-c1">1</span>);</td>
- </tr>
- <tr>
- <td id="L119" class="blob-num js-line-number" data-line-number="119"></td>
- <td id="LC119" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L120" class="blob-num js-line-number" data-line-number="120"></td>
- <td id="LC120" class="blob-code blob-code-inner js-file-line"> *buffer++ = c;</td>
- </tr>
- <tr>
- <td id="L121" class="blob-num js-line-number" data-line-number="121"></td>
- <td id="LC121" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L122" class="blob-num js-line-number" data-line-number="122"></td>
- <td id="LC122" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L123" class="blob-num js-line-number" data-line-number="123"></td>
- <td id="LC123" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (c == EOF)</td>
- </tr>
- <tr>
- <td id="L124" class="blob-num js-line-number" data-line-number="124"></td>
- <td id="LC124" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-c1">0</span>;</td>
- </tr>
- <tr>
- <td id="L125" class="blob-num js-line-number" data-line-number="125"></td>
- <td id="LC125" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L126" class="blob-num js-line-number" data-line-number="126"></td>
- <td id="LC126" class="blob-code blob-code-inner js-file-line"> *buffer = <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span>;</td>
- </tr>
- <tr>
- <td id="L127" class="blob-num js-line-number" data-line-number="127"></td>
- <td id="LC127" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-c1">1</span>;</td>
- </tr>
- <tr>
- <td id="L128" class="blob-num js-line-number" data-line-number="128"></td>
- <td id="LC128" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L129" class="blob-num js-line-number" data-line-number="129"></td>
- <td id="LC129" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L130" class="blob-num js-line-number" data-line-number="130"></td>
- <td id="LC130" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Stores in unicode_attributes[] the entire contents of the UnicodeData.txt</span></td>
- </tr>
- <tr>
- <td id="L131" class="blob-num js-line-number" data-line-number="131"></td>
- <td id="LC131" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> file. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L132" class="blob-num js-line-number" data-line-number="132"></td>
- <td id="LC132" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">void</span></td>
- </tr>
- <tr>
- <td id="L133" class="blob-num js-line-number" data-line-number="133"></td>
- <td id="LC133" class="blob-code blob-code-inner js-file-line"><span class="pl-en">fill_attributes</span> (<span class="pl-k">const</span> <span class="pl-k">char</span> *unicodedata_filename)</td>
- </tr>
- <tr>
- <td id="L134" class="blob-num js-line-number" data-line-number="134"></td>
- <td id="LC134" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L135" class="blob-num js-line-number" data-line-number="135"></td>
- <td id="LC135" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">unsigned</span> <span class="pl-k">int</span> i, j;</td>
- </tr>
- <tr>
- <td id="L136" class="blob-num js-line-number" data-line-number="136"></td>
- <td id="LC136" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">FILE</span> *stream;</td>
- </tr>
- <tr>
- <td id="L137" class="blob-num js-line-number" data-line-number="137"></td>
- <td id="LC137" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field0[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L138" class="blob-num js-line-number" data-line-number="138"></td>
- <td id="LC138" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field1[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L139" class="blob-num js-line-number" data-line-number="139"></td>
- <td id="LC139" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field2[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L140" class="blob-num js-line-number" data-line-number="140"></td>
- <td id="LC140" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field3[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L141" class="blob-num js-line-number" data-line-number="141"></td>
- <td id="LC141" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field4[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L142" class="blob-num js-line-number" data-line-number="142"></td>
- <td id="LC142" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field5[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L143" class="blob-num js-line-number" data-line-number="143"></td>
- <td id="LC143" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field6[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L144" class="blob-num js-line-number" data-line-number="144"></td>
- <td id="LC144" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field7[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L145" class="blob-num js-line-number" data-line-number="145"></td>
- <td id="LC145" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field8[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L146" class="blob-num js-line-number" data-line-number="146"></td>
- <td id="LC146" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field9[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L147" class="blob-num js-line-number" data-line-number="147"></td>
- <td id="LC147" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field10[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L148" class="blob-num js-line-number" data-line-number="148"></td>
- <td id="LC148" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field11[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L149" class="blob-num js-line-number" data-line-number="149"></td>
- <td id="LC149" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field12[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L150" class="blob-num js-line-number" data-line-number="150"></td>
- <td id="LC150" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field13[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L151" class="blob-num js-line-number" data-line-number="151"></td>
- <td id="LC151" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> field14[FIELDLEN];</td>
- </tr>
- <tr>
- <td id="L152" class="blob-num js-line-number" data-line-number="152"></td>
- <td id="LC152" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">int</span> lineno = <span class="pl-c1">0</span>;</td>
- </tr>
- <tr>
- <td id="L153" class="blob-num js-line-number" data-line-number="153"></td>
- <td id="LC153" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L154" class="blob-num js-line-number" data-line-number="154"></td>
- <td id="LC154" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">for</span> (i = <span class="pl-c1">0</span>; i < <span class="pl-c1">0x110000</span>; i++)</td>
- </tr>
- <tr>
- <td id="L155" class="blob-num js-line-number" data-line-number="155"></td>
- <td id="LC155" class="blob-code blob-code-inner js-file-line"> unicode_attributes[i].<span class="pl-smi">name</span> = <span class="pl-c1">NULL</span>;</td>
- </tr>
- <tr>
- <td id="L156" class="blob-num js-line-number" data-line-number="156"></td>
- <td id="LC156" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L157" class="blob-num js-line-number" data-line-number="157"></td>
- <td id="LC157" class="blob-code blob-code-inner js-file-line"> stream = <span class="pl-c1">fopen</span> (unicodedata_filename, <span class="pl-s"><span class="pl-pds">"</span>r<span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L158" class="blob-num js-line-number" data-line-number="158"></td>
- <td id="LC158" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (stream == <span class="pl-c1">NULL</span>)</td>
- </tr>
- <tr>
- <td id="L159" class="blob-num js-line-number" data-line-number="159"></td>
- <td id="LC159" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L160" class="blob-num js-line-number" data-line-number="160"></td>
- <td id="LC160" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span>error during fopen of '<span class="pl-c1">%s</span>'<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, unicodedata_filename);</td>
- </tr>
- <tr>
- <td id="L161" class="blob-num js-line-number" data-line-number="161"></td>
- <td id="LC161" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">exit</span> (<span class="pl-c1">1</span>);</td>
- </tr>
- <tr>
- <td id="L162" class="blob-num js-line-number" data-line-number="162"></td>
- <td id="LC162" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L163" class="blob-num js-line-number" data-line-number="163"></td>
- <td id="LC163" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L164" class="blob-num js-line-number" data-line-number="164"></td>
- <td id="LC164" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">for</span> (;;)</td>
- </tr>
- <tr>
- <td id="L165" class="blob-num js-line-number" data-line-number="165"></td>
- <td id="LC165" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L166" class="blob-num js-line-number" data-line-number="166"></td>
- <td id="LC166" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">int</span> n;</td>
- </tr>
- <tr>
- <td id="L167" class="blob-num js-line-number" data-line-number="167"></td>
- <td id="LC167" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L168" class="blob-num js-line-number" data-line-number="168"></td>
- <td id="LC168" class="blob-code blob-code-inner js-file-line"> lineno++;</td>
- </tr>
- <tr>
- <td id="L169" class="blob-num js-line-number" data-line-number="169"></td>
- <td id="LC169" class="blob-code blob-code-inner js-file-line"> n = <span class="pl-c1">getfield</span> (stream, field0, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L170" class="blob-num js-line-number" data-line-number="170"></td>
- <td id="LC170" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field1, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L171" class="blob-num js-line-number" data-line-number="171"></td>
- <td id="LC171" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field2, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L172" class="blob-num js-line-number" data-line-number="172"></td>
- <td id="LC172" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field3, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L173" class="blob-num js-line-number" data-line-number="173"></td>
- <td id="LC173" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field4, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L174" class="blob-num js-line-number" data-line-number="174"></td>
- <td id="LC174" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field5, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L175" class="blob-num js-line-number" data-line-number="175"></td>
- <td id="LC175" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field6, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L176" class="blob-num js-line-number" data-line-number="176"></td>
- <td id="LC176" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field7, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L177" class="blob-num js-line-number" data-line-number="177"></td>
- <td id="LC177" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field8, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L178" class="blob-num js-line-number" data-line-number="178"></td>
- <td id="LC178" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field9, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L179" class="blob-num js-line-number" data-line-number="179"></td>
- <td id="LC179" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field10, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L180" class="blob-num js-line-number" data-line-number="180"></td>
- <td id="LC180" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field11, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L181" class="blob-num js-line-number" data-line-number="181"></td>
- <td id="LC181" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field12, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L182" class="blob-num js-line-number" data-line-number="182"></td>
- <td id="LC182" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field13, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L183" class="blob-num js-line-number" data-line-number="183"></td>
- <td id="LC183" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field14, <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\n</span><span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L184" class="blob-num js-line-number" data-line-number="184"></td>
- <td id="LC184" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (n == <span class="pl-c1">0</span>)</td>
- </tr>
- <tr>
- <td id="L185" class="blob-num js-line-number" data-line-number="185"></td>
- <td id="LC185" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">break</span>;</td>
- </tr>
- <tr>
- <td id="L186" class="blob-num js-line-number" data-line-number="186"></td>
- <td id="LC186" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (n != <span class="pl-c1">15</span>)</td>
- </tr>
- <tr>
- <td id="L187" class="blob-num js-line-number" data-line-number="187"></td>
- <td id="LC187" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L188" class="blob-num js-line-number" data-line-number="188"></td>
- <td id="LC188" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span>short line in'<span class="pl-c1">%s</span>':<span class="pl-c1">%d</span><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>,</td>
- </tr>
- <tr>
- <td id="L189" class="blob-num js-line-number" data-line-number="189"></td>
- <td id="LC189" class="blob-code blob-code-inner js-file-line"> unicodedata_filename, lineno);</td>
- </tr>
- <tr>
- <td id="L190" class="blob-num js-line-number" data-line-number="190"></td>
- <td id="LC190" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">exit</span> (<span class="pl-c1">1</span>);</td>
- </tr>
- <tr>
- <td id="L191" class="blob-num js-line-number" data-line-number="191"></td>
- <td id="LC191" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L192" class="blob-num js-line-number" data-line-number="192"></td>
- <td id="LC192" class="blob-code blob-code-inner js-file-line"> i = <span class="pl-c1">strtoul</span> (field0, <span class="pl-c1">NULL</span>, <span class="pl-c1">16</span>);</td>
- </tr>
- <tr>
- <td id="L193" class="blob-num js-line-number" data-line-number="193"></td>
- <td id="LC193" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (field1[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span><<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L194" class="blob-num js-line-number" data-line-number="194"></td>
- <td id="LC194" class="blob-code blob-code-inner js-file-line"> && <span class="pl-c1">strlen</span> (field1) >= <span class="pl-c1">9</span></td>
- </tr>
- <tr>
- <td id="L195" class="blob-num js-line-number" data-line-number="195"></td>
- <td id="LC195" class="blob-code blob-code-inner js-file-line"> && !<span class="pl-c1">strcmp</span> (field1 + <span class="pl-c1">strlen</span>(field1) - <span class="pl-c1">8</span>, <span class="pl-s"><span class="pl-pds">"</span>, First><span class="pl-pds">"</span></span>))</td>
- </tr>
- <tr>
- <td id="L196" class="blob-num js-line-number" data-line-number="196"></td>
- <td id="LC196" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L197" class="blob-num js-line-number" data-line-number="197"></td>
- <td id="LC197" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Deal with a range. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L198" class="blob-num js-line-number" data-line-number="198"></td>
- <td id="LC198" class="blob-code blob-code-inner js-file-line"> lineno++;</td>
- </tr>
- <tr>
- <td id="L199" class="blob-num js-line-number" data-line-number="199"></td>
- <td id="LC199" class="blob-code blob-code-inner js-file-line"> n = <span class="pl-c1">getfield</span> (stream, field0, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L200" class="blob-num js-line-number" data-line-number="200"></td>
- <td id="LC200" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field1, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L201" class="blob-num js-line-number" data-line-number="201"></td>
- <td id="LC201" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field2, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L202" class="blob-num js-line-number" data-line-number="202"></td>
- <td id="LC202" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field3, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L203" class="blob-num js-line-number" data-line-number="203"></td>
- <td id="LC203" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field4, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L204" class="blob-num js-line-number" data-line-number="204"></td>
- <td id="LC204" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field5, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L205" class="blob-num js-line-number" data-line-number="205"></td>
- <td id="LC205" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field6, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L206" class="blob-num js-line-number" data-line-number="206"></td>
- <td id="LC206" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field7, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L207" class="blob-num js-line-number" data-line-number="207"></td>
- <td id="LC207" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field8, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L208" class="blob-num js-line-number" data-line-number="208"></td>
- <td id="LC208" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field9, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L209" class="blob-num js-line-number" data-line-number="209"></td>
- <td id="LC209" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field10, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L210" class="blob-num js-line-number" data-line-number="210"></td>
- <td id="LC210" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field11, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L211" class="blob-num js-line-number" data-line-number="211"></td>
- <td id="LC211" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field12, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L212" class="blob-num js-line-number" data-line-number="212"></td>
- <td id="LC212" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field13, <span class="pl-s"><span class="pl-pds">'</span>;<span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L213" class="blob-num js-line-number" data-line-number="213"></td>
- <td id="LC213" class="blob-code blob-code-inner js-file-line"> n += <span class="pl-c1">getfield</span> (stream, field14, <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\n</span><span class="pl-pds">'</span></span>);</td>
- </tr>
- <tr>
- <td id="L214" class="blob-num js-line-number" data-line-number="214"></td>
- <td id="LC214" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (n != <span class="pl-c1">15</span>)</td>
- </tr>
- <tr>
- <td id="L215" class="blob-num js-line-number" data-line-number="215"></td>
- <td id="LC215" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L216" class="blob-num js-line-number" data-line-number="216"></td>
- <td id="LC216" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span>missing end range in '<span class="pl-c1">%s</span>':<span class="pl-c1">%d</span><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>,</td>
- </tr>
- <tr>
- <td id="L217" class="blob-num js-line-number" data-line-number="217"></td>
- <td id="LC217" class="blob-code blob-code-inner js-file-line"> unicodedata_filename, lineno);</td>
- </tr>
- <tr>
- <td id="L218" class="blob-num js-line-number" data-line-number="218"></td>
- <td id="LC218" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">exit</span> (<span class="pl-c1">1</span>);</td>
- </tr>
- <tr>
- <td id="L219" class="blob-num js-line-number" data-line-number="219"></td>
- <td id="LC219" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L220" class="blob-num js-line-number" data-line-number="220"></td>
- <td id="LC220" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (!(field1[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span><<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L221" class="blob-num js-line-number" data-line-number="221"></td>
- <td id="LC221" class="blob-code blob-code-inner js-file-line"> && <span class="pl-c1">strlen</span> (field1) >= <span class="pl-c1">8</span></td>
- </tr>
- <tr>
- <td id="L222" class="blob-num js-line-number" data-line-number="222"></td>
- <td id="LC222" class="blob-code blob-code-inner js-file-line"> && !<span class="pl-c1">strcmp</span> (field1 + <span class="pl-c1">strlen</span> (field1) - <span class="pl-c1">7</span>, <span class="pl-s"><span class="pl-pds">"</span>, Last><span class="pl-pds">"</span></span>)))</td>
- </tr>
- <tr>
- <td id="L223" class="blob-num js-line-number" data-line-number="223"></td>
- <td id="LC223" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L224" class="blob-num js-line-number" data-line-number="224"></td>
- <td id="LC224" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span>missing end range in '<span class="pl-c1">%s</span>':<span class="pl-c1">%d</span><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>,</td>
- </tr>
- <tr>
- <td id="L225" class="blob-num js-line-number" data-line-number="225"></td>
- <td id="LC225" class="blob-code blob-code-inner js-file-line"> unicodedata_filename, lineno);</td>
- </tr>
- <tr>
- <td id="L226" class="blob-num js-line-number" data-line-number="226"></td>
- <td id="LC226" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">exit</span> (<span class="pl-c1">1</span>);</td>
- </tr>
- <tr>
- <td id="L227" class="blob-num js-line-number" data-line-number="227"></td>
- <td id="LC227" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L228" class="blob-num js-line-number" data-line-number="228"></td>
- <td id="LC228" class="blob-code blob-code-inner js-file-line"> field1[<span class="pl-c1">strlen</span> (field1) - <span class="pl-c1">7</span>] = <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span>;</td>
- </tr>
- <tr>
- <td id="L229" class="blob-num js-line-number" data-line-number="229"></td>
- <td id="LC229" class="blob-code blob-code-inner js-file-line"> j = <span class="pl-c1">strtoul</span> (field0, <span class="pl-c1">NULL</span>, <span class="pl-c1">16</span>);</td>
- </tr>
- <tr>
- <td id="L230" class="blob-num js-line-number" data-line-number="230"></td>
- <td id="LC230" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">for</span> (; i <= j; i++)</td>
- </tr>
- <tr>
- <td id="L231" class="blob-num js-line-number" data-line-number="231"></td>
- <td id="LC231" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fill_attribute</span> (i, field1+<span class="pl-c1">1</span>, field2, field3, field4, field5,</td>
- </tr>
- <tr>
- <td id="L232" class="blob-num js-line-number" data-line-number="232"></td>
- <td id="LC232" class="blob-code blob-code-inner js-file-line"> field6, field7, field8, field9, field10,</td>
- </tr>
- <tr>
- <td id="L233" class="blob-num js-line-number" data-line-number="233"></td>
- <td id="LC233" class="blob-code blob-code-inner js-file-line"> field11, field12, field13, field14);</td>
- </tr>
- <tr>
- <td id="L234" class="blob-num js-line-number" data-line-number="234"></td>
- <td id="LC234" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L235" class="blob-num js-line-number" data-line-number="235"></td>
- <td id="LC235" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">else</span></td>
- </tr>
- <tr>
- <td id="L236" class="blob-num js-line-number" data-line-number="236"></td>
- <td id="LC236" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L237" class="blob-num js-line-number" data-line-number="237"></td>
- <td id="LC237" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Single character line <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L238" class="blob-num js-line-number" data-line-number="238"></td>
- <td id="LC238" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fill_attribute</span> (i, field1, field2, field3, field4, field5,</td>
- </tr>
- <tr>
- <td id="L239" class="blob-num js-line-number" data-line-number="239"></td>
- <td id="LC239" class="blob-code blob-code-inner js-file-line"> field6, field7, field8, field9, field10,</td>
- </tr>
- <tr>
- <td id="L240" class="blob-num js-line-number" data-line-number="240"></td>
- <td id="LC240" class="blob-code blob-code-inner js-file-line"> field11, field12, field13, field14);</td>
- </tr>
- <tr>
- <td id="L241" class="blob-num js-line-number" data-line-number="241"></td>
- <td id="LC241" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L242" class="blob-num js-line-number" data-line-number="242"></td>
- <td id="LC242" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L243" class="blob-num js-line-number" data-line-number="243"></td>
- <td id="LC243" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">ferror</span> (stream) || <span class="pl-c1">fclose</span> (stream))</td>
- </tr>
- <tr>
- <td id="L244" class="blob-num js-line-number" data-line-number="244"></td>
- <td id="LC244" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L245" class="blob-num js-line-number" data-line-number="245"></td>
- <td id="LC245" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span>error reading from '<span class="pl-c1">%s</span>'<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, unicodedata_filename);</td>
- </tr>
- <tr>
- <td id="L246" class="blob-num js-line-number" data-line-number="246"></td>
- <td id="LC246" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">exit</span> (<span class="pl-c1">1</span>);</td>
- </tr>
- <tr>
- <td id="L247" class="blob-num js-line-number" data-line-number="247"></td>
- <td id="LC247" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L248" class="blob-num js-line-number" data-line-number="248"></td>
- <td id="LC248" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L249" class="blob-num js-line-number" data-line-number="249"></td>
- <td id="LC249" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L250" class="blob-num js-line-number" data-line-number="250"></td>
- <td id="LC250" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Character mappings. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L251" class="blob-num js-line-number" data-line-number="251"></td>
- <td id="LC251" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L252" class="blob-num js-line-number" data-line-number="252"></td>
- <td id="LC252" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">unsigned</span> <span class="pl-k">int</span></td>
- </tr>
- <tr>
- <td id="L253" class="blob-num js-line-number" data-line-number="253"></td>
- <td id="LC253" class="blob-code blob-code-inner js-file-line"><span class="pl-en">to_upper</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L254" class="blob-num js-line-number" data-line-number="254"></td>
- <td id="LC254" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L255" class="blob-num js-line-number" data-line-number="255"></td>
- <td id="LC255" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (unicode_attributes[ch].<span class="pl-smi">name</span> != <span class="pl-c1">NULL</span></td>
- </tr>
- <tr>
- <td id="L256" class="blob-num js-line-number" data-line-number="256"></td>
- <td id="LC256" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">upper</span> != NONE)</td>
- </tr>
- <tr>
- <td id="L257" class="blob-num js-line-number" data-line-number="257"></td>
- <td id="LC257" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> unicode_attributes[ch].<span class="pl-smi">upper</span>;</td>
- </tr>
- <tr>
- <td id="L258" class="blob-num js-line-number" data-line-number="258"></td>
- <td id="LC258" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">else</span></td>
- </tr>
- <tr>
- <td id="L259" class="blob-num js-line-number" data-line-number="259"></td>
- <td id="LC259" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> ch;</td>
- </tr>
- <tr>
- <td id="L260" class="blob-num js-line-number" data-line-number="260"></td>
- <td id="LC260" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L261" class="blob-num js-line-number" data-line-number="261"></td>
- <td id="LC261" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L262" class="blob-num js-line-number" data-line-number="262"></td>
- <td id="LC262" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">unsigned</span> <span class="pl-k">int</span></td>
- </tr>
- <tr>
- <td id="L263" class="blob-num js-line-number" data-line-number="263"></td>
- <td id="LC263" class="blob-code blob-code-inner js-file-line"><span class="pl-en">to_lower</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L264" class="blob-num js-line-number" data-line-number="264"></td>
- <td id="LC264" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L265" class="blob-num js-line-number" data-line-number="265"></td>
- <td id="LC265" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (unicode_attributes[ch].<span class="pl-smi">name</span> != <span class="pl-c1">NULL</span></td>
- </tr>
- <tr>
- <td id="L266" class="blob-num js-line-number" data-line-number="266"></td>
- <td id="LC266" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">lower</span> != NONE)</td>
- </tr>
- <tr>
- <td id="L267" class="blob-num js-line-number" data-line-number="267"></td>
- <td id="LC267" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> unicode_attributes[ch].<span class="pl-smi">lower</span>;</td>
- </tr>
- <tr>
- <td id="L268" class="blob-num js-line-number" data-line-number="268"></td>
- <td id="LC268" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">else</span></td>
- </tr>
- <tr>
- <td id="L269" class="blob-num js-line-number" data-line-number="269"></td>
- <td id="LC269" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> ch;</td>
- </tr>
- <tr>
- <td id="L270" class="blob-num js-line-number" data-line-number="270"></td>
- <td id="LC270" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L271" class="blob-num js-line-number" data-line-number="271"></td>
- <td id="LC271" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L272" class="blob-num js-line-number" data-line-number="272"></td>
- <td id="LC272" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">unsigned</span> <span class="pl-k">int</span></td>
- </tr>
- <tr>
- <td id="L273" class="blob-num js-line-number" data-line-number="273"></td>
- <td id="LC273" class="blob-code blob-code-inner js-file-line"><span class="pl-en">to_title</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L274" class="blob-num js-line-number" data-line-number="274"></td>
- <td id="LC274" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L275" class="blob-num js-line-number" data-line-number="275"></td>
- <td id="LC275" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (unicode_attributes[ch].<span class="pl-smi">name</span> != <span class="pl-c1">NULL</span></td>
- </tr>
- <tr>
- <td id="L276" class="blob-num js-line-number" data-line-number="276"></td>
- <td id="LC276" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">title</span> != NONE)</td>
- </tr>
- <tr>
- <td id="L277" class="blob-num js-line-number" data-line-number="277"></td>
- <td id="LC277" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> unicode_attributes[ch].<span class="pl-smi">title</span>;</td>
- </tr>
- <tr>
- <td id="L278" class="blob-num js-line-number" data-line-number="278"></td>
- <td id="LC278" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">else</span></td>
- </tr>
- <tr>
- <td id="L279" class="blob-num js-line-number" data-line-number="279"></td>
- <td id="LC279" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> ch;</td>
- </tr>
- <tr>
- <td id="L280" class="blob-num js-line-number" data-line-number="280"></td>
- <td id="LC280" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L281" class="blob-num js-line-number" data-line-number="281"></td>
- <td id="LC281" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L282" class="blob-num js-line-number" data-line-number="282"></td>
- <td id="LC282" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Character class properties. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L283" class="blob-num js-line-number" data-line-number="283"></td>
- <td id="LC283" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L284" class="blob-num js-line-number" data-line-number="284"></td>
- <td id="LC284" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L285" class="blob-num js-line-number" data-line-number="285"></td>
- <td id="LC285" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_upper</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L286" class="blob-num js-line-number" data-line-number="286"></td>
- <td id="LC286" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L287" class="blob-num js-line-number" data-line-number="287"></td>
- <td id="LC287" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (<span class="pl-c1">to_lower</span> (ch) != ch);</td>
- </tr>
- <tr>
- <td id="L288" class="blob-num js-line-number" data-line-number="288"></td>
- <td id="LC288" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L289" class="blob-num js-line-number" data-line-number="289"></td>
- <td id="LC289" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L290" class="blob-num js-line-number" data-line-number="290"></td>
- <td id="LC290" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L291" class="blob-num js-line-number" data-line-number="291"></td>
- <td id="LC291" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_lower</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L292" class="blob-num js-line-number" data-line-number="292"></td>
- <td id="LC292" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L293" class="blob-num js-line-number" data-line-number="293"></td>
- <td id="LC293" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (<span class="pl-c1">to_upper</span> (ch) != ch)</td>
- </tr>
- <tr>
- <td id="L294" class="blob-num js-line-number" data-line-number="294"></td>
- <td id="LC294" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> <U00DF> is lowercase, but without simple to_upper mapping. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L295" class="blob-num js-line-number" data-line-number="295"></td>
- <td id="LC295" class="blob-code blob-code-inner js-file-line"> || (ch == <span class="pl-c1">0x00DF</span>);</td>
- </tr>
- <tr>
- <td id="L296" class="blob-num js-line-number" data-line-number="296"></td>
- <td id="LC296" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L297" class="blob-num js-line-number" data-line-number="297"></td>
- <td id="LC297" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L298" class="blob-num js-line-number" data-line-number="298"></td>
- <td id="LC298" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L299" class="blob-num js-line-number" data-line-number="299"></td>
- <td id="LC299" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_alpha</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L300" class="blob-num js-line-number" data-line-number="300"></td>
- <td id="LC300" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L301" class="blob-num js-line-number" data-line-number="301"></td>
- <td id="LC301" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (unicode_attributes[ch].<span class="pl-smi">name</span> != <span class="pl-c1">NULL</span></td>
- </tr>
- <tr>
- <td id="L302" class="blob-num js-line-number" data-line-number="302"></td>
- <td id="LC302" class="blob-code blob-code-inner js-file-line"> && ((unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span>L<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L303" class="blob-num js-line-number" data-line-number="303"></td>
- <td id="LC303" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Theppitak Karoonboonyanan <thep@links.nectec.or.th> says</span></td>
- </tr>
- <tr>
- <td id="L304" class="blob-num js-line-number" data-line-number="304"></td>
- <td id="LC304" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> <U0E2F>, <U0E46> should belong to is_punct. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L305" class="blob-num js-line-number" data-line-number="305"></td>
- <td id="LC305" class="blob-code blob-code-inner js-file-line"> && (ch != <span class="pl-c1">0x0E2F</span>) && (ch != <span class="pl-c1">0x0E46</span>))</td>
- </tr>
- <tr>
- <td id="L306" class="blob-num js-line-number" data-line-number="306"></td>
- <td id="LC306" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Theppitak Karoonboonyanan <thep@links.nectec.or.th> says</span></td>
- </tr>
- <tr>
- <td id="L307" class="blob-num js-line-number" data-line-number="307"></td>
- <td id="LC307" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> <U0E31>, <U0E34>..<U0E3A>, <U0E47>..<U0E4E> are is_alpha. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L308" class="blob-num js-line-number" data-line-number="308"></td>
- <td id="LC308" class="blob-code blob-code-inner js-file-line"> || (ch == <span class="pl-c1">0x0E31</span>)</td>
- </tr>
- <tr>
- <td id="L309" class="blob-num js-line-number" data-line-number="309"></td>
- <td id="LC309" class="blob-code blob-code-inner js-file-line"> || (ch >= <span class="pl-c1">0x0E34</span> && ch <= <span class="pl-c1">0x0E3A</span>)</td>
- </tr>
- <tr>
- <td id="L310" class="blob-num js-line-number" data-line-number="310"></td>
- <td id="LC310" class="blob-code blob-code-inner js-file-line"> || (ch >= <span class="pl-c1">0x0E47</span> && ch <= <span class="pl-c1">0x0E4E</span>)</td>
- </tr>
- <tr>
- <td id="L311" class="blob-num js-line-number" data-line-number="311"></td>
- <td id="LC311" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Avoid warning for <U0345>. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L312" class="blob-num js-line-number" data-line-number="312"></td>
- <td id="LC312" class="blob-code blob-code-inner js-file-line"> || (ch == <span class="pl-c1">0x0345</span>)</td>
- </tr>
- <tr>
- <td id="L313" class="blob-num js-line-number" data-line-number="313"></td>
- <td id="LC313" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Avoid warnings for <U2160>..<U217F>. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L314" class="blob-num js-line-number" data-line-number="314"></td>
- <td id="LC314" class="blob-code blob-code-inner js-file-line"> || (unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span>N<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L315" class="blob-num js-line-number" data-line-number="315"></td>
- <td id="LC315" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>l<span class="pl-pds">'</span></span>)</td>
- </tr>
- <tr>
- <td id="L316" class="blob-num js-line-number" data-line-number="316"></td>
- <td id="LC316" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Avoid warnings for <U24B6>..<U24E9>. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L317" class="blob-num js-line-number" data-line-number="317"></td>
- <td id="LC317" class="blob-code blob-code-inner js-file-line"> || (unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span>S<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L318" class="blob-num js-line-number" data-line-number="318"></td>
- <td id="LC318" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>o<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L319" class="blob-num js-line-number" data-line-number="319"></td>
- <td id="LC319" class="blob-code blob-code-inner js-file-line"> && <span class="pl-c1">strstr</span> (unicode_attributes[ch].<span class="pl-smi">name</span>, <span class="pl-s"><span class="pl-pds">"</span> LETTER <span class="pl-pds">"</span></span>)</td>
- </tr>
- <tr>
- <td id="L320" class="blob-num js-line-number" data-line-number="320"></td>
- <td id="LC320" class="blob-code blob-code-inner js-file-line"> != <span class="pl-c1">NULL</span>)</td>
- </tr>
- <tr>
- <td id="L321" class="blob-num js-line-number" data-line-number="321"></td>
- <td id="LC321" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Consider all the non-ASCII digits as alphabetic.</span></td>
- </tr>
- <tr>
- <td id="L322" class="blob-num js-line-number" data-line-number="322"></td>
- <td id="LC322" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> ISO C 99 forbids us to have them in category "digit",</span></td>
- </tr>
- <tr>
- <td id="L323" class="blob-num js-line-number" data-line-number="323"></td>
- <td id="LC323" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> but we want iswalnum to return true on them. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L324" class="blob-num js-line-number" data-line-number="324"></td>
- <td id="LC324" class="blob-code blob-code-inner js-file-line"> || (unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span>N<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L325" class="blob-num js-line-number" data-line-number="325"></td>
- <td id="LC325" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>d<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L326" class="blob-num js-line-number" data-line-number="326"></td>
- <td id="LC326" class="blob-code blob-code-inner js-file-line"> && !(ch >= <span class="pl-c1">0x0030</span> && ch <= <span class="pl-c1">0x0039</span>))));</td>
- </tr>
- <tr>
- <td id="L327" class="blob-num js-line-number" data-line-number="327"></td>
- <td id="LC327" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L328" class="blob-num js-line-number" data-line-number="328"></td>
- <td id="LC328" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L329" class="blob-num js-line-number" data-line-number="329"></td>
- <td id="LC329" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L330" class="blob-num js-line-number" data-line-number="330"></td>
- <td id="LC330" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_digit</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L331" class="blob-num js-line-number" data-line-number="331"></td>
- <td id="LC331" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L332" class="blob-num js-line-number" data-line-number="332"></td>
- <td id="LC332" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">if</span> <span class="pl-c1">0</span></td>
- </tr>
- <tr>
- <td id="L333" class="blob-num js-line-number" data-line-number="333"></td>
- <td id="LC333" class="blob-code blob-code-inner js-file-line"> return (unicode_attributes[ch].name != NULL</td>
- </tr>
- <tr>
- <td id="L334" class="blob-num js-line-number" data-line-number="334"></td>
- <td id="LC334" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].category[0] == 'N'</td>
- </tr>
- <tr>
- <td id="L335" class="blob-num js-line-number" data-line-number="335"></td>
- <td id="LC335" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].category[1] == 'd');</td>
- </tr>
- <tr>
- <td id="L336" class="blob-num js-line-number" data-line-number="336"></td>
- <td id="LC336" class="blob-code blob-code-inner js-file-line"> /* Note: U+0BE7..U+0BEF and U+1369..U+1371 are digit systems without</td>
- </tr>
- <tr>
- <td id="L337" class="blob-num js-line-number" data-line-number="337"></td>
- <td id="LC337" class="blob-code blob-code-inner js-file-line"> a zero. Must add <0> in front of them by hand. */</td>
- </tr>
- <tr>
- <td id="L338" class="blob-num js-line-number" data-line-number="338"></td>
- <td id="LC338" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">else</span></td>
- </tr>
- <tr>
- <td id="L339" class="blob-num js-line-number" data-line-number="339"></td>
- <td id="LC339" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> SUSV2 gives us some freedom for the "digit" category, but ISO C 99</span></td>
- </tr>
- <tr>
- <td id="L340" class="blob-num js-line-number" data-line-number="340"></td>
- <td id="LC340" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> takes it away:</span></td>
- </tr>
- <tr>
- <td id="L341" class="blob-num js-line-number" data-line-number="341"></td>
- <td id="LC341" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> 7.25.2.1.5:</span></td>
- </tr>
- <tr>
- <td id="L342" class="blob-num js-line-number" data-line-number="342"></td>
- <td id="LC342" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> The iswdigit function tests for any wide character that corresponds</span></td>
- </tr>
- <tr>
- <td id="L343" class="blob-num js-line-number" data-line-number="343"></td>
- <td id="LC343" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> to a decimal-digit character (as defined in 5.2.1).</span></td>
- </tr>
- <tr>
- <td id="L344" class="blob-num js-line-number" data-line-number="344"></td>
- <td id="LC344" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> 5.2.1:</span></td>
- </tr>
- <tr>
- <td id="L345" class="blob-num js-line-number" data-line-number="345"></td>
- <td id="LC345" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> the 10 decimal digits 0 1 2 3 4 5 6 7 8 9</span></td>
- </tr>
- <tr>
- <td id="L346" class="blob-num js-line-number" data-line-number="346"></td>
- <td id="LC346" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L347" class="blob-num js-line-number" data-line-number="347"></td>
- <td id="LC347" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (ch >= <span class="pl-c1">0x0030</span> && ch <= <span class="pl-c1">0x0039</span>);</td>
- </tr>
- <tr>
- <td id="L348" class="blob-num js-line-number" data-line-number="348"></td>
- <td id="LC348" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td>
- </tr>
- <tr>
- <td id="L349" class="blob-num js-line-number" data-line-number="349"></td>
- <td id="LC349" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L350" class="blob-num js-line-number" data-line-number="350"></td>
- <td id="LC350" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L351" class="blob-num js-line-number" data-line-number="351"></td>
- <td id="LC351" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L352" class="blob-num js-line-number" data-line-number="352"></td>
- <td id="LC352" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_outdigit</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L353" class="blob-num js-line-number" data-line-number="353"></td>
- <td id="LC353" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L354" class="blob-num js-line-number" data-line-number="354"></td>
- <td id="LC354" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (ch >= <span class="pl-c1">0x0030</span> && ch <= <span class="pl-c1">0x0039</span>);</td>
- </tr>
- <tr>
- <td id="L355" class="blob-num js-line-number" data-line-number="355"></td>
- <td id="LC355" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L356" class="blob-num js-line-number" data-line-number="356"></td>
- <td id="LC356" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L357" class="blob-num js-line-number" data-line-number="357"></td>
- <td id="LC357" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L358" class="blob-num js-line-number" data-line-number="358"></td>
- <td id="LC358" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_blank</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L359" class="blob-num js-line-number" data-line-number="359"></td>
- <td id="LC359" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L360" class="blob-num js-line-number" data-line-number="360"></td>
- <td id="LC360" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (ch == <span class="pl-c1">0x0009</span> <span class="pl-c"><span class="pl-c">/*</span> '\t' <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L361" class="blob-num js-line-number" data-line-number="361"></td>
- <td id="LC361" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Category Zs without mention of "<noBreak>" <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L362" class="blob-num js-line-number" data-line-number="362"></td>
- <td id="LC362" class="blob-code blob-code-inner js-file-line"> || (unicode_attributes[ch].<span class="pl-smi">name</span> != <span class="pl-c1">NULL</span></td>
- </tr>
- <tr>
- <td id="L363" class="blob-num js-line-number" data-line-number="363"></td>
- <td id="LC363" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span>Z<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L364" class="blob-num js-line-number" data-line-number="364"></td>
- <td id="LC364" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>s<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L365" class="blob-num js-line-number" data-line-number="365"></td>
- <td id="LC365" class="blob-code blob-code-inner js-file-line"> && !<span class="pl-c1">strstr</span> (unicode_attributes[ch].<span class="pl-smi">decomposition</span>, <span class="pl-s"><span class="pl-pds">"</span><noBreak><span class="pl-pds">"</span></span>)));</td>
- </tr>
- <tr>
- <td id="L366" class="blob-num js-line-number" data-line-number="366"></td>
- <td id="LC366" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L367" class="blob-num js-line-number" data-line-number="367"></td>
- <td id="LC367" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L368" class="blob-num js-line-number" data-line-number="368"></td>
- <td id="LC368" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L369" class="blob-num js-line-number" data-line-number="369"></td>
- <td id="LC369" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_space</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L370" class="blob-num js-line-number" data-line-number="370"></td>
- <td id="LC370" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L371" class="blob-num js-line-number" data-line-number="371"></td>
- <td id="LC371" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Don't make U+00A0 a space. Non-breaking space means that all programs</span></td>
- </tr>
- <tr>
- <td id="L372" class="blob-num js-line-number" data-line-number="372"></td>
- <td id="LC372" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> should treat it like a punctuation character, not like a space. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L373" class="blob-num js-line-number" data-line-number="373"></td>
- <td id="LC373" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (ch == <span class="pl-c1">0x0020</span> <span class="pl-c"><span class="pl-c">/*</span> ' ' <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L374" class="blob-num js-line-number" data-line-number="374"></td>
- <td id="LC374" class="blob-code blob-code-inner js-file-line"> || ch == <span class="pl-c1">0x000C</span> <span class="pl-c"><span class="pl-c">/*</span> '\f' <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L375" class="blob-num js-line-number" data-line-number="375"></td>
- <td id="LC375" class="blob-code blob-code-inner js-file-line"> || ch == <span class="pl-c1">0x000A</span> <span class="pl-c"><span class="pl-c">/*</span> '\n' <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L376" class="blob-num js-line-number" data-line-number="376"></td>
- <td id="LC376" class="blob-code blob-code-inner js-file-line"> || ch == <span class="pl-c1">0x000D</span> <span class="pl-c"><span class="pl-c">/*</span> '\r' <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L377" class="blob-num js-line-number" data-line-number="377"></td>
- <td id="LC377" class="blob-code blob-code-inner js-file-line"> || ch == <span class="pl-c1">0x0009</span> <span class="pl-c"><span class="pl-c">/*</span> '\t' <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L378" class="blob-num js-line-number" data-line-number="378"></td>
- <td id="LC378" class="blob-code blob-code-inner js-file-line"> || ch == <span class="pl-c1">0x000B</span> <span class="pl-c"><span class="pl-c">/*</span> '\v' <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L379" class="blob-num js-line-number" data-line-number="379"></td>
- <td id="LC379" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Categories Zl, Zp, and Zs without mention of "<noBreak>" <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L380" class="blob-num js-line-number" data-line-number="380"></td>
- <td id="LC380" class="blob-code blob-code-inner js-file-line"> || (unicode_attributes[ch].<span class="pl-smi">name</span> != <span class="pl-c1">NULL</span></td>
- </tr>
- <tr>
- <td id="L381" class="blob-num js-line-number" data-line-number="381"></td>
- <td id="LC381" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span>Z<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L382" class="blob-num js-line-number" data-line-number="382"></td>
- <td id="LC382" class="blob-code blob-code-inner js-file-line"> && (unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>l<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L383" class="blob-num js-line-number" data-line-number="383"></td>
- <td id="LC383" class="blob-code blob-code-inner js-file-line"> || unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>p<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L384" class="blob-num js-line-number" data-line-number="384"></td>
- <td id="LC384" class="blob-code blob-code-inner js-file-line"> || (unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>s<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L385" class="blob-num js-line-number" data-line-number="385"></td>
- <td id="LC385" class="blob-code blob-code-inner js-file-line"> && !<span class="pl-c1">strstr</span> (unicode_attributes[ch].<span class="pl-smi">decomposition</span>,</td>
- </tr>
- <tr>
- <td id="L386" class="blob-num js-line-number" data-line-number="386"></td>
- <td id="LC386" class="blob-code blob-code-inner js-file-line"> <span class="pl-s"><span class="pl-pds">"</span><noBreak><span class="pl-pds">"</span></span>)))));</td>
- </tr>
- <tr>
- <td id="L387" class="blob-num js-line-number" data-line-number="387"></td>
- <td id="LC387" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L388" class="blob-num js-line-number" data-line-number="388"></td>
- <td id="LC388" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L389" class="blob-num js-line-number" data-line-number="389"></td>
- <td id="LC389" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L390" class="blob-num js-line-number" data-line-number="390"></td>
- <td id="LC390" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_cntrl</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L391" class="blob-num js-line-number" data-line-number="391"></td>
- <td id="LC391" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L392" class="blob-num js-line-number" data-line-number="392"></td>
- <td id="LC392" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (unicode_attributes[ch].<span class="pl-smi">name</span> != <span class="pl-c1">NULL</span></td>
- </tr>
- <tr>
- <td id="L393" class="blob-num js-line-number" data-line-number="393"></td>
- <td id="LC393" class="blob-code blob-code-inner js-file-line"> && (!<span class="pl-c1">strcmp</span> (unicode_attributes[ch].<span class="pl-smi">name</span>, <span class="pl-s"><span class="pl-pds">"</span><control><span class="pl-pds">"</span></span>)</td>
- </tr>
- <tr>
- <td id="L394" class="blob-num js-line-number" data-line-number="394"></td>
- <td id="LC394" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Categories Zl and Zp <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L395" class="blob-num js-line-number" data-line-number="395"></td>
- <td id="LC395" class="blob-code blob-code-inner js-file-line"> || (unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span>Z<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L396" class="blob-num js-line-number" data-line-number="396"></td>
- <td id="LC396" class="blob-code blob-code-inner js-file-line"> && (unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>l<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L397" class="blob-num js-line-number" data-line-number="397"></td>
- <td id="LC397" class="blob-code blob-code-inner js-file-line"> || unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>p<span class="pl-pds">'</span></span>))));</td>
- </tr>
- <tr>
- <td id="L398" class="blob-num js-line-number" data-line-number="398"></td>
- <td id="LC398" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L399" class="blob-num js-line-number" data-line-number="399"></td>
- <td id="LC399" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L400" class="blob-num js-line-number" data-line-number="400"></td>
- <td id="LC400" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L401" class="blob-num js-line-number" data-line-number="401"></td>
- <td id="LC401" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_xdigit</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L402" class="blob-num js-line-number" data-line-number="402"></td>
- <td id="LC402" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L403" class="blob-num js-line-number" data-line-number="403"></td>
- <td id="LC403" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">if</span> <span class="pl-c1">0</span></td>
- </tr>
- <tr>
- <td id="L404" class="blob-num js-line-number" data-line-number="404"></td>
- <td id="LC404" class="blob-code blob-code-inner js-file-line"> return is_digit (ch)</td>
- </tr>
- <tr>
- <td id="L405" class="blob-num js-line-number" data-line-number="405"></td>
- <td id="LC405" class="blob-code blob-code-inner js-file-line"> || (ch >= 0x0041 && ch <= 0x0046)</td>
- </tr>
- <tr>
- <td id="L406" class="blob-num js-line-number" data-line-number="406"></td>
- <td id="LC406" class="blob-code blob-code-inner js-file-line"> || (ch >= 0x0061 && ch <= 0x0066);</td>
- </tr>
- <tr>
- <td id="L407" class="blob-num js-line-number" data-line-number="407"></td>
- <td id="LC407" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">else</span></td>
- </tr>
- <tr>
- <td id="L408" class="blob-num js-line-number" data-line-number="408"></td>
- <td id="LC408" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> SUSV2 gives us some freedom for the "xdigit" category, but ISO C 99</span></td>
- </tr>
- <tr>
- <td id="L409" class="blob-num js-line-number" data-line-number="409"></td>
- <td id="LC409" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> takes it away:</span></td>
- </tr>
- <tr>
- <td id="L410" class="blob-num js-line-number" data-line-number="410"></td>
- <td id="LC410" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> 7.25.2.1.12:</span></td>
- </tr>
- <tr>
- <td id="L411" class="blob-num js-line-number" data-line-number="411"></td>
- <td id="LC411" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> The iswxdigit function tests for any wide character that corresponds</span></td>
- </tr>
- <tr>
- <td id="L412" class="blob-num js-line-number" data-line-number="412"></td>
- <td id="LC412" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> to a hexadecimal-digit character (as defined in 6.4.4.1).</span></td>
- </tr>
- <tr>
- <td id="L413" class="blob-num js-line-number" data-line-number="413"></td>
- <td id="LC413" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> 6.4.4.1:</span></td>
- </tr>
- <tr>
- <td id="L414" class="blob-num js-line-number" data-line-number="414"></td>
- <td id="LC414" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> hexadecimal-digit: one of 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F</span></td>
- </tr>
- <tr>
- <td id="L415" class="blob-num js-line-number" data-line-number="415"></td>
- <td id="LC415" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L416" class="blob-num js-line-number" data-line-number="416"></td>
- <td id="LC416" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (ch >= <span class="pl-c1">0x0030</span> && ch <= <span class="pl-c1">0x0039</span>)</td>
- </tr>
- <tr>
- <td id="L417" class="blob-num js-line-number" data-line-number="417"></td>
- <td id="LC417" class="blob-code blob-code-inner js-file-line"> || (ch >= <span class="pl-c1">0x0041</span> && ch <= <span class="pl-c1">0x0046</span>)</td>
- </tr>
- <tr>
- <td id="L418" class="blob-num js-line-number" data-line-number="418"></td>
- <td id="LC418" class="blob-code blob-code-inner js-file-line"> || (ch >= <span class="pl-c1">0x0061</span> && ch <= <span class="pl-c1">0x0066</span>);</td>
- </tr>
- <tr>
- <td id="L419" class="blob-num js-line-number" data-line-number="419"></td>
- <td id="LC419" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td>
- </tr>
- <tr>
- <td id="L420" class="blob-num js-line-number" data-line-number="420"></td>
- <td id="LC420" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L421" class="blob-num js-line-number" data-line-number="421"></td>
- <td id="LC421" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L422" class="blob-num js-line-number" data-line-number="422"></td>
- <td id="LC422" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L423" class="blob-num js-line-number" data-line-number="423"></td>
- <td id="LC423" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_graph</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L424" class="blob-num js-line-number" data-line-number="424"></td>
- <td id="LC424" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L425" class="blob-num js-line-number" data-line-number="425"></td>
- <td id="LC425" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (unicode_attributes[ch].<span class="pl-smi">name</span> != <span class="pl-c1">NULL</span></td>
- </tr>
- <tr>
- <td id="L426" class="blob-num js-line-number" data-line-number="426"></td>
- <td id="LC426" class="blob-code blob-code-inner js-file-line"> && <span class="pl-c1">strcmp</span> (unicode_attributes[ch].<span class="pl-smi">name</span>, <span class="pl-s"><span class="pl-pds">"</span><control><span class="pl-pds">"</span></span>)</td>
- </tr>
- <tr>
- <td id="L427" class="blob-num js-line-number" data-line-number="427"></td>
- <td id="LC427" class="blob-code blob-code-inner js-file-line"> && !<span class="pl-c1">is_space</span> (ch));</td>
- </tr>
- <tr>
- <td id="L428" class="blob-num js-line-number" data-line-number="428"></td>
- <td id="LC428" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L429" class="blob-num js-line-number" data-line-number="429"></td>
- <td id="LC429" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L430" class="blob-num js-line-number" data-line-number="430"></td>
- <td id="LC430" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L431" class="blob-num js-line-number" data-line-number="431"></td>
- <td id="LC431" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_print</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L432" class="blob-num js-line-number" data-line-number="432"></td>
- <td id="LC432" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L433" class="blob-num js-line-number" data-line-number="433"></td>
- <td id="LC433" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (unicode_attributes[ch].<span class="pl-smi">name</span> != <span class="pl-c1">NULL</span></td>
- </tr>
- <tr>
- <td id="L434" class="blob-num js-line-number" data-line-number="434"></td>
- <td id="LC434" class="blob-code blob-code-inner js-file-line"> && <span class="pl-c1">strcmp</span> (unicode_attributes[ch].<span class="pl-smi">name</span>, <span class="pl-s"><span class="pl-pds">"</span><control><span class="pl-pds">"</span></span>)</td>
- </tr>
- <tr>
- <td id="L435" class="blob-num js-line-number" data-line-number="435"></td>
- <td id="LC435" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Categories Zl and Zp <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L436" class="blob-num js-line-number" data-line-number="436"></td>
- <td id="LC436" class="blob-code blob-code-inner js-file-line"> && !(unicode_attributes[ch].<span class="pl-smi">name</span> != <span class="pl-c1">NULL</span></td>
- </tr>
- <tr>
- <td id="L437" class="blob-num js-line-number" data-line-number="437"></td>
- <td id="LC437" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span>Z<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L438" class="blob-num js-line-number" data-line-number="438"></td>
- <td id="LC438" class="blob-code blob-code-inner js-file-line"> && (unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>l<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L439" class="blob-num js-line-number" data-line-number="439"></td>
- <td id="LC439" class="blob-code blob-code-inner js-file-line"> || unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>p<span class="pl-pds">'</span></span>)));</td>
- </tr>
- <tr>
- <td id="L440" class="blob-num js-line-number" data-line-number="440"></td>
- <td id="LC440" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L441" class="blob-num js-line-number" data-line-number="441"></td>
- <td id="LC441" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L442" class="blob-num js-line-number" data-line-number="442"></td>
- <td id="LC442" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L443" class="blob-num js-line-number" data-line-number="443"></td>
- <td id="LC443" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_punct</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L444" class="blob-num js-line-number" data-line-number="444"></td>
- <td id="LC444" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L445" class="blob-num js-line-number" data-line-number="445"></td>
- <td id="LC445" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">if</span> <span class="pl-c1">0</span></td>
- </tr>
- <tr>
- <td id="L446" class="blob-num js-line-number" data-line-number="446"></td>
- <td id="LC446" class="blob-code blob-code-inner js-file-line"> return (unicode_attributes[ch].name != NULL</td>
- </tr>
- <tr>
- <td id="L447" class="blob-num js-line-number" data-line-number="447"></td>
- <td id="LC447" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].category[0] == 'P');</td>
- </tr>
- <tr>
- <td id="L448" class="blob-num js-line-number" data-line-number="448"></td>
- <td id="LC448" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">else</span></td>
- </tr>
- <tr>
- <td id="L449" class="blob-num js-line-number" data-line-number="449"></td>
- <td id="LC449" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> The traditional POSIX definition of punctuation is every graphic,</span></td>
- </tr>
- <tr>
- <td id="L450" class="blob-num js-line-number" data-line-number="450"></td>
- <td id="LC450" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> non-alphanumeric character. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L451" class="blob-num js-line-number" data-line-number="451"></td>
- <td id="LC451" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (<span class="pl-c1">is_graph</span> (ch) && !<span class="pl-c1">is_alpha</span> (ch) && !<span class="pl-c1">is_digit</span> (ch));</td>
- </tr>
- <tr>
- <td id="L452" class="blob-num js-line-number" data-line-number="452"></td>
- <td id="LC452" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td>
- </tr>
- <tr>
- <td id="L453" class="blob-num js-line-number" data-line-number="453"></td>
- <td id="LC453" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L454" class="blob-num js-line-number" data-line-number="454"></td>
- <td id="LC454" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L455" class="blob-num js-line-number" data-line-number="455"></td>
- <td id="LC455" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L456" class="blob-num js-line-number" data-line-number="456"></td>
- <td id="LC456" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_combining</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L457" class="blob-num js-line-number" data-line-number="457"></td>
- <td id="LC457" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L458" class="blob-num js-line-number" data-line-number="458"></td>
- <td id="LC458" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Up to Unicode 3.0.1 we took the Combining property from the PropList.txt</span></td>
- </tr>
- <tr>
- <td id="L459" class="blob-num js-line-number" data-line-number="459"></td>
- <td id="LC459" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> file. In 3.0.1 it was identical to the union of the general categories</span></td>
- </tr>
- <tr>
- <td id="L460" class="blob-num js-line-number" data-line-number="460"></td>
- <td id="LC460" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> "Mn", "Mc", "Me". In Unicode 3.1 this property has been dropped from the</span></td>
- </tr>
- <tr>
- <td id="L461" class="blob-num js-line-number" data-line-number="461"></td>
- <td id="LC461" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> PropList.txt file, so we take the latter definition. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L462" class="blob-num js-line-number" data-line-number="462"></td>
- <td id="LC462" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> (unicode_attributes[ch].<span class="pl-smi">name</span> != <span class="pl-c1">NULL</span></td>
- </tr>
- <tr>
- <td id="L463" class="blob-num js-line-number" data-line-number="463"></td>
- <td id="LC463" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">0</span>] == <span class="pl-s"><span class="pl-pds">'</span>M<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L464" class="blob-num js-line-number" data-line-number="464"></td>
- <td id="LC464" class="blob-code blob-code-inner js-file-line"> && (unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>n<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L465" class="blob-num js-line-number" data-line-number="465"></td>
- <td id="LC465" class="blob-code blob-code-inner js-file-line"> || unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>c<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L466" class="blob-num js-line-number" data-line-number="466"></td>
- <td id="LC466" class="blob-code blob-code-inner js-file-line"> || unicode_attributes[ch].<span class="pl-smi">category</span>[<span class="pl-c1">1</span>] == <span class="pl-s"><span class="pl-pds">'</span>e<span class="pl-pds">'</span></span>));</td>
- </tr>
- <tr>
- <td id="L467" class="blob-num js-line-number" data-line-number="467"></td>
- <td id="LC467" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L468" class="blob-num js-line-number" data-line-number="468"></td>
- <td id="LC468" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L469" class="blob-num js-line-number" data-line-number="469"></td>
- <td id="LC469" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">bool</span></td>
- </tr>
- <tr>
- <td id="L470" class="blob-num js-line-number" data-line-number="470"></td>
- <td id="LC470" class="blob-code blob-code-inner js-file-line"><span class="pl-en">is_combining_level3</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch)</td>
- </tr>
- <tr>
- <td id="L471" class="blob-num js-line-number" data-line-number="471"></td>
- <td id="LC471" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L472" class="blob-num js-line-number" data-line-number="472"></td>
- <td id="LC472" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-c1">is_combining</span> (ch)</td>
- </tr>
- <tr>
- <td id="L473" class="blob-num js-line-number" data-line-number="473"></td>
- <td id="LC473" class="blob-code blob-code-inner js-file-line"> && !(unicode_attributes[ch].<span class="pl-smi">combining</span>[<span class="pl-c1">0</span>] != <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\0</span><span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L474" class="blob-num js-line-number" data-line-number="474"></td>
- <td id="LC474" class="blob-code blob-code-inner js-file-line"> && unicode_attributes[ch].<span class="pl-smi">combining</span>[<span class="pl-c1">0</span>] != <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span></td>
- </tr>
- <tr>
- <td id="L475" class="blob-num js-line-number" data-line-number="475"></td>
- <td id="LC475" class="blob-code blob-code-inner js-file-line"> && <span class="pl-c1">strtoul</span> (unicode_attributes[ch].<span class="pl-smi">combining</span>, <span class="pl-c1">NULL</span>, <span class="pl-c1">10</span>) >= <span class="pl-c1">200</span>);</td>
- </tr>
- <tr>
- <td id="L476" class="blob-num js-line-number" data-line-number="476"></td>
- <td id="LC476" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L477" class="blob-num js-line-number" data-line-number="477"></td>
- <td id="LC477" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L478" class="blob-num js-line-number" data-line-number="478"></td>
- <td id="LC478" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Return the UCS symbol string for a Unicode character. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L479" class="blob-num js-line-number" data-line-number="479"></td>
- <td id="LC479" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">const</span> <span class="pl-k">char</span> *</td>
- </tr>
- <tr>
- <td id="L480" class="blob-num js-line-number" data-line-number="480"></td>
- <td id="LC480" class="blob-code blob-code-inner js-file-line"><span class="pl-en">ucs_symbol</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> i)</td>
- </tr>
- <tr>
- <td id="L481" class="blob-num js-line-number" data-line-number="481"></td>
- <td id="LC481" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L482" class="blob-num js-line-number" data-line-number="482"></td>
- <td id="LC482" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">static</span> <span class="pl-k">char</span> buf[<span class="pl-c1">11</span>+<span class="pl-c1">1</span>];</td>
- </tr>
- <tr>
- <td id="L483" class="blob-num js-line-number" data-line-number="483"></td>
- <td id="LC483" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L484" class="blob-num js-line-number" data-line-number="484"></td>
- <td id="LC484" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">sprintf</span> (buf, (i < <span class="pl-c1">0x10000</span> ? <span class="pl-s"><span class="pl-pds">"</span><U<span class="pl-c1">%04X</span>><span class="pl-pds">"</span></span> : <span class="pl-s"><span class="pl-pds">"</span><U<span class="pl-c1">%08X</span>><span class="pl-pds">"</span></span>), i);</td>
- </tr>
- <tr>
- <td id="L485" class="blob-num js-line-number" data-line-number="485"></td>
- <td id="LC485" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> buf;</td>
- </tr>
- <tr>
- <td id="L486" class="blob-num js-line-number" data-line-number="486"></td>
- <td id="LC486" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L487" class="blob-num js-line-number" data-line-number="487"></td>
- <td id="LC487" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L488" class="blob-num js-line-number" data-line-number="488"></td>
- <td id="LC488" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Return the UCS symbol range string for a Unicode characters interval. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L489" class="blob-num js-line-number" data-line-number="489"></td>
- <td id="LC489" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">const</span> <span class="pl-k">char</span> *</td>
- </tr>
- <tr>
- <td id="L490" class="blob-num js-line-number" data-line-number="490"></td>
- <td id="LC490" class="blob-code blob-code-inner js-file-line"><span class="pl-en">ucs_symbol_range</span> (<span class="pl-k">unsigned</span> <span class="pl-k">int</span> low, <span class="pl-k">unsigned</span> <span class="pl-k">int</span> high)</td>
- </tr>
- <tr>
- <td id="L491" class="blob-num js-line-number" data-line-number="491"></td>
- <td id="LC491" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L492" class="blob-num js-line-number" data-line-number="492"></td>
- <td id="LC492" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">static</span> <span class="pl-k">char</span> buf[<span class="pl-c1">24</span>+<span class="pl-c1">1</span>];</td>
- </tr>
- <tr>
- <td id="L493" class="blob-num js-line-number" data-line-number="493"></td>
- <td id="LC493" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L494" class="blob-num js-line-number" data-line-number="494"></td>
- <td id="LC494" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">strcpy</span> (buf, <span class="pl-c1">ucs_symbol</span> (low));</td>
- </tr>
- <tr>
- <td id="L495" class="blob-num js-line-number" data-line-number="495"></td>
- <td id="LC495" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">strcat</span> (buf, <span class="pl-s"><span class="pl-pds">"</span>..<span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L496" class="blob-num js-line-number" data-line-number="496"></td>
- <td id="LC496" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">strcat</span> (buf, <span class="pl-c1">ucs_symbol</span> (high));</td>
- </tr>
- <tr>
- <td id="L497" class="blob-num js-line-number" data-line-number="497"></td>
- <td id="LC497" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> buf;</td>
- </tr>
- <tr>
- <td id="L498" class="blob-num js-line-number" data-line-number="498"></td>
- <td id="LC498" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L499" class="blob-num js-line-number" data-line-number="499"></td>
- <td id="LC499" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L500" class="blob-num js-line-number" data-line-number="500"></td>
- <td id="LC500" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Output a character class (= property) table. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L501" class="blob-num js-line-number" data-line-number="501"></td>
- <td id="LC501" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L502" class="blob-num js-line-number" data-line-number="502"></td>
- <td id="LC502" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">void</span></td>
- </tr>
- <tr>
- <td id="L503" class="blob-num js-line-number" data-line-number="503"></td>
- <td id="LC503" class="blob-code blob-code-inner js-file-line"><span class="pl-en">output_charclass</span> (<span class="pl-c1">FILE</span> *stream, <span class="pl-k">const</span> <span class="pl-k">char</span> *classname,</td>
- </tr>
- <tr>
- <td id="L504" class="blob-num js-line-number" data-line-number="504"></td>
- <td id="LC504" class="blob-code blob-code-inner js-file-line"> <span class="pl-en">bool</span> (*func) (<span class="pl-k">unsigned</span> <span class="pl-k">int</span>))</td>
- </tr>
- <tr>
- <td id="L505" class="blob-num js-line-number" data-line-number="505"></td>
- <td id="LC505" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L506" class="blob-num js-line-number" data-line-number="506"></td>
- <td id="LC506" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> table[<span class="pl-c1">0x110000</span>];</td>
- </tr>
- <tr>
- <td id="L507" class="blob-num js-line-number" data-line-number="507"></td>
- <td id="LC507" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">unsigned</span> <span class="pl-k">int</span> i;</td>
- </tr>
- <tr>
- <td id="L508" class="blob-num js-line-number" data-line-number="508"></td>
- <td id="LC508" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">bool</span> need_semicolon;</td>
- </tr>
- <tr>
- <td id="L509" class="blob-num js-line-number" data-line-number="509"></td>
- <td id="LC509" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">int</span> max_column = <span class="pl-c1">75</span>;</td>
- </tr>
- <tr>
- <td id="L510" class="blob-num js-line-number" data-line-number="510"></td>
- <td id="LC510" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">int</span> column;</td>
- </tr>
- <tr>
- <td id="L511" class="blob-num js-line-number" data-line-number="511"></td>
- <td id="LC511" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L512" class="blob-num js-line-number" data-line-number="512"></td>
- <td id="LC512" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">for</span> (i = <span class="pl-c1">0</span>; i < <span class="pl-c1">0x110000</span>; i++)</td>
- </tr>
- <tr>
- <td id="L513" class="blob-num js-line-number" data-line-number="513"></td>
- <td id="LC513" class="blob-code blob-code-inner js-file-line"> table[i] = (<span class="pl-k">int</span>) <span class="pl-c1">func</span> (i);</td>
- </tr>
- <tr>
- <td id="L514" class="blob-num js-line-number" data-line-number="514"></td>
- <td id="LC514" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L515" class="blob-num js-line-number" data-line-number="515"></td>
- <td id="LC515" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> <span class="pl-pds">"</span></span>, classname);</td>
- </tr>
- <tr>
- <td id="L516" class="blob-num js-line-number" data-line-number="516"></td>
- <td id="LC516" class="blob-code blob-code-inner js-file-line"> need_semicolon = <span class="pl-c1">false</span>;</td>
- </tr>
- <tr>
- <td id="L517" class="blob-num js-line-number" data-line-number="517"></td>
- <td id="LC517" class="blob-code blob-code-inner js-file-line"> column = <span class="pl-c1">1000</span>;</td>
- </tr>
- <tr>
- <td id="L518" class="blob-num js-line-number" data-line-number="518"></td>
- <td id="LC518" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">for</span> (i = <span class="pl-c1">0</span>; i < <span class="pl-c1">0x110000</span>; )</td>
- </tr>
- <tr>
- <td id="L519" class="blob-num js-line-number" data-line-number="519"></td>
- <td id="LC519" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L520" class="blob-num js-line-number" data-line-number="520"></td>
- <td id="LC520" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (!table[i])</td>
- </tr>
- <tr>
- <td id="L521" class="blob-num js-line-number" data-line-number="521"></td>
- <td id="LC521" class="blob-code blob-code-inner js-file-line"> i++;</td>
- </tr>
- <tr>
- <td id="L522" class="blob-num js-line-number" data-line-number="522"></td>
- <td id="LC522" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">else</span></td>
- </tr>
- <tr>
- <td id="L523" class="blob-num js-line-number" data-line-number="523"></td>
- <td id="LC523" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L524" class="blob-num js-line-number" data-line-number="524"></td>
- <td id="LC524" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">unsigned</span> <span class="pl-k">int</span> low, high;</td>
- </tr>
- <tr>
- <td id="L525" class="blob-num js-line-number" data-line-number="525"></td>
- <td id="LC525" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> buf[<span class="pl-c1">25</span>];</td>
- </tr>
- <tr>
- <td id="L526" class="blob-num js-line-number" data-line-number="526"></td>
- <td id="LC526" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L527" class="blob-num js-line-number" data-line-number="527"></td>
- <td id="LC527" class="blob-code blob-code-inner js-file-line"> low = i;</td>
- </tr>
- <tr>
- <td id="L528" class="blob-num js-line-number" data-line-number="528"></td>
- <td id="LC528" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">do</span></td>
- </tr>
- <tr>
- <td id="L529" class="blob-num js-line-number" data-line-number="529"></td>
- <td id="LC529" class="blob-code blob-code-inner js-file-line"> i++;</td>
- </tr>
- <tr>
- <td id="L530" class="blob-num js-line-number" data-line-number="530"></td>
- <td id="LC530" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">while</span> (i < <span class="pl-c1">0x110000</span> && table[i]);</td>
- </tr>
- <tr>
- <td id="L531" class="blob-num js-line-number" data-line-number="531"></td>
- <td id="LC531" class="blob-code blob-code-inner js-file-line"> high = i - <span class="pl-c1">1</span>;</td>
- </tr>
- <tr>
- <td id="L532" class="blob-num js-line-number" data-line-number="532"></td>
- <td id="LC532" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L533" class="blob-num js-line-number" data-line-number="533"></td>
- <td id="LC533" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (low == high)</td>
- </tr>
- <tr>
- <td id="L534" class="blob-num js-line-number" data-line-number="534"></td>
- <td id="LC534" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">strcpy</span> (buf, <span class="pl-c1">ucs_symbol</span> (low));</td>
- </tr>
- <tr>
- <td id="L535" class="blob-num js-line-number" data-line-number="535"></td>
- <td id="LC535" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">else</span></td>
- </tr>
- <tr>
- <td id="L536" class="blob-num js-line-number" data-line-number="536"></td>
- <td id="LC536" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">strcpy</span> (buf, <span class="pl-c1">ucs_symbol_range</span> (low, high));</td>
- </tr>
- <tr>
- <td id="L537" class="blob-num js-line-number" data-line-number="537"></td>
- <td id="LC537" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L538" class="blob-num js-line-number" data-line-number="538"></td>
- <td id="LC538" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (need_semicolon)</td>
- </tr>
- <tr>
- <td id="L539" class="blob-num js-line-number" data-line-number="539"></td>
- <td id="LC539" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L540" class="blob-num js-line-number" data-line-number="540"></td>
- <td id="LC540" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>;<span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L541" class="blob-num js-line-number" data-line-number="541"></td>
- <td id="LC541" class="blob-code blob-code-inner js-file-line"> column++;</td>
- </tr>
- <tr>
- <td id="L542" class="blob-num js-line-number" data-line-number="542"></td>
- <td id="LC542" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L543" class="blob-num js-line-number" data-line-number="543"></td>
- <td id="LC543" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L544" class="blob-num js-line-number" data-line-number="544"></td>
- <td id="LC544" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (column + <span class="pl-c1">strlen</span> (buf) > max_column)</td>
- </tr>
- <tr>
- <td id="L545" class="blob-num js-line-number" data-line-number="545"></td>
- <td id="LC545" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L546" class="blob-num js-line-number" data-line-number="546"></td>
- <td id="LC546" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>/<span class="pl-cce">\n</span> <span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L547" class="blob-num js-line-number" data-line-number="547"></td>
- <td id="LC547" class="blob-code blob-code-inner js-file-line"> column = <span class="pl-c1">3</span>;</td>
- </tr>
- <tr>
- <td id="L548" class="blob-num js-line-number" data-line-number="548"></td>
- <td id="LC548" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L549" class="blob-num js-line-number" data-line-number="549"></td>
- <td id="LC549" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L550" class="blob-num js-line-number" data-line-number="550"></td>
- <td id="LC550" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span><span class="pl-pds">"</span></span>, buf);</td>
- </tr>
- <tr>
- <td id="L551" class="blob-num js-line-number" data-line-number="551"></td>
- <td id="LC551" class="blob-code blob-code-inner js-file-line"> column += <span class="pl-c1">strlen</span> (buf);</td>
- </tr>
- <tr>
- <td id="L552" class="blob-num js-line-number" data-line-number="552"></td>
- <td id="LC552" class="blob-code blob-code-inner js-file-line"> need_semicolon = <span class="pl-c1">true</span>;</td>
- </tr>
- <tr>
- <td id="L553" class="blob-num js-line-number" data-line-number="553"></td>
- <td id="LC553" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L554" class="blob-num js-line-number" data-line-number="554"></td>
- <td id="LC554" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L555" class="blob-num js-line-number" data-line-number="555"></td>
- <td id="LC555" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L556" class="blob-num js-line-number" data-line-number="556"></td>
- <td id="LC556" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L557" class="blob-num js-line-number" data-line-number="557"></td>
- <td id="LC557" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L558" class="blob-num js-line-number" data-line-number="558"></td>
- <td id="LC558" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Output a character mapping table. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L559" class="blob-num js-line-number" data-line-number="559"></td>
- <td id="LC559" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L560" class="blob-num js-line-number" data-line-number="560"></td>
- <td id="LC560" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">void</span></td>
- </tr>
- <tr>
- <td id="L561" class="blob-num js-line-number" data-line-number="561"></td>
- <td id="LC561" class="blob-code blob-code-inner js-file-line"><span class="pl-en">output_charmap</span> (<span class="pl-c1">FILE</span> *stream, <span class="pl-k">const</span> <span class="pl-k">char</span> *mapname,</td>
- </tr>
- <tr>
- <td id="L562" class="blob-num js-line-number" data-line-number="562"></td>
- <td id="LC562" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">unsigned</span> <span class="pl-en">int</span> (*func) (<span class="pl-k">unsigned</span> <span class="pl-k">int</span>))</td>
- </tr>
- <tr>
- <td id="L563" class="blob-num js-line-number" data-line-number="563"></td>
- <td id="LC563" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L564" class="blob-num js-line-number" data-line-number="564"></td>
- <td id="LC564" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> table[<span class="pl-c1">0x110000</span>];</td>
- </tr>
- <tr>
- <td id="L565" class="blob-num js-line-number" data-line-number="565"></td>
- <td id="LC565" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">unsigned</span> <span class="pl-k">int</span> i;</td>
- </tr>
- <tr>
- <td id="L566" class="blob-num js-line-number" data-line-number="566"></td>
- <td id="LC566" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">bool</span> need_semicolon;</td>
- </tr>
- <tr>
- <td id="L567" class="blob-num js-line-number" data-line-number="567"></td>
- <td id="LC567" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">int</span> max_column = <span class="pl-c1">75</span>;</td>
- </tr>
- <tr>
- <td id="L568" class="blob-num js-line-number" data-line-number="568"></td>
- <td id="LC568" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">int</span> column;</td>
- </tr>
- <tr>
- <td id="L569" class="blob-num js-line-number" data-line-number="569"></td>
- <td id="LC569" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L570" class="blob-num js-line-number" data-line-number="570"></td>
- <td id="LC570" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">for</span> (i = <span class="pl-c1">0</span>; i < <span class="pl-c1">0x110000</span>; i++)</td>
- </tr>
- <tr>
- <td id="L571" class="blob-num js-line-number" data-line-number="571"></td>
- <td id="LC571" class="blob-code blob-code-inner js-file-line"> table[i] = (<span class="pl-c1">func</span> (i) != i);</td>
- </tr>
- <tr>
- <td id="L572" class="blob-num js-line-number" data-line-number="572"></td>
- <td id="LC572" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L573" class="blob-num js-line-number" data-line-number="573"></td>
- <td id="LC573" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> <span class="pl-pds">"</span></span>, mapname);</td>
- </tr>
- <tr>
- <td id="L574" class="blob-num js-line-number" data-line-number="574"></td>
- <td id="LC574" class="blob-code blob-code-inner js-file-line"> need_semicolon = <span class="pl-c1">false</span>;</td>
- </tr>
- <tr>
- <td id="L575" class="blob-num js-line-number" data-line-number="575"></td>
- <td id="LC575" class="blob-code blob-code-inner js-file-line"> column = <span class="pl-c1">1000</span>;</td>
- </tr>
- <tr>
- <td id="L576" class="blob-num js-line-number" data-line-number="576"></td>
- <td id="LC576" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">for</span> (i = <span class="pl-c1">0</span>; i < <span class="pl-c1">0x110000</span>; i++)</td>
- </tr>
- <tr>
- <td id="L577" class="blob-num js-line-number" data-line-number="577"></td>
- <td id="LC577" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (table[i])</td>
- </tr>
- <tr>
- <td id="L578" class="blob-num js-line-number" data-line-number="578"></td>
- <td id="LC578" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L579" class="blob-num js-line-number" data-line-number="579"></td>
- <td id="LC579" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> buf[<span class="pl-c1">25</span>+<span class="pl-c1">1</span>];</td>
- </tr>
- <tr>
- <td id="L580" class="blob-num js-line-number" data-line-number="580"></td>
- <td id="LC580" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L581" class="blob-num js-line-number" data-line-number="581"></td>
- <td id="LC581" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">strcpy</span> (buf, <span class="pl-s"><span class="pl-pds">"</span>(<span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L582" class="blob-num js-line-number" data-line-number="582"></td>
- <td id="LC582" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">strcat</span> (buf, <span class="pl-c1">ucs_symbol</span> (i));</td>
- </tr>
- <tr>
- <td id="L583" class="blob-num js-line-number" data-line-number="583"></td>
- <td id="LC583" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">strcat</span> (buf, <span class="pl-s"><span class="pl-pds">"</span>,<span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L584" class="blob-num js-line-number" data-line-number="584"></td>
- <td id="LC584" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">strcat</span> (buf, <span class="pl-c1">ucs_symbol</span> (<span class="pl-c1">func</span> (i)));</td>
- </tr>
- <tr>
- <td id="L585" class="blob-num js-line-number" data-line-number="585"></td>
- <td id="LC585" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">strcat</span> (buf, <span class="pl-s"><span class="pl-pds">"</span>)<span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L586" class="blob-num js-line-number" data-line-number="586"></td>
- <td id="LC586" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L587" class="blob-num js-line-number" data-line-number="587"></td>
- <td id="LC587" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (need_semicolon)</td>
- </tr>
- <tr>
- <td id="L588" class="blob-num js-line-number" data-line-number="588"></td>
- <td id="LC588" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L589" class="blob-num js-line-number" data-line-number="589"></td>
- <td id="LC589" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>;<span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L590" class="blob-num js-line-number" data-line-number="590"></td>
- <td id="LC590" class="blob-code blob-code-inner js-file-line"> column++;</td>
- </tr>
- <tr>
- <td id="L591" class="blob-num js-line-number" data-line-number="591"></td>
- <td id="LC591" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L592" class="blob-num js-line-number" data-line-number="592"></td>
- <td id="LC592" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L593" class="blob-num js-line-number" data-line-number="593"></td>
- <td id="LC593" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (column + <span class="pl-c1">strlen</span> (buf) > max_column)</td>
- </tr>
- <tr>
- <td id="L594" class="blob-num js-line-number" data-line-number="594"></td>
- <td id="LC594" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L595" class="blob-num js-line-number" data-line-number="595"></td>
- <td id="LC595" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>/<span class="pl-cce">\n</span> <span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L596" class="blob-num js-line-number" data-line-number="596"></td>
- <td id="LC596" class="blob-code blob-code-inner js-file-line"> column = <span class="pl-c1">3</span>;</td>
- </tr>
- <tr>
- <td id="L597" class="blob-num js-line-number" data-line-number="597"></td>
- <td id="LC597" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L598" class="blob-num js-line-number" data-line-number="598"></td>
- <td id="LC598" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L599" class="blob-num js-line-number" data-line-number="599"></td>
- <td id="LC599" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span><span class="pl-pds">"</span></span>, buf);</td>
- </tr>
- <tr>
- <td id="L600" class="blob-num js-line-number" data-line-number="600"></td>
- <td id="LC600" class="blob-code blob-code-inner js-file-line"> column += <span class="pl-c1">strlen</span> (buf);</td>
- </tr>
- <tr>
- <td id="L601" class="blob-num js-line-number" data-line-number="601"></td>
- <td id="LC601" class="blob-code blob-code-inner js-file-line"> need_semicolon = <span class="pl-c1">true</span>;</td>
- </tr>
- <tr>
- <td id="L602" class="blob-num js-line-number" data-line-number="602"></td>
- <td id="LC602" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L603" class="blob-num js-line-number" data-line-number="603"></td>
- <td id="LC603" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L604" class="blob-num js-line-number" data-line-number="604"></td>
- <td id="LC604" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L605" class="blob-num js-line-number" data-line-number="605"></td>
- <td id="LC605" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L606" class="blob-num js-line-number" data-line-number="606"></td>
- <td id="LC606" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Output the width table. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L607" class="blob-num js-line-number" data-line-number="607"></td>
- <td id="LC607" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L608" class="blob-num js-line-number" data-line-number="608"></td>
- <td id="LC608" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">void</span></td>
- </tr>
- <tr>
- <td id="L609" class="blob-num js-line-number" data-line-number="609"></td>
- <td id="LC609" class="blob-code blob-code-inner js-file-line"><span class="pl-en">output_widthmap</span> (<span class="pl-c1">FILE</span> *stream)</td>
- </tr>
- <tr>
- <td id="L610" class="blob-num js-line-number" data-line-number="610"></td>
- <td id="LC610" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L611" class="blob-num js-line-number" data-line-number="611"></td>
- <td id="LC611" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L612" class="blob-num js-line-number" data-line-number="612"></td>
- <td id="LC612" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L613" class="blob-num js-line-number" data-line-number="613"></td>
- <td id="LC613" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span> Output the tables to the given file. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L614" class="blob-num js-line-number" data-line-number="614"></td>
- <td id="LC614" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L615" class="blob-num js-line-number" data-line-number="615"></td>
- <td id="LC615" class="blob-code blob-code-inner js-file-line"><span class="pl-k">static</span> <span class="pl-k">void</span></td>
- </tr>
- <tr>
- <td id="L616" class="blob-num js-line-number" data-line-number="616"></td>
- <td id="LC616" class="blob-code blob-code-inner js-file-line"><span class="pl-en">output_tables</span> (<span class="pl-k">const</span> <span class="pl-k">char</span> *filename, <span class="pl-k">const</span> <span class="pl-k">char</span> *version)</td>
- </tr>
- <tr>
- <td id="L617" class="blob-num js-line-number" data-line-number="617"></td>
- <td id="LC617" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L618" class="blob-num js-line-number" data-line-number="618"></td>
- <td id="LC618" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">FILE</span> *stream;</td>
- </tr>
- <tr>
- <td id="L619" class="blob-num js-line-number" data-line-number="619"></td>
- <td id="LC619" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">unsigned</span> <span class="pl-k">int</span> ch;</td>
- </tr>
- <tr>
- <td id="L620" class="blob-num js-line-number" data-line-number="620"></td>
- <td id="LC620" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L621" class="blob-num js-line-number" data-line-number="621"></td>
- <td id="LC621" class="blob-code blob-code-inner js-file-line"> stream = <span class="pl-c1">fopen</span> (filename, <span class="pl-s"><span class="pl-pds">"</span>w<span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L622" class="blob-num js-line-number" data-line-number="622"></td>
- <td id="LC622" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (stream == <span class="pl-c1">NULL</span>)</td>
- </tr>
- <tr>
- <td id="L623" class="blob-num js-line-number" data-line-number="623"></td>
- <td id="LC623" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L624" class="blob-num js-line-number" data-line-number="624"></td>
- <td id="LC624" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span>cannot open '<span class="pl-c1">%s</span>' for writing<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, filename);</td>
- </tr>
- <tr>
- <td id="L625" class="blob-num js-line-number" data-line-number="625"></td>
- <td id="LC625" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">exit</span> (<span class="pl-c1">1</span>);</td>
- </tr>
- <tr>
- <td id="L626" class="blob-num js-line-number" data-line-number="626"></td>
- <td id="LC626" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L627" class="blob-num js-line-number" data-line-number="627"></td>
- <td id="LC627" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L628" class="blob-num js-line-number" data-line-number="628"></td>
- <td id="LC628" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>escape_char /<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L629" class="blob-num js-line-number" data-line-number="629"></td>
- <td id="LC629" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>comment_char <span class="pl-c1">%%</span><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L630" class="blob-num js-line-number" data-line-number="630"></td>
- <td id="LC630" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L631" class="blob-num js-line-number" data-line-number="631"></td>
- <td id="LC631" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%%</span> Generated automatically by gen-unicode-ctype for Unicode <span class="pl-c1">%s</span>.<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>,</td>
- </tr>
- <tr>
- <td id="L632" class="blob-num js-line-number" data-line-number="632"></td>
- <td id="LC632" class="blob-code blob-code-inner js-file-line"> version);</td>
- </tr>
- <tr>
- <td id="L633" class="blob-num js-line-number" data-line-number="633"></td>
- <td id="LC633" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L634" class="blob-num js-line-number" data-line-number="634"></td>
- <td id="LC634" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L635" class="blob-num js-line-number" data-line-number="635"></td>
- <td id="LC635" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>LC_IDENTIFICATION<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L636" class="blob-num js-line-number" data-line-number="636"></td>
- <td id="LC636" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>title <span class="pl-cce">\"</span>Unicode <span class="pl-c1">%s</span> FDCC-set<span class="pl-cce">\"\n</span><span class="pl-pds">"</span></span>, version);</td>
- </tr>
- <tr>
- <td id="L637" class="blob-num js-line-number" data-line-number="637"></td>
- <td id="LC637" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>source <span class="pl-cce">\"</span>UnicodeData.txt, PropList.txt<span class="pl-cce">\"\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L638" class="blob-num js-line-number" data-line-number="638"></td>
- <td id="LC638" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>address <span class="pl-cce">\"\"\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L639" class="blob-num js-line-number" data-line-number="639"></td>
- <td id="LC639" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>contact <span class="pl-cce">\"\"\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L640" class="blob-num js-line-number" data-line-number="640"></td>
- <td id="LC640" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>email <span class="pl-cce">\"</span>bug-glibc-locales@gnu.org<span class="pl-cce">\"\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L641" class="blob-num js-line-number" data-line-number="641"></td>
- <td id="LC641" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>tel <span class="pl-cce">\"\"\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L642" class="blob-num js-line-number" data-line-number="642"></td>
- <td id="LC642" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>fax <span class="pl-cce">\"\"\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L643" class="blob-num js-line-number" data-line-number="643"></td>
- <td id="LC643" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>language <span class="pl-cce">\"\"\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L644" class="blob-num js-line-number" data-line-number="644"></td>
- <td id="LC644" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>territory <span class="pl-cce">\"</span>Earth<span class="pl-cce">\"\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L645" class="blob-num js-line-number" data-line-number="645"></td>
- <td id="LC645" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>revision <span class="pl-cce">\"</span><span class="pl-c1">%s</span><span class="pl-cce">\"\n</span><span class="pl-pds">"</span></span>, version);</td>
- </tr>
- <tr>
- <td id="L646" class="blob-num js-line-number" data-line-number="646"></td>
- <td id="LC646" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L647" class="blob-num js-line-number" data-line-number="647"></td>
- <td id="LC647" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">time_t</span> now;</td>
- </tr>
- <tr>
- <td id="L648" class="blob-num js-line-number" data-line-number="648"></td>
- <td id="LC648" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">char</span> date[<span class="pl-c1">11</span>];</td>
- </tr>
- <tr>
- <td id="L649" class="blob-num js-line-number" data-line-number="649"></td>
- <td id="LC649" class="blob-code blob-code-inner js-file-line"> now = <span class="pl-c1">time</span> (<span class="pl-c1">NULL</span>);</td>
- </tr>
- <tr>
- <td id="L650" class="blob-num js-line-number" data-line-number="650"></td>
- <td id="LC650" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">strftime</span> (date, <span class="pl-k">sizeof</span> (date), <span class="pl-s"><span class="pl-pds">"</span>%Y-%m-<span class="pl-c1">%d</span><span class="pl-pds">"</span></span>, <span class="pl-c1">gmtime</span> (&now));</td>
- </tr>
- <tr>
- <td id="L651" class="blob-num js-line-number" data-line-number="651"></td>
- <td id="LC651" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>date <span class="pl-cce">\"</span><span class="pl-c1">%s</span><span class="pl-cce">\"\n</span><span class="pl-pds">"</span></span>, date);</td>
- </tr>
- <tr>
- <td id="L652" class="blob-num js-line-number" data-line-number="652"></td>
- <td id="LC652" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L653" class="blob-num js-line-number" data-line-number="653"></td>
- <td id="LC653" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>category <span class="pl-cce">\"</span>unicode:2001<span class="pl-cce">\"</span>;LC_CTYPE<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L654" class="blob-num js-line-number" data-line-number="654"></td>
- <td id="LC654" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>END LC_IDENTIFICATION<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L655" class="blob-num js-line-number" data-line-number="655"></td>
- <td id="LC655" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L656" class="blob-num js-line-number" data-line-number="656"></td>
- <td id="LC656" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L657" class="blob-num js-line-number" data-line-number="657"></td>
- <td id="LC657" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> Verifications. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L658" class="blob-num js-line-number" data-line-number="658"></td>
- <td id="LC658" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">for</span> (ch = <span class="pl-c1">0</span>; ch < <span class="pl-c1">0x110000</span>; ch++)</td>
- </tr>
- <tr>
- <td id="L659" class="blob-num js-line-number" data-line-number="659"></td>
- <td id="LC659" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L660" class="blob-num js-line-number" data-line-number="660"></td>
- <td id="LC660" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> toupper restriction: "Only characters specified for the keywords</span></td>
- </tr>
- <tr>
- <td id="L661" class="blob-num js-line-number" data-line-number="661"></td>
- <td id="LC661" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> lower and upper shall be specified. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L662" class="blob-num js-line-number" data-line-number="662"></td>
- <td id="LC662" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">to_upper</span> (ch) != ch && !(<span class="pl-c1">is_lower</span> (ch) || <span class="pl-c1">is_upper</span> (ch)))</td>
- </tr>
- <tr>
- <td id="L663" class="blob-num js-line-number" data-line-number="663"></td>
- <td id="LC663" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr,</td>
- </tr>
- <tr>
- <td id="L664" class="blob-num js-line-number" data-line-number="664"></td>
- <td id="LC664" class="blob-code blob-code-inner js-file-line"> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is not upper|lower but toupper(0x<span class="pl-c1">%04X</span>) = 0x<span class="pl-c1">%04X</span><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>,</td>
- </tr>
- <tr>
- <td id="L665" class="blob-num js-line-number" data-line-number="665"></td>
- <td id="LC665" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">ucs_symbol</span> (ch), ch, <span class="pl-c1">to_upper</span> (ch));</td>
- </tr>
- <tr>
- <td id="L666" class="blob-num js-line-number" data-line-number="666"></td>
- <td id="LC666" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L667" class="blob-num js-line-number" data-line-number="667"></td>
- <td id="LC667" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> tolower restriction: "Only characters specified for the keywords</span></td>
- </tr>
- <tr>
- <td id="L668" class="blob-num js-line-number" data-line-number="668"></td>
- <td id="LC668" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> lower and upper shall be specified. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L669" class="blob-num js-line-number" data-line-number="669"></td>
- <td id="LC669" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">to_lower</span> (ch) != ch && !(<span class="pl-c1">is_lower</span> (ch) || <span class="pl-c1">is_upper</span> (ch)))</td>
- </tr>
- <tr>
- <td id="L670" class="blob-num js-line-number" data-line-number="670"></td>
- <td id="LC670" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr,</td>
- </tr>
- <tr>
- <td id="L671" class="blob-num js-line-number" data-line-number="671"></td>
- <td id="LC671" class="blob-code blob-code-inner js-file-line"> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is not upper|lower but tolower(0x<span class="pl-c1">%04X</span>) = 0x<span class="pl-c1">%04X</span><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>,</td>
- </tr>
- <tr>
- <td id="L672" class="blob-num js-line-number" data-line-number="672"></td>
- <td id="LC672" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">ucs_symbol</span> (ch), ch, <span class="pl-c1">to_lower</span> (ch));</td>
- </tr>
- <tr>
- <td id="L673" class="blob-num js-line-number" data-line-number="673"></td>
- <td id="LC673" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L674" class="blob-num js-line-number" data-line-number="674"></td>
- <td id="LC674" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> alpha restriction: "Characters classified as either upper or lower</span></td>
- </tr>
- <tr>
- <td id="L675" class="blob-num js-line-number" data-line-number="675"></td>
- <td id="LC675" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> shall automatically belong to this class. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L676" class="blob-num js-line-number" data-line-number="676"></td>
- <td id="LC676" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> ((<span class="pl-c1">is_lower</span> (ch) || <span class="pl-c1">is_upper</span> (ch)) && !<span class="pl-c1">is_alpha</span> (ch))</td>
- </tr>
- <tr>
- <td id="L677" class="blob-num js-line-number" data-line-number="677"></td>
- <td id="LC677" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is upper|lower but not alpha<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L678" class="blob-num js-line-number" data-line-number="678"></td>
- <td id="LC678" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L679" class="blob-num js-line-number" data-line-number="679"></td>
- <td id="LC679" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> alpha restriction: "No character specified for the keywords cntrl,</span></td>
- </tr>
- <tr>
- <td id="L680" class="blob-num js-line-number" data-line-number="680"></td>
- <td id="LC680" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> digit, punct or space shall be specified." <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L681" class="blob-num js-line-number" data-line-number="681"></td>
- <td id="LC681" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_alpha</span> (ch) && <span class="pl-c1">is_cntrl</span> (ch))</td>
- </tr>
- <tr>
- <td id="L682" class="blob-num js-line-number" data-line-number="682"></td>
- <td id="LC682" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is alpha and cntrl<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L683" class="blob-num js-line-number" data-line-number="683"></td>
- <td id="LC683" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_alpha</span> (ch) && <span class="pl-c1">is_digit</span> (ch))</td>
- </tr>
- <tr>
- <td id="L684" class="blob-num js-line-number" data-line-number="684"></td>
- <td id="LC684" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is alpha and digit<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L685" class="blob-num js-line-number" data-line-number="685"></td>
- <td id="LC685" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_alpha</span> (ch) && <span class="pl-c1">is_punct</span> (ch))</td>
- </tr>
- <tr>
- <td id="L686" class="blob-num js-line-number" data-line-number="686"></td>
- <td id="LC686" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is alpha and punct<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L687" class="blob-num js-line-number" data-line-number="687"></td>
- <td id="LC687" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_alpha</span> (ch) && <span class="pl-c1">is_space</span> (ch))</td>
- </tr>
- <tr>
- <td id="L688" class="blob-num js-line-number" data-line-number="688"></td>
- <td id="LC688" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is alpha and space<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L689" class="blob-num js-line-number" data-line-number="689"></td>
- <td id="LC689" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L690" class="blob-num js-line-number" data-line-number="690"></td>
- <td id="LC690" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> space restriction: "No character specified for the keywords upper,</span></td>
- </tr>
- <tr>
- <td id="L691" class="blob-num js-line-number" data-line-number="691"></td>
- <td id="LC691" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> lower, alpha, digit, graph or xdigit shall be specified."</span></td>
- </tr>
- <tr>
- <td id="L692" class="blob-num js-line-number" data-line-number="692"></td>
- <td id="LC692" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> upper, lower, alpha already checked above. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L693" class="blob-num js-line-number" data-line-number="693"></td>
- <td id="LC693" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_space</span> (ch) && <span class="pl-c1">is_digit</span> (ch))</td>
- </tr>
- <tr>
- <td id="L694" class="blob-num js-line-number" data-line-number="694"></td>
- <td id="LC694" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is space and digit<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L695" class="blob-num js-line-number" data-line-number="695"></td>
- <td id="LC695" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_space</span> (ch) && <span class="pl-c1">is_graph</span> (ch))</td>
- </tr>
- <tr>
- <td id="L696" class="blob-num js-line-number" data-line-number="696"></td>
- <td id="LC696" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is space and graph<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L697" class="blob-num js-line-number" data-line-number="697"></td>
- <td id="LC697" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_space</span> (ch) && <span class="pl-c1">is_xdigit</span> (ch))</td>
- </tr>
- <tr>
- <td id="L698" class="blob-num js-line-number" data-line-number="698"></td>
- <td id="LC698" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is space and xdigit<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L699" class="blob-num js-line-number" data-line-number="699"></td>
- <td id="LC699" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L700" class="blob-num js-line-number" data-line-number="700"></td>
- <td id="LC700" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> cntrl restriction: "No character specified for the keywords upper,</span></td>
- </tr>
- <tr>
- <td id="L701" class="blob-num js-line-number" data-line-number="701"></td>
- <td id="LC701" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> lower, alpha, digit, punct, graph, print or xdigit shall be</span></td>
- </tr>
- <tr>
- <td id="L702" class="blob-num js-line-number" data-line-number="702"></td>
- <td id="LC702" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> specified." upper, lower, alpha already checked above. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L703" class="blob-num js-line-number" data-line-number="703"></td>
- <td id="LC703" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_cntrl</span> (ch) && <span class="pl-c1">is_digit</span> (ch))</td>
- </tr>
- <tr>
- <td id="L704" class="blob-num js-line-number" data-line-number="704"></td>
- <td id="LC704" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is cntrl and digit<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L705" class="blob-num js-line-number" data-line-number="705"></td>
- <td id="LC705" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_cntrl</span> (ch) && <span class="pl-c1">is_punct</span> (ch))</td>
- </tr>
- <tr>
- <td id="L706" class="blob-num js-line-number" data-line-number="706"></td>
- <td id="LC706" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is cntrl and punct<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L707" class="blob-num js-line-number" data-line-number="707"></td>
- <td id="LC707" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_cntrl</span> (ch) && <span class="pl-c1">is_graph</span> (ch))</td>
- </tr>
- <tr>
- <td id="L708" class="blob-num js-line-number" data-line-number="708"></td>
- <td id="LC708" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is cntrl and graph<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L709" class="blob-num js-line-number" data-line-number="709"></td>
- <td id="LC709" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_cntrl</span> (ch) && <span class="pl-c1">is_print</span> (ch))</td>
- </tr>
- <tr>
- <td id="L710" class="blob-num js-line-number" data-line-number="710"></td>
- <td id="LC710" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is cntrl and print<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L711" class="blob-num js-line-number" data-line-number="711"></td>
- <td id="LC711" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_cntrl</span> (ch) && <span class="pl-c1">is_xdigit</span> (ch))</td>
- </tr>
- <tr>
- <td id="L712" class="blob-num js-line-number" data-line-number="712"></td>
- <td id="LC712" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is cntrl and xdigit<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L713" class="blob-num js-line-number" data-line-number="713"></td>
- <td id="LC713" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L714" class="blob-num js-line-number" data-line-number="714"></td>
- <td id="LC714" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> punct restriction: "No character specified for the keywords upper,</span></td>
- </tr>
- <tr>
- <td id="L715" class="blob-num js-line-number" data-line-number="715"></td>
- <td id="LC715" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> lower, alpha, digit, cntrl, xdigit or as the <space> character shall</span></td>
- </tr>
- <tr>
- <td id="L716" class="blob-num js-line-number" data-line-number="716"></td>
- <td id="LC716" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> be specified." upper, lower, alpha, cntrl already checked above. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L717" class="blob-num js-line-number" data-line-number="717"></td>
- <td id="LC717" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_punct</span> (ch) && <span class="pl-c1">is_digit</span> (ch))</td>
- </tr>
- <tr>
- <td id="L718" class="blob-num js-line-number" data-line-number="718"></td>
- <td id="LC718" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is punct and digit<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L719" class="blob-num js-line-number" data-line-number="719"></td>
- <td id="LC719" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_punct</span> (ch) && <span class="pl-c1">is_xdigit</span> (ch))</td>
- </tr>
- <tr>
- <td id="L720" class="blob-num js-line-number" data-line-number="720"></td>
- <td id="LC720" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is punct and xdigit<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L721" class="blob-num js-line-number" data-line-number="721"></td>
- <td id="LC721" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_punct</span> (ch) && (ch == <span class="pl-c1">0x0020</span>))</td>
- </tr>
- <tr>
- <td id="L722" class="blob-num js-line-number" data-line-number="722"></td>
- <td id="LC722" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is punct<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L723" class="blob-num js-line-number" data-line-number="723"></td>
- <td id="LC723" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L724" class="blob-num js-line-number" data-line-number="724"></td>
- <td id="LC724" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> graph restriction: "No character specified for the keyword cntrl</span></td>
- </tr>
- <tr>
- <td id="L725" class="blob-num js-line-number" data-line-number="725"></td>
- <td id="LC725" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> shall be specified." Already checked above. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L726" class="blob-num js-line-number" data-line-number="726"></td>
- <td id="LC726" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L727" class="blob-num js-line-number" data-line-number="727"></td>
- <td id="LC727" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> print restriction: "No character specified for the keyword cntrl</span></td>
- </tr>
- <tr>
- <td id="L728" class="blob-num js-line-number" data-line-number="728"></td>
- <td id="LC728" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> shall be specified." Already checked above. <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L729" class="blob-num js-line-number" data-line-number="729"></td>
- <td id="LC729" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L730" class="blob-num js-line-number" data-line-number="730"></td>
- <td id="LC730" class="blob-code blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">/*</span> graph - print relation: differ only in the <space> character.</span></td>
- </tr>
- <tr>
- <td id="L731" class="blob-num js-line-number" data-line-number="731"></td>
- <td id="LC731" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> How is this possible if there are more than one space character?!</span></td>
- </tr>
- <tr>
- <td id="L732" class="blob-num js-line-number" data-line-number="732"></td>
- <td id="LC732" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> I think susv2/xbd/locale.html should speak of "space characters",</span></td>
- </tr>
- <tr>
- <td id="L733" class="blob-num js-line-number" data-line-number="733"></td>
- <td id="LC733" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> not "space character". <span class="pl-c">*/</span></span></td>
- </tr>
- <tr>
- <td id="L734" class="blob-num js-line-number" data-line-number="734"></td>
- <td id="LC734" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">is_print</span> (ch) && !(<span class="pl-c1">is_graph</span> (ch) || <span class="pl-c"><span class="pl-c">/*</span> ch == 0x0020 <span class="pl-c">*/</span></span> <span class="pl-c1">is_space</span> (ch)))</td>
- </tr>
- <tr>
- <td id="L735" class="blob-num js-line-number" data-line-number="735"></td>
- <td id="LC735" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr,</td>
- </tr>
- <tr>
- <td id="L736" class="blob-num js-line-number" data-line-number="736"></td>
- <td id="LC736" class="blob-code blob-code-inner js-file-line"> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is print but not graph|<space><span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L737" class="blob-num js-line-number" data-line-number="737"></td>
- <td id="LC737" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (!<span class="pl-c1">is_print</span> (ch) && (<span class="pl-c1">is_graph</span> (ch) || ch == <span class="pl-c1">0x0020</span>))</td>
- </tr>
- <tr>
- <td id="L738" class="blob-num js-line-number" data-line-number="738"></td>
- <td id="LC738" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr,</td>
- </tr>
- <tr>
- <td id="L739" class="blob-num js-line-number" data-line-number="739"></td>
- <td id="LC739" class="blob-code blob-code-inner js-file-line"> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-c1">%s</span> is graph|<space> but not print<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, <span class="pl-c1">ucs_symbol</span> (ch));</td>
- </tr>
- <tr>
- <td id="L740" class="blob-num js-line-number" data-line-number="740"></td>
- <td id="LC740" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L741" class="blob-num js-line-number" data-line-number="741"></td>
- <td id="LC741" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L742" class="blob-num js-line-number" data-line-number="742"></td>
- <td id="LC742" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>LC_CTYPE<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L743" class="blob-num js-line-number" data-line-number="743"></td>
- <td id="LC743" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>upper<span class="pl-pds">"</span></span>, is_upper);</td>
- </tr>
- <tr>
- <td id="L744" class="blob-num js-line-number" data-line-number="744"></td>
- <td id="LC744" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>lower<span class="pl-pds">"</span></span>, is_lower);</td>
- </tr>
- <tr>
- <td id="L745" class="blob-num js-line-number" data-line-number="745"></td>
- <td id="LC745" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>alpha<span class="pl-pds">"</span></span>, is_alpha);</td>
- </tr>
- <tr>
- <td id="L746" class="blob-num js-line-number" data-line-number="746"></td>
- <td id="LC746" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>digit<span class="pl-pds">"</span></span>, is_digit);</td>
- </tr>
- <tr>
- <td id="L747" class="blob-num js-line-number" data-line-number="747"></td>
- <td id="LC747" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>outdigit<span class="pl-pds">"</span></span>, is_outdigit);</td>
- </tr>
- <tr>
- <td id="L748" class="blob-num js-line-number" data-line-number="748"></td>
- <td id="LC748" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>blank<span class="pl-pds">"</span></span>, is_blank);</td>
- </tr>
- <tr>
- <td id="L749" class="blob-num js-line-number" data-line-number="749"></td>
- <td id="LC749" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>space<span class="pl-pds">"</span></span>, is_space);</td>
- </tr>
- <tr>
- <td id="L750" class="blob-num js-line-number" data-line-number="750"></td>
- <td id="LC750" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>cntrl<span class="pl-pds">"</span></span>, is_cntrl);</td>
- </tr>
- <tr>
- <td id="L751" class="blob-num js-line-number" data-line-number="751"></td>
- <td id="LC751" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>punct<span class="pl-pds">"</span></span>, is_punct);</td>
- </tr>
- <tr>
- <td id="L752" class="blob-num js-line-number" data-line-number="752"></td>
- <td id="LC752" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>xdigit<span class="pl-pds">"</span></span>, is_xdigit);</td>
- </tr>
- <tr>
- <td id="L753" class="blob-num js-line-number" data-line-number="753"></td>
- <td id="LC753" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>graph<span class="pl-pds">"</span></span>, is_graph);</td>
- </tr>
- <tr>
- <td id="L754" class="blob-num js-line-number" data-line-number="754"></td>
- <td id="LC754" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>print<span class="pl-pds">"</span></span>, is_print);</td>
- </tr>
- <tr>
- <td id="L755" class="blob-num js-line-number" data-line-number="755"></td>
- <td id="LC755" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>class <span class="pl-cce">\"</span>combining<span class="pl-cce">\"</span>;<span class="pl-pds">"</span></span>, is_combining);</td>
- </tr>
- <tr>
- <td id="L756" class="blob-num js-line-number" data-line-number="756"></td>
- <td id="LC756" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charclass</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>class <span class="pl-cce">\"</span>combining_level3<span class="pl-cce">\"</span>;<span class="pl-pds">"</span></span>, is_combining_level3);</td>
- </tr>
- <tr>
- <td id="L757" class="blob-num js-line-number" data-line-number="757"></td>
- <td id="LC757" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charmap</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>toupper<span class="pl-pds">"</span></span>, to_upper);</td>
- </tr>
- <tr>
- <td id="L758" class="blob-num js-line-number" data-line-number="758"></td>
- <td id="LC758" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charmap</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>tolower<span class="pl-pds">"</span></span>, to_lower);</td>
- </tr>
- <tr>
- <td id="L759" class="blob-num js-line-number" data-line-number="759"></td>
- <td id="LC759" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_charmap</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>map <span class="pl-cce">\"</span>totitle<span class="pl-cce">\"</span>;<span class="pl-pds">"</span></span>, to_title);</td>
- </tr>
- <tr>
- <td id="L760" class="blob-num js-line-number" data-line-number="760"></td>
- <td id="LC760" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_widthmap</span> (stream);</td>
- </tr>
- <tr>
- <td id="L761" class="blob-num js-line-number" data-line-number="761"></td>
- <td id="LC761" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stream, <span class="pl-s"><span class="pl-pds">"</span>END LC_CTYPE<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>);</td>
- </tr>
- <tr>
- <td id="L762" class="blob-num js-line-number" data-line-number="762"></td>
- <td id="LC762" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L763" class="blob-num js-line-number" data-line-number="763"></td>
- <td id="LC763" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-c1">ferror</span> (stream) || <span class="pl-c1">fclose</span> (stream))</td>
- </tr>
- <tr>
- <td id="L764" class="blob-num js-line-number" data-line-number="764"></td>
- <td id="LC764" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L765" class="blob-num js-line-number" data-line-number="765"></td>
- <td id="LC765" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span>error writing to '<span class="pl-c1">%s</span>'<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, filename);</td>
- </tr>
- <tr>
- <td id="L766" class="blob-num js-line-number" data-line-number="766"></td>
- <td id="LC766" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">exit</span> (<span class="pl-c1">1</span>);</td>
- </tr>
- <tr>
- <td id="L767" class="blob-num js-line-number" data-line-number="767"></td>
- <td id="LC767" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L768" class="blob-num js-line-number" data-line-number="768"></td>
- <td id="LC768" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- <tr>
- <td id="L769" class="blob-num js-line-number" data-line-number="769"></td>
- <td id="LC769" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L770" class="blob-num js-line-number" data-line-number="770"></td>
- <td id="LC770" class="blob-code blob-code-inner js-file-line"><span class="pl-k">int</span></td>
- </tr>
- <tr>
- <td id="L771" class="blob-num js-line-number" data-line-number="771"></td>
- <td id="LC771" class="blob-code blob-code-inner js-file-line"><span class="pl-en">main</span> (<span class="pl-k">int</span> argc, <span class="pl-k">char</span> * argv[])</td>
- </tr>
- <tr>
- <td id="L772" class="blob-num js-line-number" data-line-number="772"></td>
- <td id="LC772" class="blob-code blob-code-inner js-file-line">{</td>
- </tr>
- <tr>
- <td id="L773" class="blob-num js-line-number" data-line-number="773"></td>
- <td id="LC773" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (argc != <span class="pl-c1">3</span>)</td>
- </tr>
- <tr>
- <td id="L774" class="blob-num js-line-number" data-line-number="774"></td>
- <td id="LC774" class="blob-code blob-code-inner js-file-line"> {</td>
- </tr>
- <tr>
- <td id="L775" class="blob-num js-line-number" data-line-number="775"></td>
- <td id="LC775" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fprintf</span> (stderr, <span class="pl-s"><span class="pl-pds">"</span>Usage: <span class="pl-c1">%s</span> UnicodeData.txt version<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, argv[<span class="pl-c1">0</span>]);</td>
- </tr>
- <tr>
- <td id="L776" class="blob-num js-line-number" data-line-number="776"></td>
- <td id="LC776" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">exit</span> (<span class="pl-c1">1</span>);</td>
- </tr>
- <tr>
- <td id="L777" class="blob-num js-line-number" data-line-number="777"></td>
- <td id="LC777" class="blob-code blob-code-inner js-file-line"> }</td>
- </tr>
- <tr>
- <td id="L778" class="blob-num js-line-number" data-line-number="778"></td>
- <td id="LC778" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L779" class="blob-num js-line-number" data-line-number="779"></td>
- <td id="LC779" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">fill_attributes</span> (argv[<span class="pl-c1">1</span>]);</td>
- </tr>
- <tr>
- <td id="L780" class="blob-num js-line-number" data-line-number="780"></td>
- <td id="LC780" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L781" class="blob-num js-line-number" data-line-number="781"></td>
- <td id="LC781" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">output_tables</span> (<span class="pl-s"><span class="pl-pds">"</span>unicode<span class="pl-pds">"</span></span>, argv[<span class="pl-c1">2</span>]);</td>
- </tr>
- <tr>
- <td id="L782" class="blob-num js-line-number" data-line-number="782"></td>
- <td id="LC782" class="blob-code blob-code-inner js-file-line">
- </td>
- </tr>
- <tr>
- <td id="L783" class="blob-num js-line-number" data-line-number="783"></td>
- <td id="LC783" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-c1">0</span>;</td>
- </tr>
- <tr>
- <td id="L784" class="blob-num js-line-number" data-line-number="784"></td>
- <td id="LC784" class="blob-code blob-code-inner js-file-line">}</td>
- </tr>
- </table>
- <div class="BlobToolbar position-absolute js-file-line-actions dropdown js-menu-container js-select-menu d-none" aria-hidden="true">
- <button class="btn-octicon ml-0 px-2 p-0 bg-white border border-gray-dark rounded-1 dropdown-toggle js-menu-target" id="js-file-line-action-button" type="button" aria-expanded="false" aria-haspopup="true" aria-label="Inline file action toolbar" aria-controls="inline-file-actions">
- <svg class="octicon octicon-kebab-horizontal" viewBox="0 0 13 16" version="1.1" width="13" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M1.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/></svg>
- </button>
- <div class="dropdown-menu-content js-menu-content" id="inline-file-actions">
- <ul class="BlobToolbar-dropdown dropdown-menu dropdown-menu-se mt-2">
- <li><clipboard-copy class="dropdown-item" style="cursor:pointer;" id="js-copy-lines" data-original-text="Copy lines">Copy lines</clipboard-copy></li>
- <li><clipboard-copy class="dropdown-item" id="js-copy-permalink" style="cursor:pointer;" data-original-text="Copy permalink">Copy permalink</clipboard-copy></li>
- <li><a class="dropdown-item js-update-url-with-hash" id="js-view-git-blame" href="/mike-fabian/gen-unicode-ctype/blame/c6c57c3d2cdbd188b65dd1d40fb4cf0e6ff65e76/gen-unicode-ctype.c">View git blame</a></li>
- <li><a class="dropdown-item" id="js-new-issue" href="/mike-fabian/gen-unicode-ctype/issues/new">Open new issue</a></li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <button type="button" data-facebox="#jump-to-line" data-facebox-class="linejump" data-hotkey="l" class="d-none">Jump to Line</button>
- <div id="jump-to-line" style="display:none">
- <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-jump-to-line-form" action="" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="✓" />
- <input class="form-control linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line…" aria-label="Jump to line" autofocus>
- <button type="submit" class="btn">Go</button>
- </form> </div>
- </div>
- <div class="modal-backdrop js-touch-events"></div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="footer container-lg px-3" role="contentinfo">
- <div class="position-relative d-flex flex-justify-between pt-6 pb-2 mt-6 f6 text-gray border-top border-gray-light ">
- <ul class="list-style-none d-flex flex-wrap ">
- <li class="mr-3">© 2018 <span title="0.27897s from unicorn-1534617891-sr7w8">GitHub</span>, Inc.</li>
- <li class="mr-3"><a data-ga-click="Footer, go to terms, text:terms" href="https://github.com/site/terms">Terms</a></li>
- <li class="mr-3"><a data-ga-click="Footer, go to privacy, text:privacy" href="https://github.com/site/privacy">Privacy</a></li>
- <li class="mr-3"><a href="https://help.github.com/articles/github-security/" data-ga-click="Footer, go to security, text:security">Security</a></li>
- <li class="mr-3"><a href="https://status.github.com/" data-ga-click="Footer, go to status, text:status">Status</a></li>
- <li><a data-ga-click="Footer, go to help, text:help" href="https://help.github.com">Help</a></li>
- </ul>
- <a aria-label="Homepage" title="GitHub" class="footer-octicon" href="https://github.com">
- <svg height="24" class="octicon octicon-mark-github" viewBox="0 0 16 16" version="1.1" width="24" aria-hidden="true"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>
- </a>
- <ul class="list-style-none d-flex flex-wrap ">
- <li class="mr-3"><a data-ga-click="Footer, go to contact, text:contact" href="https://github.com/contact">Contact GitHub</a></li>
- <li class="mr-3"><a href="https://developer.github.com" data-ga-click="Footer, go to api, text:api">API</a></li>
- <li class="mr-3"><a href="https://training.github.com" data-ga-click="Footer, go to training, text:training">Training</a></li>
- <li class="mr-3"><a href="https://shop.github.com" data-ga-click="Footer, go to shop, text:shop">Shop</a></li>
- <li class="mr-3"><a href="https://blog.github.com" data-ga-click="Footer, go to blog, text:blog">Blog</a></li>
- <li><a data-ga-click="Footer, go to about, text:about" href="https://github.com/about">About</a></li>
- </ul>
- </div>
- <div class="d-flex flex-justify-center pb-6">
- <span class="f6 text-gray-light"></span>
- </div>
- </div>
- <div id="ajax-error-message" class="ajax-error-message flash flash-error">
- <svg class="octicon octicon-alert" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.865 1.52c-.18-.31-.51-.5-.87-.5s-.69.19-.87.5L.275 13.5c-.18.31-.18.69 0 1 .19.31.52.5.87.5h13.7c.36 0 .69-.19.86-.5.17-.31.18-.69.01-1L8.865 1.52zM8.995 13h-2v-2h2v2zm0-3h-2V6h2v4z"/></svg>
- <button type="button" class="flash-close js-ajax-error-dismiss" aria-label="Dismiss error">
- <svg class="octicon octicon-x" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"/></svg>
- </button>
- You can't perform that action at this time.
- </div>
- <script crossorigin="anonymous" type="application/javascript" src="https://assets-cdn.github.com/assets/compat-8e5db19dd0f30433798e3cb0118e654c.js"></script>
- <script crossorigin="anonymous" type="application/javascript" src="https://assets-cdn.github.com/assets/frameworks-eca8e7e9ccc2078d10d49cad268f6a4f.js"></script>
-
- <script crossorigin="anonymous" async="async" type="application/javascript" src="https://assets-cdn.github.com/assets/github-cddf6325595be9f25478e49c496f274e.js"></script>
-
-
-
-
- <div class="js-stale-session-flash stale-session-flash flash flash-warn flash-banner d-none">
- <svg class="octicon octicon-alert" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.865 1.52c-.18-.31-.51-.5-.87-.5s-.69.19-.87.5L.275 13.5c-.18.31-.18.69 0 1 .19.31.52.5.87.5h13.7c.36 0 .69-.19.86-.5.17-.31.18-.69.01-1L8.865 1.52zM8.995 13h-2v-2h2v2zm0-3h-2V6h2v4z"/></svg>
- <span class="signed-in-tab-flash">You signed in with another tab or window. <a href="">Reload</a> to refresh your session.</span>
- <span class="signed-out-tab-flash">You signed out in another tab or window. <a href="">Reload</a> to refresh your session.</span>
- </div>
- <div class="facebox" id="facebox" style="display:none;">
- <div class="facebox-popup">
- <div class="facebox-content" role="dialog" aria-labelledby="facebox-header" aria-describedby="facebox-description">
- </div>
- <button type="button" class="facebox-close js-facebox-close" aria-label="Close modal">
- <svg class="octicon octicon-x" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"/></svg>
- </button>
- </div>
- </div>
- <div class="Popover js-hovercard-content position-absolute" style="display: none; outline: none;" tabindex="0">
- <div class="Popover-message Popover-message--bottom-left Popover-message--large Box box-shadow-large" style="width:360px;">
- </div>
- </div>
- <div id="hovercard-aria-description" class="sr-only">
- Press h to open a hovercard with more details.
- </div>
- </body>
- </html>
|