uchar.h 152 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410
  1. // © 2016 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. /*
  4. **********************************************************************
  5. * Copyright (C) 1997-2016, International Business Machines
  6. * Corporation and others. All Rights Reserved.
  7. **********************************************************************
  8. *
  9. * File UCHAR.H
  10. *
  11. * Modification History:
  12. *
  13. * Date Name Description
  14. * 04/02/97 aliu Creation.
  15. * 03/29/99 helena Updated for C APIs.
  16. * 4/15/99 Madhu Updated for C Implementation and Javadoc
  17. * 5/20/99 Madhu Added the function u_getVersion()
  18. * 8/19/1999 srl Upgraded scripts to Unicode 3.0
  19. * 8/27/1999 schererm UCharDirection constants: U_...
  20. * 11/11/1999 weiv added u_isalnum(), cleaned comments
  21. * 01/11/2000 helena Renamed u_getVersion to u_getUnicodeVersion().
  22. ******************************************************************************
  23. */
  24. #ifndef UCHAR_H
  25. #define UCHAR_H
  26. #include <stdbool.h>
  27. #include "unicode/utypes.h"
  28. #include "unicode/stringoptions.h"
  29. #include "unicode/ucpmap.h"
  30. #if !defined(USET_DEFINED) && !defined(U_IN_DOXYGEN)
  31. #define USET_DEFINED
  32. /**
  33. * USet is the C API type corresponding to C++ class UnicodeSet.
  34. * It is forward-declared here to avoid including unicode/uset.h file if related
  35. * APIs are not used.
  36. *
  37. * @see ucnv_getUnicodeSet
  38. * @stable ICU 2.4
  39. */
  40. typedef struct USet USet;
  41. #endif
  42. U_CDECL_BEGIN
  43. /*==========================================================================*/
  44. /* Unicode version number */
  45. /*==========================================================================*/
  46. /**
  47. * Unicode version number, default for the current ICU version.
  48. * The actual Unicode Character Database (UCD) data is stored in uprops.icu
  49. * and may be generated from UCD files from a different Unicode version.
  50. * Call u_getUnicodeVersion to get the actual Unicode version of the data.
  51. *
  52. * @see u_getUnicodeVersion
  53. * @stable ICU 2.0
  54. */
  55. #define U_UNICODE_VERSION "16.0"
  56. /**
  57. * \file
  58. * \brief C API: Unicode Properties
  59. *
  60. * This C API provides low-level access to the Unicode Character Database.
  61. * In addition to raw property values, some convenience functions calculate
  62. * derived properties, for example for Java-style programming.
  63. *
  64. * Unicode assigns each code point (not just assigned character) values for
  65. * many properties.
  66. * Most of them are simple boolean flags, or constants from a small enumerated list.
  67. * For some properties, values are strings or other relatively more complex types.
  68. *
  69. * For more information see
  70. * "About the Unicode Character Database" (http://www.unicode.org/ucd/)
  71. * and the ICU User Guide chapter on Properties (https://unicode-org.github.io/icu/userguide/strings/properties).
  72. *
  73. * Many properties are accessible via generic functions that take a UProperty selector.
  74. * - u_hasBinaryProperty() returns a binary value (true/false) per property and code point.
  75. * - u_getIntPropertyValue() returns an integer value per property and code point.
  76. * For each supported enumerated or catalog property, there is
  77. * an enum type for all of the property's values, and
  78. * u_getIntPropertyValue() returns the numeric values of those constants.
  79. * - u_getBinaryPropertySet() returns a set for each ICU-supported binary property with
  80. * all code points for which the property is true.
  81. * - u_getIntPropertyMap() returns a map for each
  82. * ICU-supported enumerated/catalog/int-valued property which
  83. * maps all Unicode code points to their values for that property.
  84. *
  85. * Many functions are designed to match java.lang.Character functions.
  86. * See the individual function documentation,
  87. * and see the JDK 1.4 java.lang.Character documentation
  88. * at http://java.sun.com/j2se/1.4/docs/api/java/lang/Character.html
  89. *
  90. * There are also functions that provide easy migration from C/POSIX functions
  91. * like isblank(). Their use is generally discouraged because the C/POSIX
  92. * standards do not define their semantics beyond the ASCII range, which means
  93. * that different implementations exhibit very different behavior.
  94. * Instead, Unicode properties should be used directly.
  95. *
  96. * There are also only a few, broad C/POSIX character classes, and they tend
  97. * to be used for conflicting purposes. For example, the "isalpha()" class
  98. * is sometimes used to determine word boundaries, while a more sophisticated
  99. * approach would at least distinguish initial letters from continuation
  100. * characters (the latter including combining marks).
  101. * (In ICU, BreakIterator is the most sophisticated API for word boundaries.)
  102. * Another example: There is no "istitle()" class for titlecase characters.
  103. *
  104. * ICU 3.4 and later provides API access for all twelve C/POSIX character classes.
  105. * ICU implements them according to the Standard Recommendations in
  106. * Annex C: Compatibility Properties of UTS #18 Unicode Regular Expressions
  107. * (http://www.unicode.org/reports/tr18/#Compatibility_Properties).
  108. *
  109. * API access for C/POSIX character classes is as follows:
  110. * - alpha: u_isUAlphabetic(c) or u_hasBinaryProperty(c, UCHAR_ALPHABETIC)
  111. * - lower: u_isULowercase(c) or u_hasBinaryProperty(c, UCHAR_LOWERCASE)
  112. * - upper: u_isUUppercase(c) or u_hasBinaryProperty(c, UCHAR_UPPERCASE)
  113. * - punct: u_ispunct(c)
  114. * - digit: u_isdigit(c) or u_charType(c)==U_DECIMAL_DIGIT_NUMBER
  115. * - xdigit: u_isxdigit(c) or u_hasBinaryProperty(c, UCHAR_POSIX_XDIGIT)
  116. * - alnum: u_hasBinaryProperty(c, UCHAR_POSIX_ALNUM)
  117. * - space: u_isUWhiteSpace(c) or u_hasBinaryProperty(c, UCHAR_WHITE_SPACE)
  118. * - blank: u_isblank(c) or u_hasBinaryProperty(c, UCHAR_POSIX_BLANK)
  119. * - cntrl: u_charType(c)==U_CONTROL_CHAR
  120. * - graph: u_hasBinaryProperty(c, UCHAR_POSIX_GRAPH)
  121. * - print: u_hasBinaryProperty(c, UCHAR_POSIX_PRINT)
  122. *
  123. * Note: Some of the u_isxyz() functions in uchar.h predate, and do not match,
  124. * the Standard Recommendations in UTS #18. Instead, they match Java
  125. * functions according to their API documentation.
  126. *
  127. * \htmlonly
  128. * The C/POSIX character classes are also available in UnicodeSet patterns,
  129. * using patterns like [:graph:] or \p{graph}.
  130. * \endhtmlonly
  131. *
  132. * Note: There are several ICU whitespace functions.
  133. * Comparison:
  134. * - u_isUWhiteSpace=UCHAR_WHITE_SPACE: Unicode White_Space property;
  135. * most of general categories "Z" (separators) + most whitespace ISO controls
  136. * (including no-break spaces, but excluding IS1..IS4)
  137. * - u_isWhitespace: Java isWhitespace; Z + whitespace ISO controls but excluding no-break spaces
  138. * - u_isJavaSpaceChar: Java isSpaceChar; just Z (including no-break spaces)
  139. * - u_isspace: Z + whitespace ISO controls (including no-break spaces)
  140. * - u_isblank: "horizontal spaces" = TAB + Zs
  141. */
  142. /**
  143. * Constants.
  144. */
  145. /** The lowest Unicode code point value. Code points are non-negative. @stable ICU 2.0 */
  146. #define UCHAR_MIN_VALUE 0
  147. /**
  148. * The highest Unicode code point value (scalar value) according to
  149. * The Unicode Standard. This is a 21-bit value (20.1 bits, rounded up).
  150. * For a single character, UChar32 is a simple type that can hold any code point value.
  151. *
  152. * @see UChar32
  153. * @stable ICU 2.0
  154. */
  155. #define UCHAR_MAX_VALUE 0x10ffff
  156. /**
  157. * Get a single-bit bit set (a flag) from a bit number 0..31.
  158. * @stable ICU 2.1
  159. */
  160. #define U_MASK(x) ((uint32_t)1<<(x))
  161. /**
  162. * Selection constants for Unicode properties.
  163. * These constants are used in functions like u_hasBinaryProperty to select
  164. * one of the Unicode properties.
  165. *
  166. * The properties APIs are intended to reflect Unicode properties as defined
  167. * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).
  168. *
  169. * For details about the properties see
  170. * UAX #44: Unicode Character Database (http://www.unicode.org/reports/tr44/).
  171. *
  172. * Important: If ICU is built with UCD files from Unicode versions below, e.g., 3.2,
  173. * then properties marked with "new in Unicode 3.2" are not or not fully available.
  174. * Check u_getUnicodeVersion to be sure.
  175. *
  176. * @see u_hasBinaryProperty
  177. * @see u_getIntPropertyValue
  178. * @see u_getUnicodeVersion
  179. * @stable ICU 2.1
  180. */
  181. typedef enum UProperty {
  182. /*
  183. * Note: UProperty constants are parsed by preparseucd.py.
  184. * It matches lines like
  185. * UCHAR_<Unicode property name>=<integer>,
  186. */
  187. /* Note: Place UCHAR_ALPHABETIC before UCHAR_BINARY_START so that
  188. debuggers display UCHAR_ALPHABETIC as the symbolic name for 0,
  189. rather than UCHAR_BINARY_START. Likewise for other *_START
  190. identifiers. */
  191. /** Binary property Alphabetic. Same as u_isUAlphabetic, different from u_isalpha.
  192. Lu+Ll+Lt+Lm+Lo+Nl+Other_Alphabetic @stable ICU 2.1 */
  193. UCHAR_ALPHABETIC=0,
  194. /** First constant for binary Unicode properties. @stable ICU 2.1 */
  195. UCHAR_BINARY_START=UCHAR_ALPHABETIC,
  196. /** Binary property ASCII_Hex_Digit. 0-9 A-F a-f @stable ICU 2.1 */
  197. UCHAR_ASCII_HEX_DIGIT=1,
  198. /** Binary property Bidi_Control.
  199. Format controls which have specific functions
  200. in the Bidi Algorithm. @stable ICU 2.1 */
  201. UCHAR_BIDI_CONTROL=2,
  202. /** Binary property Bidi_Mirrored.
  203. Characters that may change display in RTL text.
  204. Same as u_isMirrored.
  205. See Bidi Algorithm, UTR 9. @stable ICU 2.1 */
  206. UCHAR_BIDI_MIRRORED=3,
  207. /** Binary property Dash. Variations of dashes. @stable ICU 2.1 */
  208. UCHAR_DASH=4,
  209. /** Binary property Default_Ignorable_Code_Point (new in Unicode 3.2).
  210. Ignorable in most processing.
  211. <2060..206F, FFF0..FFFB, E0000..E0FFF>+Other_Default_Ignorable_Code_Point+(Cf+Cc+Cs-White_Space) @stable ICU 2.1 */
  212. UCHAR_DEFAULT_IGNORABLE_CODE_POINT=5,
  213. /** Binary property Deprecated (new in Unicode 3.2).
  214. The usage of deprecated characters is strongly discouraged. @stable ICU 2.1 */
  215. UCHAR_DEPRECATED=6,
  216. /** Binary property Diacritic. Characters that linguistically modify
  217. the meaning of another character to which they apply. @stable ICU 2.1 */
  218. UCHAR_DIACRITIC=7,
  219. /** Binary property Extender.
  220. Extend the value or shape of a preceding alphabetic character,
  221. e.g., length and iteration marks. @stable ICU 2.1 */
  222. UCHAR_EXTENDER=8,
  223. /** Binary property Full_Composition_Exclusion.
  224. CompositionExclusions.txt+Singleton Decompositions+
  225. Non-Starter Decompositions. @stable ICU 2.1 */
  226. UCHAR_FULL_COMPOSITION_EXCLUSION=9,
  227. /** Binary property Grapheme_Base (new in Unicode 3.2).
  228. For programmatic determination of grapheme cluster boundaries.
  229. [0..10FFFF]-Cc-Cf-Cs-Co-Cn-Zl-Zp-Grapheme_Link-Grapheme_Extend-CGJ @stable ICU 2.1 */
  230. UCHAR_GRAPHEME_BASE=10,
  231. /** Binary property Grapheme_Extend (new in Unicode 3.2).
  232. For programmatic determination of grapheme cluster boundaries.
  233. Me+Mn+Mc+Other_Grapheme_Extend-Grapheme_Link-CGJ @stable ICU 2.1 */
  234. UCHAR_GRAPHEME_EXTEND=11,
  235. /** Binary property Grapheme_Link (new in Unicode 3.2).
  236. For programmatic determination of grapheme cluster boundaries. @stable ICU 2.1 */
  237. UCHAR_GRAPHEME_LINK=12,
  238. /** Binary property Hex_Digit.
  239. Characters commonly used for hexadecimal numbers. @stable ICU 2.1 */
  240. UCHAR_HEX_DIGIT=13,
  241. /** Binary property Hyphen. Dashes used to mark connections
  242. between pieces of words, plus the Katakana middle dot. @stable ICU 2.1 */
  243. UCHAR_HYPHEN=14,
  244. /** Binary property ID_Continue.
  245. Characters that can continue an identifier.
  246. DerivedCoreProperties.txt also says "NOTE: Cf characters should be filtered out."
  247. ID_Start+Mn+Mc+Nd+Pc @stable ICU 2.1 */
  248. UCHAR_ID_CONTINUE=15,
  249. /** Binary property ID_Start.
  250. Characters that can start an identifier.
  251. Lu+Ll+Lt+Lm+Lo+Nl @stable ICU 2.1 */
  252. UCHAR_ID_START=16,
  253. /** Binary property Ideographic.
  254. CJKV ideographs. @stable ICU 2.1 */
  255. UCHAR_IDEOGRAPHIC=17,
  256. /** Binary property IDS_Binary_Operator (new in Unicode 3.2).
  257. For programmatic determination of
  258. Ideographic Description Sequences. @stable ICU 2.1 */
  259. UCHAR_IDS_BINARY_OPERATOR=18,
  260. /** Binary property IDS_Trinary_Operator (new in Unicode 3.2).
  261. For programmatic determination of
  262. Ideographic Description Sequences. @stable ICU 2.1 */
  263. UCHAR_IDS_TRINARY_OPERATOR=19,
  264. /** Binary property Join_Control.
  265. Format controls for cursive joining and ligation. @stable ICU 2.1 */
  266. UCHAR_JOIN_CONTROL=20,
  267. /** Binary property Logical_Order_Exception (new in Unicode 3.2).
  268. Characters that do not use logical order and
  269. require special handling in most processing. @stable ICU 2.1 */
  270. UCHAR_LOGICAL_ORDER_EXCEPTION=21,
  271. /** Binary property Lowercase. Same as u_isULowercase, different from u_islower.
  272. Ll+Other_Lowercase @stable ICU 2.1 */
  273. UCHAR_LOWERCASE=22,
  274. /** Binary property Math. Sm+Other_Math @stable ICU 2.1 */
  275. UCHAR_MATH=23,
  276. /** Binary property Noncharacter_Code_Point.
  277. Code points that are explicitly defined as illegal
  278. for the encoding of characters. @stable ICU 2.1 */
  279. UCHAR_NONCHARACTER_CODE_POINT=24,
  280. /** Binary property Quotation_Mark. @stable ICU 2.1 */
  281. UCHAR_QUOTATION_MARK=25,
  282. /** Binary property Radical (new in Unicode 3.2).
  283. For programmatic determination of
  284. Ideographic Description Sequences. @stable ICU 2.1 */
  285. UCHAR_RADICAL=26,
  286. /** Binary property Soft_Dotted (new in Unicode 3.2).
  287. Characters with a "soft dot", like i or j.
  288. An accent placed on these characters causes
  289. the dot to disappear. @stable ICU 2.1 */
  290. UCHAR_SOFT_DOTTED=27,
  291. /** Binary property Terminal_Punctuation.
  292. Punctuation characters that generally mark
  293. the end of textual units. @stable ICU 2.1 */
  294. UCHAR_TERMINAL_PUNCTUATION=28,
  295. /** Binary property Unified_Ideograph (new in Unicode 3.2).
  296. For programmatic determination of
  297. Ideographic Description Sequences. @stable ICU 2.1 */
  298. UCHAR_UNIFIED_IDEOGRAPH=29,
  299. /** Binary property Uppercase. Same as u_isUUppercase, different from u_isupper.
  300. Lu+Other_Uppercase @stable ICU 2.1 */
  301. UCHAR_UPPERCASE=30,
  302. /** Binary property White_Space.
  303. Same as u_isUWhiteSpace, different from u_isspace and u_isWhitespace.
  304. Space characters+TAB+CR+LF-ZWSP-ZWNBSP @stable ICU 2.1 */
  305. UCHAR_WHITE_SPACE=31,
  306. /** Binary property XID_Continue.
  307. ID_Continue modified to allow closure under
  308. normalization forms NFKC and NFKD. @stable ICU 2.1 */
  309. UCHAR_XID_CONTINUE=32,
  310. /** Binary property XID_Start. ID_Start modified to allow
  311. closure under normalization forms NFKC and NFKD. @stable ICU 2.1 */
  312. UCHAR_XID_START=33,
  313. /** Binary property Case_Sensitive. Either the source of a case
  314. mapping or _in_ the target of a case mapping. Not the same as
  315. the general category Cased_Letter. @stable ICU 2.6 */
  316. UCHAR_CASE_SENSITIVE=34,
  317. /** Binary property STerm (new in Unicode 4.0.1).
  318. Sentence Terminal. Used in UAX #29: Text Boundaries
  319. (http://www.unicode.org/reports/tr29/)
  320. @stable ICU 3.0 */
  321. UCHAR_S_TERM=35,
  322. /** Binary property Variation_Selector (new in Unicode 4.0.1).
  323. Indicates all those characters that qualify as Variation Selectors.
  324. For details on the behavior of these characters,
  325. see StandardizedVariants.html and 15.6 Variation Selectors.
  326. @stable ICU 3.0 */
  327. UCHAR_VARIATION_SELECTOR=36,
  328. /** Binary property NFD_Inert.
  329. ICU-specific property for characters that are inert under NFD,
  330. i.e., they do not interact with adjacent characters.
  331. See the documentation for the Normalizer2 class and the
  332. Normalizer2::isInert() method.
  333. @stable ICU 3.0 */
  334. UCHAR_NFD_INERT=37,
  335. /** Binary property NFKD_Inert.
  336. ICU-specific property for characters that are inert under NFKD,
  337. i.e., they do not interact with adjacent characters.
  338. See the documentation for the Normalizer2 class and the
  339. Normalizer2::isInert() method.
  340. @stable ICU 3.0 */
  341. UCHAR_NFKD_INERT=38,
  342. /** Binary property NFC_Inert.
  343. ICU-specific property for characters that are inert under NFC,
  344. i.e., they do not interact with adjacent characters.
  345. See the documentation for the Normalizer2 class and the
  346. Normalizer2::isInert() method.
  347. @stable ICU 3.0 */
  348. UCHAR_NFC_INERT=39,
  349. /** Binary property NFKC_Inert.
  350. ICU-specific property for characters that are inert under NFKC,
  351. i.e., they do not interact with adjacent characters.
  352. See the documentation for the Normalizer2 class and the
  353. Normalizer2::isInert() method.
  354. @stable ICU 3.0 */
  355. UCHAR_NFKC_INERT=40,
  356. /** Binary Property Segment_Starter.
  357. ICU-specific property for characters that are starters in terms of
  358. Unicode normalization and combining character sequences.
  359. They have ccc=0 and do not occur in non-initial position of the
  360. canonical decomposition of any character
  361. (like a-umlaut in NFD and a Jamo T in an NFD(Hangul LVT)).
  362. ICU uses this property for segmenting a string for generating a set of
  363. canonically equivalent strings, e.g. for canonical closure while
  364. processing collation tailoring rules.
  365. @stable ICU 3.0 */
  366. UCHAR_SEGMENT_STARTER=41,
  367. /** Binary property Pattern_Syntax (new in Unicode 4.1).
  368. See UAX #31 Identifier and Pattern Syntax
  369. (http://www.unicode.org/reports/tr31/)
  370. @stable ICU 3.4 */
  371. UCHAR_PATTERN_SYNTAX=42,
  372. /** Binary property Pattern_White_Space (new in Unicode 4.1).
  373. See UAX #31 Identifier and Pattern Syntax
  374. (http://www.unicode.org/reports/tr31/)
  375. @stable ICU 3.4 */
  376. UCHAR_PATTERN_WHITE_SPACE=43,
  377. /** Binary property alnum (a C/POSIX character class).
  378. Implemented according to the UTS #18 Annex C Standard Recommendation.
  379. See the uchar.h file documentation.
  380. @stable ICU 3.4 */
  381. UCHAR_POSIX_ALNUM=44,
  382. /** Binary property blank (a C/POSIX character class).
  383. Implemented according to the UTS #18 Annex C Standard Recommendation.
  384. See the uchar.h file documentation.
  385. @stable ICU 3.4 */
  386. UCHAR_POSIX_BLANK=45,
  387. /** Binary property graph (a C/POSIX character class).
  388. Implemented according to the UTS #18 Annex C Standard Recommendation.
  389. See the uchar.h file documentation.
  390. @stable ICU 3.4 */
  391. UCHAR_POSIX_GRAPH=46,
  392. /** Binary property print (a C/POSIX character class).
  393. Implemented according to the UTS #18 Annex C Standard Recommendation.
  394. See the uchar.h file documentation.
  395. @stable ICU 3.4 */
  396. UCHAR_POSIX_PRINT=47,
  397. /** Binary property xdigit (a C/POSIX character class).
  398. Implemented according to the UTS #18 Annex C Standard Recommendation.
  399. See the uchar.h file documentation.
  400. @stable ICU 3.4 */
  401. UCHAR_POSIX_XDIGIT=48,
  402. /** Binary property Cased. For Lowercase, Uppercase and Titlecase characters. @stable ICU 4.4 */
  403. UCHAR_CASED=49,
  404. /** Binary property Case_Ignorable. Used in context-sensitive case mappings. @stable ICU 4.4 */
  405. UCHAR_CASE_IGNORABLE=50,
  406. /** Binary property Changes_When_Lowercased. @stable ICU 4.4 */
  407. UCHAR_CHANGES_WHEN_LOWERCASED=51,
  408. /** Binary property Changes_When_Uppercased. @stable ICU 4.4 */
  409. UCHAR_CHANGES_WHEN_UPPERCASED=52,
  410. /** Binary property Changes_When_Titlecased. @stable ICU 4.4 */
  411. UCHAR_CHANGES_WHEN_TITLECASED=53,
  412. /** Binary property Changes_When_Casefolded. @stable ICU 4.4 */
  413. UCHAR_CHANGES_WHEN_CASEFOLDED=54,
  414. /** Binary property Changes_When_Casemapped. @stable ICU 4.4 */
  415. UCHAR_CHANGES_WHEN_CASEMAPPED=55,
  416. /** Binary property Changes_When_NFKC_Casefolded. @stable ICU 4.4 */
  417. UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED=56,
  418. /**
  419. * Binary property Emoji.
  420. * See http://www.unicode.org/reports/tr51/#Emoji_Properties
  421. *
  422. * @stable ICU 57
  423. */
  424. UCHAR_EMOJI=57,
  425. /**
  426. * Binary property Emoji_Presentation.
  427. * See http://www.unicode.org/reports/tr51/#Emoji_Properties
  428. *
  429. * @stable ICU 57
  430. */
  431. UCHAR_EMOJI_PRESENTATION=58,
  432. /**
  433. * Binary property Emoji_Modifier.
  434. * See http://www.unicode.org/reports/tr51/#Emoji_Properties
  435. *
  436. * @stable ICU 57
  437. */
  438. UCHAR_EMOJI_MODIFIER=59,
  439. /**
  440. * Binary property Emoji_Modifier_Base.
  441. * See http://www.unicode.org/reports/tr51/#Emoji_Properties
  442. *
  443. * @stable ICU 57
  444. */
  445. UCHAR_EMOJI_MODIFIER_BASE=60,
  446. /**
  447. * Binary property Emoji_Component.
  448. * See http://www.unicode.org/reports/tr51/#Emoji_Properties
  449. *
  450. * @stable ICU 60
  451. */
  452. UCHAR_EMOJI_COMPONENT=61,
  453. /**
  454. * Binary property Regional_Indicator.
  455. * @stable ICU 60
  456. */
  457. UCHAR_REGIONAL_INDICATOR=62,
  458. /**
  459. * Binary property Prepended_Concatenation_Mark.
  460. * @stable ICU 60
  461. */
  462. UCHAR_PREPENDED_CONCATENATION_MARK=63,
  463. /**
  464. * Binary property Extended_Pictographic.
  465. * See http://www.unicode.org/reports/tr51/#Emoji_Properties
  466. *
  467. * @stable ICU 62
  468. */
  469. UCHAR_EXTENDED_PICTOGRAPHIC=64,
  470. /**
  471. * Binary property of strings Basic_Emoji.
  472. * See https://www.unicode.org/reports/tr51/#Emoji_Sets
  473. *
  474. * @stable ICU 70
  475. */
  476. UCHAR_BASIC_EMOJI=65,
  477. /**
  478. * Binary property of strings Emoji_Keycap_Sequence.
  479. * See https://www.unicode.org/reports/tr51/#Emoji_Sets
  480. *
  481. * @stable ICU 70
  482. */
  483. UCHAR_EMOJI_KEYCAP_SEQUENCE=66,
  484. /**
  485. * Binary property of strings RGI_Emoji_Modifier_Sequence.
  486. * See https://www.unicode.org/reports/tr51/#Emoji_Sets
  487. *
  488. * @stable ICU 70
  489. */
  490. UCHAR_RGI_EMOJI_MODIFIER_SEQUENCE=67,
  491. /**
  492. * Binary property of strings RGI_Emoji_Flag_Sequence.
  493. * See https://www.unicode.org/reports/tr51/#Emoji_Sets
  494. *
  495. * @stable ICU 70
  496. */
  497. UCHAR_RGI_EMOJI_FLAG_SEQUENCE=68,
  498. /**
  499. * Binary property of strings RGI_Emoji_Tag_Sequence.
  500. * See https://www.unicode.org/reports/tr51/#Emoji_Sets
  501. *
  502. * @stable ICU 70
  503. */
  504. UCHAR_RGI_EMOJI_TAG_SEQUENCE=69,
  505. /**
  506. * Binary property of strings RGI_Emoji_ZWJ_Sequence.
  507. * See https://www.unicode.org/reports/tr51/#Emoji_Sets
  508. *
  509. * @stable ICU 70
  510. */
  511. UCHAR_RGI_EMOJI_ZWJ_SEQUENCE=70,
  512. /**
  513. * Binary property of strings RGI_Emoji.
  514. * See https://www.unicode.org/reports/tr51/#Emoji_Sets
  515. *
  516. * @stable ICU 70
  517. */
  518. UCHAR_RGI_EMOJI=71,
  519. /**
  520. * Binary property IDS_Unary_Operator.
  521. * For programmatic determination of Ideographic Description Sequences.
  522. *
  523. * @stable ICU 74
  524. */
  525. UCHAR_IDS_UNARY_OPERATOR=72,
  526. /**
  527. * Binary property ID_Compat_Math_Start.
  528. * Used in mathematical identifier profile in UAX #31.
  529. * @stable ICU 74
  530. */
  531. UCHAR_ID_COMPAT_MATH_START=73,
  532. /**
  533. * Binary property ID_Compat_Math_Continue.
  534. * Used in mathematical identifier profile in UAX #31.
  535. * @stable ICU 74
  536. */
  537. UCHAR_ID_COMPAT_MATH_CONTINUE=74,
  538. #ifndef U_HIDE_DRAFT_API
  539. /**
  540. * Binary property Modifier_Combining_Mark.
  541. * Used by the AMTRA algorithm in UAX #53.
  542. * @draft ICU 76
  543. */
  544. UCHAR_MODIFIER_COMBINING_MARK=75,
  545. #endif // U_HIDE_DRAFT_API
  546. #ifndef U_HIDE_DEPRECATED_API
  547. /**
  548. * One more than the last constant for binary Unicode properties.
  549. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  550. */
  551. UCHAR_BINARY_LIMIT=76,
  552. #endif // U_HIDE_DEPRECATED_API
  553. /** Enumerated property Bidi_Class.
  554. Same as u_charDirection, returns UCharDirection values. @stable ICU 2.2 */
  555. UCHAR_BIDI_CLASS=0x1000,
  556. /** First constant for enumerated/integer Unicode properties. @stable ICU 2.2 */
  557. UCHAR_INT_START=UCHAR_BIDI_CLASS,
  558. /** Enumerated property Block.
  559. Same as ublock_getCode, returns UBlockCode values. @stable ICU 2.2 */
  560. UCHAR_BLOCK=0x1001,
  561. /** Enumerated property Canonical_Combining_Class.
  562. Same as u_getCombiningClass, returns 8-bit numeric values. @stable ICU 2.2 */
  563. UCHAR_CANONICAL_COMBINING_CLASS=0x1002,
  564. /** Enumerated property Decomposition_Type.
  565. Returns UDecompositionType values. @stable ICU 2.2 */
  566. UCHAR_DECOMPOSITION_TYPE=0x1003,
  567. /** Enumerated property East_Asian_Width.
  568. See http://www.unicode.org/reports/tr11/
  569. Returns UEastAsianWidth values. @stable ICU 2.2 */
  570. UCHAR_EAST_ASIAN_WIDTH=0x1004,
  571. /** Enumerated property General_Category.
  572. Same as u_charType, returns UCharCategory values. @stable ICU 2.2 */
  573. UCHAR_GENERAL_CATEGORY=0x1005,
  574. /** Enumerated property Joining_Group.
  575. Returns UJoiningGroup values. @stable ICU 2.2 */
  576. UCHAR_JOINING_GROUP=0x1006,
  577. /** Enumerated property Joining_Type.
  578. Returns UJoiningType values. @stable ICU 2.2 */
  579. UCHAR_JOINING_TYPE=0x1007,
  580. /** Enumerated property Line_Break.
  581. Returns ULineBreak values. @stable ICU 2.2 */
  582. UCHAR_LINE_BREAK=0x1008,
  583. /** Enumerated property Numeric_Type.
  584. Returns UNumericType values. @stable ICU 2.2 */
  585. UCHAR_NUMERIC_TYPE=0x1009,
  586. /** Enumerated property Script.
  587. Same as uscript_getScript, returns UScriptCode values. @stable ICU 2.2 */
  588. UCHAR_SCRIPT=0x100A,
  589. /** Enumerated property Hangul_Syllable_Type, new in Unicode 4.
  590. Returns UHangulSyllableType values. @stable ICU 2.6 */
  591. UCHAR_HANGUL_SYLLABLE_TYPE=0x100B,
  592. /** Enumerated property NFD_Quick_Check.
  593. Returns UNormalizationCheckResult values. @stable ICU 3.0 */
  594. UCHAR_NFD_QUICK_CHECK=0x100C,
  595. /** Enumerated property NFKD_Quick_Check.
  596. Returns UNormalizationCheckResult values. @stable ICU 3.0 */
  597. UCHAR_NFKD_QUICK_CHECK=0x100D,
  598. /** Enumerated property NFC_Quick_Check.
  599. Returns UNormalizationCheckResult values. @stable ICU 3.0 */
  600. UCHAR_NFC_QUICK_CHECK=0x100E,
  601. /** Enumerated property NFKC_Quick_Check.
  602. Returns UNormalizationCheckResult values. @stable ICU 3.0 */
  603. UCHAR_NFKC_QUICK_CHECK=0x100F,
  604. /** Enumerated property Lead_Canonical_Combining_Class.
  605. ICU-specific property for the ccc of the first code point
  606. of the decomposition, or lccc(c)=ccc(NFD(c)[0]).
  607. Useful for checking for canonically ordered text;
  608. see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD .
  609. Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */
  610. UCHAR_LEAD_CANONICAL_COMBINING_CLASS=0x1010,
  611. /** Enumerated property Trail_Canonical_Combining_Class.
  612. ICU-specific property for the ccc of the last code point
  613. of the decomposition, or tccc(c)=ccc(NFD(c)[last]).
  614. Useful for checking for canonically ordered text;
  615. see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD .
  616. Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */
  617. UCHAR_TRAIL_CANONICAL_COMBINING_CLASS=0x1011,
  618. /** Enumerated property Grapheme_Cluster_Break (new in Unicode 4.1).
  619. Used in UAX #29: Text Boundaries
  620. (http://www.unicode.org/reports/tr29/)
  621. Returns UGraphemeClusterBreak values. @stable ICU 3.4 */
  622. UCHAR_GRAPHEME_CLUSTER_BREAK=0x1012,
  623. /** Enumerated property Sentence_Break (new in Unicode 4.1).
  624. Used in UAX #29: Text Boundaries
  625. (http://www.unicode.org/reports/tr29/)
  626. Returns USentenceBreak values. @stable ICU 3.4 */
  627. UCHAR_SENTENCE_BREAK=0x1013,
  628. /** Enumerated property Word_Break (new in Unicode 4.1).
  629. Used in UAX #29: Text Boundaries
  630. (http://www.unicode.org/reports/tr29/)
  631. Returns UWordBreakValues values. @stable ICU 3.4 */
  632. UCHAR_WORD_BREAK=0x1014,
  633. /** Enumerated property Bidi_Paired_Bracket_Type (new in Unicode 6.3).
  634. Used in UAX #9: Unicode Bidirectional Algorithm
  635. (http://www.unicode.org/reports/tr9/)
  636. Returns UBidiPairedBracketType values. @stable ICU 52 */
  637. UCHAR_BIDI_PAIRED_BRACKET_TYPE=0x1015,
  638. /**
  639. * Enumerated property Indic_Positional_Category.
  640. * New in Unicode 6.0 as provisional property Indic_Matra_Category;
  641. * renamed and changed to informative in Unicode 8.0.
  642. * See http://www.unicode.org/reports/tr44/#IndicPositionalCategory.txt
  643. * @stable ICU 63
  644. */
  645. UCHAR_INDIC_POSITIONAL_CATEGORY=0x1016,
  646. /**
  647. * Enumerated property Indic_Syllabic_Category.
  648. * New in Unicode 6.0 as provisional; informative since Unicode 8.0.
  649. * See http://www.unicode.org/reports/tr44/#IndicSyllabicCategory.txt
  650. * @stable ICU 63
  651. */
  652. UCHAR_INDIC_SYLLABIC_CATEGORY=0x1017,
  653. /**
  654. * Enumerated property Vertical_Orientation.
  655. * Used for UAX #50 Unicode Vertical Text Layout (https://www.unicode.org/reports/tr50/).
  656. * New as a UCD property in Unicode 10.0.
  657. * @stable ICU 63
  658. */
  659. UCHAR_VERTICAL_ORIENTATION=0x1018,
  660. #ifndef U_HIDE_DRAFT_API
  661. /**
  662. * Enumerated property Identifier_Status.
  663. * Used for UTS #39 General Security Profile for Identifiers
  664. * (https://www.unicode.org/reports/tr39/#General_Security_Profile).
  665. * @draft ICU 75
  666. */
  667. UCHAR_IDENTIFIER_STATUS=0x1019,
  668. /**
  669. * Enumerated property Indic_Conjunct_Break.
  670. * Used in the grapheme cluster break algorithm in UAX #29.
  671. * @draft ICU 76
  672. */
  673. UCHAR_INDIC_CONJUNCT_BREAK=0x101A,
  674. #endif // U_HIDE_DRAFT_API
  675. #ifndef U_HIDE_DEPRECATED_API
  676. /**
  677. * One more than the last constant for enumerated/integer Unicode properties.
  678. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  679. */
  680. UCHAR_INT_LIMIT=0x101B,
  681. #endif // U_HIDE_DEPRECATED_API
  682. /** Bitmask property General_Category_Mask.
  683. This is the General_Category property returned as a bit mask.
  684. When used in u_getIntPropertyValue(c), same as U_MASK(u_charType(c)),
  685. returns bit masks for UCharCategory values where exactly one bit is set.
  686. When used with u_getPropertyValueName() and u_getPropertyValueEnum(),
  687. a multi-bit mask is used for sets of categories like "Letters".
  688. Mask values should be cast to uint32_t.
  689. @stable ICU 2.4 */
  690. UCHAR_GENERAL_CATEGORY_MASK=0x2000,
  691. /** First constant for bit-mask Unicode properties. @stable ICU 2.4 */
  692. UCHAR_MASK_START=UCHAR_GENERAL_CATEGORY_MASK,
  693. #ifndef U_HIDE_DEPRECATED_API
  694. /**
  695. * One more than the last constant for bit-mask Unicode properties.
  696. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  697. */
  698. UCHAR_MASK_LIMIT=0x2001,
  699. #endif // U_HIDE_DEPRECATED_API
  700. /** Double property Numeric_Value.
  701. Corresponds to u_getNumericValue. @stable ICU 2.4 */
  702. UCHAR_NUMERIC_VALUE=0x3000,
  703. /** First constant for double Unicode properties. @stable ICU 2.4 */
  704. UCHAR_DOUBLE_START=UCHAR_NUMERIC_VALUE,
  705. #ifndef U_HIDE_DEPRECATED_API
  706. /**
  707. * One more than the last constant for double Unicode properties.
  708. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  709. */
  710. UCHAR_DOUBLE_LIMIT=0x3001,
  711. #endif // U_HIDE_DEPRECATED_API
  712. /** String property Age.
  713. Corresponds to u_charAge. @stable ICU 2.4 */
  714. UCHAR_AGE=0x4000,
  715. /** First constant for string Unicode properties. @stable ICU 2.4 */
  716. UCHAR_STRING_START=UCHAR_AGE,
  717. /** String property Bidi_Mirroring_Glyph.
  718. Corresponds to u_charMirror. @stable ICU 2.4 */
  719. UCHAR_BIDI_MIRRORING_GLYPH=0x4001,
  720. /** String property Case_Folding.
  721. Corresponds to u_strFoldCase in ustring.h. @stable ICU 2.4 */
  722. UCHAR_CASE_FOLDING=0x4002,
  723. #ifndef U_HIDE_DEPRECATED_API
  724. /** Deprecated string property ISO_Comment.
  725. Corresponds to u_getISOComment. @deprecated ICU 49 */
  726. UCHAR_ISO_COMMENT=0x4003,
  727. #endif /* U_HIDE_DEPRECATED_API */
  728. /** String property Lowercase_Mapping.
  729. Corresponds to u_strToLower in ustring.h. @stable ICU 2.4 */
  730. UCHAR_LOWERCASE_MAPPING=0x4004,
  731. /** String property Name.
  732. Corresponds to u_charName. @stable ICU 2.4 */
  733. UCHAR_NAME=0x4005,
  734. /** String property Simple_Case_Folding.
  735. Corresponds to u_foldCase. @stable ICU 2.4 */
  736. UCHAR_SIMPLE_CASE_FOLDING=0x4006,
  737. /** String property Simple_Lowercase_Mapping.
  738. Corresponds to u_tolower. @stable ICU 2.4 */
  739. UCHAR_SIMPLE_LOWERCASE_MAPPING=0x4007,
  740. /** String property Simple_Titlecase_Mapping.
  741. Corresponds to u_totitle. @stable ICU 2.4 */
  742. UCHAR_SIMPLE_TITLECASE_MAPPING=0x4008,
  743. /** String property Simple_Uppercase_Mapping.
  744. Corresponds to u_toupper. @stable ICU 2.4 */
  745. UCHAR_SIMPLE_UPPERCASE_MAPPING=0x4009,
  746. /** String property Titlecase_Mapping.
  747. Corresponds to u_strToTitle in ustring.h. @stable ICU 2.4 */
  748. UCHAR_TITLECASE_MAPPING=0x400A,
  749. #ifndef U_HIDE_DEPRECATED_API
  750. /** String property Unicode_1_Name.
  751. This property is of little practical value.
  752. Beginning with ICU 49, ICU APIs return an empty string for this property.
  753. Corresponds to u_charName(U_UNICODE_10_CHAR_NAME). @deprecated ICU 49 */
  754. UCHAR_UNICODE_1_NAME=0x400B,
  755. #endif /* U_HIDE_DEPRECATED_API */
  756. /** String property Uppercase_Mapping.
  757. Corresponds to u_strToUpper in ustring.h. @stable ICU 2.4 */
  758. UCHAR_UPPERCASE_MAPPING=0x400C,
  759. /** String property Bidi_Paired_Bracket (new in Unicode 6.3).
  760. Corresponds to u_getBidiPairedBracket. @stable ICU 52 */
  761. UCHAR_BIDI_PAIRED_BRACKET=0x400D,
  762. #ifndef U_HIDE_DEPRECATED_API
  763. /**
  764. * One more than the last constant for string Unicode properties.
  765. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  766. */
  767. UCHAR_STRING_LIMIT=0x400E,
  768. #endif // U_HIDE_DEPRECATED_API
  769. /** Miscellaneous property Script_Extensions (new in Unicode 6.0).
  770. Some characters are commonly used in multiple scripts.
  771. For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
  772. Corresponds to uscript_hasScript and uscript_getScriptExtensions in uscript.h.
  773. @stable ICU 4.6 */
  774. UCHAR_SCRIPT_EXTENSIONS=0x7000,
  775. /** First constant for Unicode properties with unusual value types. @stable ICU 4.6 */
  776. UCHAR_OTHER_PROPERTY_START=UCHAR_SCRIPT_EXTENSIONS,
  777. #ifndef U_HIDE_DRAFT_API
  778. /**
  779. * Miscellaneous property Identifier_Type.
  780. * Used for UTS #39 General Security Profile for Identifiers
  781. * (https://www.unicode.org/reports/tr39/#General_Security_Profile).
  782. *
  783. * Corresponds to u_hasIDType() and u_getIDTypes().
  784. *
  785. * Each code point maps to a <i>set</i> of UIdentifierType values.
  786. *
  787. * @see u_hasIDType
  788. * @see u_getIDTypes
  789. * @draft ICU 75
  790. */
  791. UCHAR_IDENTIFIER_TYPE=0x7001,
  792. #endif // U_HIDE_DRAFT_API
  793. #ifndef U_HIDE_DEPRECATED_API
  794. /**
  795. * One more than the last constant for Unicode properties with unusual value types.
  796. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  797. */
  798. UCHAR_OTHER_PROPERTY_LIMIT=0x7002,
  799. #endif // U_HIDE_DEPRECATED_API
  800. /** Represents a nonexistent or invalid property or property value. @stable ICU 2.4 */
  801. UCHAR_INVALID_CODE = -1
  802. } UProperty;
  803. /**
  804. * Data for enumerated Unicode general category types.
  805. * See http://www.unicode.org/Public/UNIDATA/UnicodeData.html .
  806. * @stable ICU 2.0
  807. */
  808. typedef enum UCharCategory
  809. {
  810. /*
  811. * Note: UCharCategory constants and their API comments are parsed by preparseucd.py.
  812. * It matches pairs of lines like
  813. * / ** <Unicode 2-letter General_Category value> comment... * /
  814. * U_<[A-Z_]+> = <integer>,
  815. */
  816. /** Non-category for unassigned and non-character code points. @stable ICU 2.0 */
  817. U_UNASSIGNED = 0,
  818. /** Cn "Other, Not Assigned (no characters in [UnicodeData.txt] have this property)" (same as U_UNASSIGNED!) @stable ICU 2.0 */
  819. U_GENERAL_OTHER_TYPES = 0,
  820. /** Lu @stable ICU 2.0 */
  821. U_UPPERCASE_LETTER = 1,
  822. /** Ll @stable ICU 2.0 */
  823. U_LOWERCASE_LETTER = 2,
  824. /** Lt @stable ICU 2.0 */
  825. U_TITLECASE_LETTER = 3,
  826. /** Lm @stable ICU 2.0 */
  827. U_MODIFIER_LETTER = 4,
  828. /** Lo @stable ICU 2.0 */
  829. U_OTHER_LETTER = 5,
  830. /** Mn @stable ICU 2.0 */
  831. U_NON_SPACING_MARK = 6,
  832. /** Me @stable ICU 2.0 */
  833. U_ENCLOSING_MARK = 7,
  834. /** Mc @stable ICU 2.0 */
  835. U_COMBINING_SPACING_MARK = 8,
  836. /** Nd @stable ICU 2.0 */
  837. U_DECIMAL_DIGIT_NUMBER = 9,
  838. /** Nl @stable ICU 2.0 */
  839. U_LETTER_NUMBER = 10,
  840. /** No @stable ICU 2.0 */
  841. U_OTHER_NUMBER = 11,
  842. /** Zs @stable ICU 2.0 */
  843. U_SPACE_SEPARATOR = 12,
  844. /** Zl @stable ICU 2.0 */
  845. U_LINE_SEPARATOR = 13,
  846. /** Zp @stable ICU 2.0 */
  847. U_PARAGRAPH_SEPARATOR = 14,
  848. /** Cc @stable ICU 2.0 */
  849. U_CONTROL_CHAR = 15,
  850. /** Cf @stable ICU 2.0 */
  851. U_FORMAT_CHAR = 16,
  852. /** Co @stable ICU 2.0 */
  853. U_PRIVATE_USE_CHAR = 17,
  854. /** Cs @stable ICU 2.0 */
  855. U_SURROGATE = 18,
  856. /** Pd @stable ICU 2.0 */
  857. U_DASH_PUNCTUATION = 19,
  858. /** Ps @stable ICU 2.0 */
  859. U_START_PUNCTUATION = 20,
  860. /** Pe @stable ICU 2.0 */
  861. U_END_PUNCTUATION = 21,
  862. /** Pc @stable ICU 2.0 */
  863. U_CONNECTOR_PUNCTUATION = 22,
  864. /** Po @stable ICU 2.0 */
  865. U_OTHER_PUNCTUATION = 23,
  866. /** Sm @stable ICU 2.0 */
  867. U_MATH_SYMBOL = 24,
  868. /** Sc @stable ICU 2.0 */
  869. U_CURRENCY_SYMBOL = 25,
  870. /** Sk @stable ICU 2.0 */
  871. U_MODIFIER_SYMBOL = 26,
  872. /** So @stable ICU 2.0 */
  873. U_OTHER_SYMBOL = 27,
  874. /** Pi @stable ICU 2.0 */
  875. U_INITIAL_PUNCTUATION = 28,
  876. /** Pf @stable ICU 2.0 */
  877. U_FINAL_PUNCTUATION = 29,
  878. /**
  879. * One higher than the last enum UCharCategory constant.
  880. * This numeric value is stable (will not change), see
  881. * http://www.unicode.org/policies/stability_policy.html#Property_Value
  882. *
  883. * @stable ICU 2.0
  884. */
  885. U_CHAR_CATEGORY_COUNT
  886. } UCharCategory;
  887. /**
  888. * U_GC_XX_MASK constants are bit flags corresponding to Unicode
  889. * general category values.
  890. * For each category, the nth bit is set if the numeric value of the
  891. * corresponding UCharCategory constant is n.
  892. *
  893. * There are also some U_GC_Y_MASK constants for groups of general categories
  894. * like L for all letter categories.
  895. *
  896. * @see u_charType
  897. * @see U_GET_GC_MASK
  898. * @see UCharCategory
  899. * @stable ICU 2.1
  900. */
  901. #define U_GC_CN_MASK U_MASK(U_GENERAL_OTHER_TYPES)
  902. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  903. #define U_GC_LU_MASK U_MASK(U_UPPERCASE_LETTER)
  904. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  905. #define U_GC_LL_MASK U_MASK(U_LOWERCASE_LETTER)
  906. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  907. #define U_GC_LT_MASK U_MASK(U_TITLECASE_LETTER)
  908. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  909. #define U_GC_LM_MASK U_MASK(U_MODIFIER_LETTER)
  910. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  911. #define U_GC_LO_MASK U_MASK(U_OTHER_LETTER)
  912. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  913. #define U_GC_MN_MASK U_MASK(U_NON_SPACING_MARK)
  914. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  915. #define U_GC_ME_MASK U_MASK(U_ENCLOSING_MARK)
  916. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  917. #define U_GC_MC_MASK U_MASK(U_COMBINING_SPACING_MARK)
  918. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  919. #define U_GC_ND_MASK U_MASK(U_DECIMAL_DIGIT_NUMBER)
  920. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  921. #define U_GC_NL_MASK U_MASK(U_LETTER_NUMBER)
  922. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  923. #define U_GC_NO_MASK U_MASK(U_OTHER_NUMBER)
  924. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  925. #define U_GC_ZS_MASK U_MASK(U_SPACE_SEPARATOR)
  926. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  927. #define U_GC_ZL_MASK U_MASK(U_LINE_SEPARATOR)
  928. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  929. #define U_GC_ZP_MASK U_MASK(U_PARAGRAPH_SEPARATOR)
  930. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  931. #define U_GC_CC_MASK U_MASK(U_CONTROL_CHAR)
  932. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  933. #define U_GC_CF_MASK U_MASK(U_FORMAT_CHAR)
  934. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  935. #define U_GC_CO_MASK U_MASK(U_PRIVATE_USE_CHAR)
  936. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  937. #define U_GC_CS_MASK U_MASK(U_SURROGATE)
  938. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  939. #define U_GC_PD_MASK U_MASK(U_DASH_PUNCTUATION)
  940. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  941. #define U_GC_PS_MASK U_MASK(U_START_PUNCTUATION)
  942. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  943. #define U_GC_PE_MASK U_MASK(U_END_PUNCTUATION)
  944. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  945. #define U_GC_PC_MASK U_MASK(U_CONNECTOR_PUNCTUATION)
  946. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  947. #define U_GC_PO_MASK U_MASK(U_OTHER_PUNCTUATION)
  948. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  949. #define U_GC_SM_MASK U_MASK(U_MATH_SYMBOL)
  950. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  951. #define U_GC_SC_MASK U_MASK(U_CURRENCY_SYMBOL)
  952. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  953. #define U_GC_SK_MASK U_MASK(U_MODIFIER_SYMBOL)
  954. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  955. #define U_GC_SO_MASK U_MASK(U_OTHER_SYMBOL)
  956. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  957. #define U_GC_PI_MASK U_MASK(U_INITIAL_PUNCTUATION)
  958. /** Mask constant for a UCharCategory. @stable ICU 2.1 */
  959. #define U_GC_PF_MASK U_MASK(U_FINAL_PUNCTUATION)
  960. /** Mask constant for multiple UCharCategory bits (L Letters). @stable ICU 2.1 */
  961. #define U_GC_L_MASK \
  962. (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK|U_GC_LM_MASK|U_GC_LO_MASK)
  963. /** Mask constant for multiple UCharCategory bits (LC Cased Letters). @stable ICU 2.1 */
  964. #define U_GC_LC_MASK \
  965. (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK)
  966. /** Mask constant for multiple UCharCategory bits (M Marks). @stable ICU 2.1 */
  967. #define U_GC_M_MASK (U_GC_MN_MASK|U_GC_ME_MASK|U_GC_MC_MASK)
  968. /** Mask constant for multiple UCharCategory bits (N Numbers). @stable ICU 2.1 */
  969. #define U_GC_N_MASK (U_GC_ND_MASK|U_GC_NL_MASK|U_GC_NO_MASK)
  970. /** Mask constant for multiple UCharCategory bits (Z Separators). @stable ICU 2.1 */
  971. #define U_GC_Z_MASK (U_GC_ZS_MASK|U_GC_ZL_MASK|U_GC_ZP_MASK)
  972. /** Mask constant for multiple UCharCategory bits (C Others). @stable ICU 2.1 */
  973. #define U_GC_C_MASK \
  974. (U_GC_CN_MASK|U_GC_CC_MASK|U_GC_CF_MASK|U_GC_CO_MASK|U_GC_CS_MASK)
  975. /** Mask constant for multiple UCharCategory bits (P Punctuation). @stable ICU 2.1 */
  976. #define U_GC_P_MASK \
  977. (U_GC_PD_MASK|U_GC_PS_MASK|U_GC_PE_MASK|U_GC_PC_MASK|U_GC_PO_MASK| \
  978. U_GC_PI_MASK|U_GC_PF_MASK)
  979. /** Mask constant for multiple UCharCategory bits (S Symbols). @stable ICU 2.1 */
  980. #define U_GC_S_MASK (U_GC_SM_MASK|U_GC_SC_MASK|U_GC_SK_MASK|U_GC_SO_MASK)
  981. /**
  982. * This specifies the language directional property of a character set.
  983. * @stable ICU 2.0
  984. */
  985. typedef enum UCharDirection {
  986. /*
  987. * Note: UCharDirection constants and their API comments are parsed by preparseucd.py.
  988. * It matches pairs of lines like
  989. * / ** <Unicode 1..3-letter Bidi_Class value> comment... * /
  990. * U_<[A-Z_]+> = <integer>,
  991. */
  992. /** L @stable ICU 2.0 */
  993. U_LEFT_TO_RIGHT = 0,
  994. /** R @stable ICU 2.0 */
  995. U_RIGHT_TO_LEFT = 1,
  996. /** EN @stable ICU 2.0 */
  997. U_EUROPEAN_NUMBER = 2,
  998. /** ES @stable ICU 2.0 */
  999. U_EUROPEAN_NUMBER_SEPARATOR = 3,
  1000. /** ET @stable ICU 2.0 */
  1001. U_EUROPEAN_NUMBER_TERMINATOR = 4,
  1002. /** AN @stable ICU 2.0 */
  1003. U_ARABIC_NUMBER = 5,
  1004. /** CS @stable ICU 2.0 */
  1005. U_COMMON_NUMBER_SEPARATOR = 6,
  1006. /** B @stable ICU 2.0 */
  1007. U_BLOCK_SEPARATOR = 7,
  1008. /** S @stable ICU 2.0 */
  1009. U_SEGMENT_SEPARATOR = 8,
  1010. /** WS @stable ICU 2.0 */
  1011. U_WHITE_SPACE_NEUTRAL = 9,
  1012. /** ON @stable ICU 2.0 */
  1013. U_OTHER_NEUTRAL = 10,
  1014. /** LRE @stable ICU 2.0 */
  1015. U_LEFT_TO_RIGHT_EMBEDDING = 11,
  1016. /** LRO @stable ICU 2.0 */
  1017. U_LEFT_TO_RIGHT_OVERRIDE = 12,
  1018. /** AL @stable ICU 2.0 */
  1019. U_RIGHT_TO_LEFT_ARABIC = 13,
  1020. /** RLE @stable ICU 2.0 */
  1021. U_RIGHT_TO_LEFT_EMBEDDING = 14,
  1022. /** RLO @stable ICU 2.0 */
  1023. U_RIGHT_TO_LEFT_OVERRIDE = 15,
  1024. /** PDF @stable ICU 2.0 */
  1025. U_POP_DIRECTIONAL_FORMAT = 16,
  1026. /** NSM @stable ICU 2.0 */
  1027. U_DIR_NON_SPACING_MARK = 17,
  1028. /** BN @stable ICU 2.0 */
  1029. U_BOUNDARY_NEUTRAL = 18,
  1030. /** FSI @stable ICU 52 */
  1031. U_FIRST_STRONG_ISOLATE = 19,
  1032. /** LRI @stable ICU 52 */
  1033. U_LEFT_TO_RIGHT_ISOLATE = 20,
  1034. /** RLI @stable ICU 52 */
  1035. U_RIGHT_TO_LEFT_ISOLATE = 21,
  1036. /** PDI @stable ICU 52 */
  1037. U_POP_DIRECTIONAL_ISOLATE = 22,
  1038. #ifndef U_HIDE_DEPRECATED_API
  1039. /**
  1040. * One more than the highest UCharDirection value.
  1041. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_BIDI_CLASS).
  1042. *
  1043. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  1044. */
  1045. U_CHAR_DIRECTION_COUNT
  1046. #endif // U_HIDE_DEPRECATED_API
  1047. } UCharDirection;
  1048. /**
  1049. * Bidi Paired Bracket Type constants.
  1050. *
  1051. * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE
  1052. * @stable ICU 52
  1053. */
  1054. typedef enum UBidiPairedBracketType {
  1055. /*
  1056. * Note: UBidiPairedBracketType constants are parsed by preparseucd.py.
  1057. * It matches lines like
  1058. * U_BPT_<Unicode Bidi_Paired_Bracket_Type value name>
  1059. */
  1060. /** Not a paired bracket. @stable ICU 52 */
  1061. U_BPT_NONE,
  1062. /** Open paired bracket. @stable ICU 52 */
  1063. U_BPT_OPEN,
  1064. /** Close paired bracket. @stable ICU 52 */
  1065. U_BPT_CLOSE,
  1066. #ifndef U_HIDE_DEPRECATED_API
  1067. /**
  1068. * One more than the highest normal UBidiPairedBracketType value.
  1069. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_BIDI_PAIRED_BRACKET_TYPE).
  1070. *
  1071. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  1072. */
  1073. U_BPT_COUNT /* 3 */
  1074. #endif // U_HIDE_DEPRECATED_API
  1075. } UBidiPairedBracketType;
  1076. /**
  1077. * Constants for Unicode blocks, see the Unicode Data file Blocks.txt
  1078. * @stable ICU 2.0
  1079. */
  1080. enum UBlockCode {
  1081. /*
  1082. * Note: UBlockCode constants are parsed by preparseucd.py.
  1083. * It matches lines like
  1084. * UBLOCK_<Unicode Block value name> = <integer>,
  1085. */
  1086. /** New No_Block value in Unicode 4. @stable ICU 2.6 */
  1087. UBLOCK_NO_BLOCK = 0, /*[none]*/ /* Special range indicating No_Block */
  1088. /** @stable ICU 2.0 */
  1089. UBLOCK_BASIC_LATIN = 1, /*[0000]*/
  1090. /** @stable ICU 2.0 */
  1091. UBLOCK_LATIN_1_SUPPLEMENT=2, /*[0080]*/
  1092. /** @stable ICU 2.0 */
  1093. UBLOCK_LATIN_EXTENDED_A =3, /*[0100]*/
  1094. /** @stable ICU 2.0 */
  1095. UBLOCK_LATIN_EXTENDED_B =4, /*[0180]*/
  1096. /** @stable ICU 2.0 */
  1097. UBLOCK_IPA_EXTENSIONS =5, /*[0250]*/
  1098. /** @stable ICU 2.0 */
  1099. UBLOCK_SPACING_MODIFIER_LETTERS =6, /*[02B0]*/
  1100. /** @stable ICU 2.0 */
  1101. UBLOCK_COMBINING_DIACRITICAL_MARKS =7, /*[0300]*/
  1102. /**
  1103. * Unicode 3.2 renames this block to "Greek and Coptic".
  1104. * @stable ICU 2.0
  1105. */
  1106. UBLOCK_GREEK =8, /*[0370]*/
  1107. /** @stable ICU 2.0 */
  1108. UBLOCK_CYRILLIC =9, /*[0400]*/
  1109. /** @stable ICU 2.0 */
  1110. UBLOCK_ARMENIAN =10, /*[0530]*/
  1111. /** @stable ICU 2.0 */
  1112. UBLOCK_HEBREW =11, /*[0590]*/
  1113. /** @stable ICU 2.0 */
  1114. UBLOCK_ARABIC =12, /*[0600]*/
  1115. /** @stable ICU 2.0 */
  1116. UBLOCK_SYRIAC =13, /*[0700]*/
  1117. /** @stable ICU 2.0 */
  1118. UBLOCK_THAANA =14, /*[0780]*/
  1119. /** @stable ICU 2.0 */
  1120. UBLOCK_DEVANAGARI =15, /*[0900]*/
  1121. /** @stable ICU 2.0 */
  1122. UBLOCK_BENGALI =16, /*[0980]*/
  1123. /** @stable ICU 2.0 */
  1124. UBLOCK_GURMUKHI =17, /*[0A00]*/
  1125. /** @stable ICU 2.0 */
  1126. UBLOCK_GUJARATI =18, /*[0A80]*/
  1127. /** @stable ICU 2.0 */
  1128. UBLOCK_ORIYA =19, /*[0B00]*/
  1129. /** @stable ICU 2.0 */
  1130. UBLOCK_TAMIL =20, /*[0B80]*/
  1131. /** @stable ICU 2.0 */
  1132. UBLOCK_TELUGU =21, /*[0C00]*/
  1133. /** @stable ICU 2.0 */
  1134. UBLOCK_KANNADA =22, /*[0C80]*/
  1135. /** @stable ICU 2.0 */
  1136. UBLOCK_MALAYALAM =23, /*[0D00]*/
  1137. /** @stable ICU 2.0 */
  1138. UBLOCK_SINHALA =24, /*[0D80]*/
  1139. /** @stable ICU 2.0 */
  1140. UBLOCK_THAI =25, /*[0E00]*/
  1141. /** @stable ICU 2.0 */
  1142. UBLOCK_LAO =26, /*[0E80]*/
  1143. /** @stable ICU 2.0 */
  1144. UBLOCK_TIBETAN =27, /*[0F00]*/
  1145. /** @stable ICU 2.0 */
  1146. UBLOCK_MYANMAR =28, /*[1000]*/
  1147. /** @stable ICU 2.0 */
  1148. UBLOCK_GEORGIAN =29, /*[10A0]*/
  1149. /** @stable ICU 2.0 */
  1150. UBLOCK_HANGUL_JAMO =30, /*[1100]*/
  1151. /** @stable ICU 2.0 */
  1152. UBLOCK_ETHIOPIC =31, /*[1200]*/
  1153. /** @stable ICU 2.0 */
  1154. UBLOCK_CHEROKEE =32, /*[13A0]*/
  1155. /** @stable ICU 2.0 */
  1156. UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS =33, /*[1400]*/
  1157. /** @stable ICU 2.0 */
  1158. UBLOCK_OGHAM =34, /*[1680]*/
  1159. /** @stable ICU 2.0 */
  1160. UBLOCK_RUNIC =35, /*[16A0]*/
  1161. /** @stable ICU 2.0 */
  1162. UBLOCK_KHMER =36, /*[1780]*/
  1163. /** @stable ICU 2.0 */
  1164. UBLOCK_MONGOLIAN =37, /*[1800]*/
  1165. /** @stable ICU 2.0 */
  1166. UBLOCK_LATIN_EXTENDED_ADDITIONAL =38, /*[1E00]*/
  1167. /** @stable ICU 2.0 */
  1168. UBLOCK_GREEK_EXTENDED =39, /*[1F00]*/
  1169. /** @stable ICU 2.0 */
  1170. UBLOCK_GENERAL_PUNCTUATION =40, /*[2000]*/
  1171. /** @stable ICU 2.0 */
  1172. UBLOCK_SUPERSCRIPTS_AND_SUBSCRIPTS =41, /*[2070]*/
  1173. /** @stable ICU 2.0 */
  1174. UBLOCK_CURRENCY_SYMBOLS =42, /*[20A0]*/
  1175. /**
  1176. * Unicode 3.2 renames this block to "Combining Diacritical Marks for Symbols".
  1177. * @stable ICU 2.0
  1178. */
  1179. UBLOCK_COMBINING_MARKS_FOR_SYMBOLS =43, /*[20D0]*/
  1180. /** @stable ICU 2.0 */
  1181. UBLOCK_LETTERLIKE_SYMBOLS =44, /*[2100]*/
  1182. /** @stable ICU 2.0 */
  1183. UBLOCK_NUMBER_FORMS =45, /*[2150]*/
  1184. /** @stable ICU 2.0 */
  1185. UBLOCK_ARROWS =46, /*[2190]*/
  1186. /** @stable ICU 2.0 */
  1187. UBLOCK_MATHEMATICAL_OPERATORS =47, /*[2200]*/
  1188. /** @stable ICU 2.0 */
  1189. UBLOCK_MISCELLANEOUS_TECHNICAL =48, /*[2300]*/
  1190. /** @stable ICU 2.0 */
  1191. UBLOCK_CONTROL_PICTURES =49, /*[2400]*/
  1192. /** @stable ICU 2.0 */
  1193. UBLOCK_OPTICAL_CHARACTER_RECOGNITION =50, /*[2440]*/
  1194. /** @stable ICU 2.0 */
  1195. UBLOCK_ENCLOSED_ALPHANUMERICS =51, /*[2460]*/
  1196. /** @stable ICU 2.0 */
  1197. UBLOCK_BOX_DRAWING =52, /*[2500]*/
  1198. /** @stable ICU 2.0 */
  1199. UBLOCK_BLOCK_ELEMENTS =53, /*[2580]*/
  1200. /** @stable ICU 2.0 */
  1201. UBLOCK_GEOMETRIC_SHAPES =54, /*[25A0]*/
  1202. /** @stable ICU 2.0 */
  1203. UBLOCK_MISCELLANEOUS_SYMBOLS =55, /*[2600]*/
  1204. /** @stable ICU 2.0 */
  1205. UBLOCK_DINGBATS =56, /*[2700]*/
  1206. /** @stable ICU 2.0 */
  1207. UBLOCK_BRAILLE_PATTERNS =57, /*[2800]*/
  1208. /** @stable ICU 2.0 */
  1209. UBLOCK_CJK_RADICALS_SUPPLEMENT =58, /*[2E80]*/
  1210. /** @stable ICU 2.0 */
  1211. UBLOCK_KANGXI_RADICALS =59, /*[2F00]*/
  1212. /** @stable ICU 2.0 */
  1213. UBLOCK_IDEOGRAPHIC_DESCRIPTION_CHARACTERS =60, /*[2FF0]*/
  1214. /** @stable ICU 2.0 */
  1215. UBLOCK_CJK_SYMBOLS_AND_PUNCTUATION =61, /*[3000]*/
  1216. /** @stable ICU 2.0 */
  1217. UBLOCK_HIRAGANA =62, /*[3040]*/
  1218. /** @stable ICU 2.0 */
  1219. UBLOCK_KATAKANA =63, /*[30A0]*/
  1220. /** @stable ICU 2.0 */
  1221. UBLOCK_BOPOMOFO =64, /*[3100]*/
  1222. /** @stable ICU 2.0 */
  1223. UBLOCK_HANGUL_COMPATIBILITY_JAMO =65, /*[3130]*/
  1224. /** @stable ICU 2.0 */
  1225. UBLOCK_KANBUN =66, /*[3190]*/
  1226. /** @stable ICU 2.0 */
  1227. UBLOCK_BOPOMOFO_EXTENDED =67, /*[31A0]*/
  1228. /** @stable ICU 2.0 */
  1229. UBLOCK_ENCLOSED_CJK_LETTERS_AND_MONTHS =68, /*[3200]*/
  1230. /** @stable ICU 2.0 */
  1231. UBLOCK_CJK_COMPATIBILITY =69, /*[3300]*/
  1232. /** @stable ICU 2.0 */
  1233. UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A =70, /*[3400]*/
  1234. /** @stable ICU 2.0 */
  1235. UBLOCK_CJK_UNIFIED_IDEOGRAPHS =71, /*[4E00]*/
  1236. /** @stable ICU 2.0 */
  1237. UBLOCK_YI_SYLLABLES =72, /*[A000]*/
  1238. /** @stable ICU 2.0 */
  1239. UBLOCK_YI_RADICALS =73, /*[A490]*/
  1240. /** @stable ICU 2.0 */
  1241. UBLOCK_HANGUL_SYLLABLES =74, /*[AC00]*/
  1242. /** @stable ICU 2.0 */
  1243. UBLOCK_HIGH_SURROGATES =75, /*[D800]*/
  1244. /** @stable ICU 2.0 */
  1245. UBLOCK_HIGH_PRIVATE_USE_SURROGATES =76, /*[DB80]*/
  1246. /** @stable ICU 2.0 */
  1247. UBLOCK_LOW_SURROGATES =77, /*[DC00]*/
  1248. /**
  1249. * Same as UBLOCK_PRIVATE_USE.
  1250. * Until Unicode 3.1.1, the corresponding block name was "Private Use",
  1251. * and multiple code point ranges had this block.
  1252. * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and
  1253. * adds separate blocks for the supplementary PUAs.
  1254. *
  1255. * @stable ICU 2.0
  1256. */
  1257. UBLOCK_PRIVATE_USE_AREA =78, /*[E000]*/
  1258. /**
  1259. * Same as UBLOCK_PRIVATE_USE_AREA.
  1260. * Until Unicode 3.1.1, the corresponding block name was "Private Use",
  1261. * and multiple code point ranges had this block.
  1262. * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and
  1263. * adds separate blocks for the supplementary PUAs.
  1264. *
  1265. * @stable ICU 2.0
  1266. */
  1267. UBLOCK_PRIVATE_USE = UBLOCK_PRIVATE_USE_AREA,
  1268. /** @stable ICU 2.0 */
  1269. UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS =79, /*[F900]*/
  1270. /** @stable ICU 2.0 */
  1271. UBLOCK_ALPHABETIC_PRESENTATION_FORMS =80, /*[FB00]*/
  1272. /** @stable ICU 2.0 */
  1273. UBLOCK_ARABIC_PRESENTATION_FORMS_A =81, /*[FB50]*/
  1274. /** @stable ICU 2.0 */
  1275. UBLOCK_COMBINING_HALF_MARKS =82, /*[FE20]*/
  1276. /** @stable ICU 2.0 */
  1277. UBLOCK_CJK_COMPATIBILITY_FORMS =83, /*[FE30]*/
  1278. /** @stable ICU 2.0 */
  1279. UBLOCK_SMALL_FORM_VARIANTS =84, /*[FE50]*/
  1280. /** @stable ICU 2.0 */
  1281. UBLOCK_ARABIC_PRESENTATION_FORMS_B =85, /*[FE70]*/
  1282. /** @stable ICU 2.0 */
  1283. UBLOCK_SPECIALS =86, /*[FFF0]*/
  1284. /** @stable ICU 2.0 */
  1285. UBLOCK_HALFWIDTH_AND_FULLWIDTH_FORMS =87, /*[FF00]*/
  1286. /* New blocks in Unicode 3.1 */
  1287. /** @stable ICU 2.0 */
  1288. UBLOCK_OLD_ITALIC = 88, /*[10300]*/
  1289. /** @stable ICU 2.0 */
  1290. UBLOCK_GOTHIC = 89, /*[10330]*/
  1291. /** @stable ICU 2.0 */
  1292. UBLOCK_DESERET = 90, /*[10400]*/
  1293. /** @stable ICU 2.0 */
  1294. UBLOCK_BYZANTINE_MUSICAL_SYMBOLS = 91, /*[1D000]*/
  1295. /** @stable ICU 2.0 */
  1296. UBLOCK_MUSICAL_SYMBOLS = 92, /*[1D100]*/
  1297. /** @stable ICU 2.0 */
  1298. UBLOCK_MATHEMATICAL_ALPHANUMERIC_SYMBOLS = 93, /*[1D400]*/
  1299. /** @stable ICU 2.0 */
  1300. UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B = 94, /*[20000]*/
  1301. /** @stable ICU 2.0 */
  1302. UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT = 95, /*[2F800]*/
  1303. /** @stable ICU 2.0 */
  1304. UBLOCK_TAGS = 96, /*[E0000]*/
  1305. /* New blocks in Unicode 3.2 */
  1306. /** @stable ICU 3.0 */
  1307. UBLOCK_CYRILLIC_SUPPLEMENT = 97, /*[0500]*/
  1308. /**
  1309. * Unicode 4.0.1 renames the "Cyrillic Supplementary" block to "Cyrillic Supplement".
  1310. * @stable ICU 2.2
  1311. */
  1312. UBLOCK_CYRILLIC_SUPPLEMENTARY = UBLOCK_CYRILLIC_SUPPLEMENT,
  1313. /** @stable ICU 2.2 */
  1314. UBLOCK_TAGALOG = 98, /*[1700]*/
  1315. /** @stable ICU 2.2 */
  1316. UBLOCK_HANUNOO = 99, /*[1720]*/
  1317. /** @stable ICU 2.2 */
  1318. UBLOCK_BUHID = 100, /*[1740]*/
  1319. /** @stable ICU 2.2 */
  1320. UBLOCK_TAGBANWA = 101, /*[1760]*/
  1321. /** @stable ICU 2.2 */
  1322. UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A = 102, /*[27C0]*/
  1323. /** @stable ICU 2.2 */
  1324. UBLOCK_SUPPLEMENTAL_ARROWS_A = 103, /*[27F0]*/
  1325. /** @stable ICU 2.2 */
  1326. UBLOCK_SUPPLEMENTAL_ARROWS_B = 104, /*[2900]*/
  1327. /** @stable ICU 2.2 */
  1328. UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B = 105, /*[2980]*/
  1329. /** @stable ICU 2.2 */
  1330. UBLOCK_SUPPLEMENTAL_MATHEMATICAL_OPERATORS = 106, /*[2A00]*/
  1331. /** @stable ICU 2.2 */
  1332. UBLOCK_KATAKANA_PHONETIC_EXTENSIONS = 107, /*[31F0]*/
  1333. /** @stable ICU 2.2 */
  1334. UBLOCK_VARIATION_SELECTORS = 108, /*[FE00]*/
  1335. /** @stable ICU 2.2 */
  1336. UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_A = 109, /*[F0000]*/
  1337. /** @stable ICU 2.2 */
  1338. UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_B = 110, /*[100000]*/
  1339. /* New blocks in Unicode 4 */
  1340. /** @stable ICU 2.6 */
  1341. UBLOCK_LIMBU = 111, /*[1900]*/
  1342. /** @stable ICU 2.6 */
  1343. UBLOCK_TAI_LE = 112, /*[1950]*/
  1344. /** @stable ICU 2.6 */
  1345. UBLOCK_KHMER_SYMBOLS = 113, /*[19E0]*/
  1346. /** @stable ICU 2.6 */
  1347. UBLOCK_PHONETIC_EXTENSIONS = 114, /*[1D00]*/
  1348. /** @stable ICU 2.6 */
  1349. UBLOCK_MISCELLANEOUS_SYMBOLS_AND_ARROWS = 115, /*[2B00]*/
  1350. /** @stable ICU 2.6 */
  1351. UBLOCK_YIJING_HEXAGRAM_SYMBOLS = 116, /*[4DC0]*/
  1352. /** @stable ICU 2.6 */
  1353. UBLOCK_LINEAR_B_SYLLABARY = 117, /*[10000]*/
  1354. /** @stable ICU 2.6 */
  1355. UBLOCK_LINEAR_B_IDEOGRAMS = 118, /*[10080]*/
  1356. /** @stable ICU 2.6 */
  1357. UBLOCK_AEGEAN_NUMBERS = 119, /*[10100]*/
  1358. /** @stable ICU 2.6 */
  1359. UBLOCK_UGARITIC = 120, /*[10380]*/
  1360. /** @stable ICU 2.6 */
  1361. UBLOCK_SHAVIAN = 121, /*[10450]*/
  1362. /** @stable ICU 2.6 */
  1363. UBLOCK_OSMANYA = 122, /*[10480]*/
  1364. /** @stable ICU 2.6 */
  1365. UBLOCK_CYPRIOT_SYLLABARY = 123, /*[10800]*/
  1366. /** @stable ICU 2.6 */
  1367. UBLOCK_TAI_XUAN_JING_SYMBOLS = 124, /*[1D300]*/
  1368. /** @stable ICU 2.6 */
  1369. UBLOCK_VARIATION_SELECTORS_SUPPLEMENT = 125, /*[E0100]*/
  1370. /* New blocks in Unicode 4.1 */
  1371. /** @stable ICU 3.4 */
  1372. UBLOCK_ANCIENT_GREEK_MUSICAL_NOTATION = 126, /*[1D200]*/
  1373. /** @stable ICU 3.4 */
  1374. UBLOCK_ANCIENT_GREEK_NUMBERS = 127, /*[10140]*/
  1375. /** @stable ICU 3.4 */
  1376. UBLOCK_ARABIC_SUPPLEMENT = 128, /*[0750]*/
  1377. /** @stable ICU 3.4 */
  1378. UBLOCK_BUGINESE = 129, /*[1A00]*/
  1379. /** @stable ICU 3.4 */
  1380. UBLOCK_CJK_STROKES = 130, /*[31C0]*/
  1381. /** @stable ICU 3.4 */
  1382. UBLOCK_COMBINING_DIACRITICAL_MARKS_SUPPLEMENT = 131, /*[1DC0]*/
  1383. /** @stable ICU 3.4 */
  1384. UBLOCK_COPTIC = 132, /*[2C80]*/
  1385. /** @stable ICU 3.4 */
  1386. UBLOCK_ETHIOPIC_EXTENDED = 133, /*[2D80]*/
  1387. /** @stable ICU 3.4 */
  1388. UBLOCK_ETHIOPIC_SUPPLEMENT = 134, /*[1380]*/
  1389. /** @stable ICU 3.4 */
  1390. UBLOCK_GEORGIAN_SUPPLEMENT = 135, /*[2D00]*/
  1391. /** @stable ICU 3.4 */
  1392. UBLOCK_GLAGOLITIC = 136, /*[2C00]*/
  1393. /** @stable ICU 3.4 */
  1394. UBLOCK_KHAROSHTHI = 137, /*[10A00]*/
  1395. /** @stable ICU 3.4 */
  1396. UBLOCK_MODIFIER_TONE_LETTERS = 138, /*[A700]*/
  1397. /** @stable ICU 3.4 */
  1398. UBLOCK_NEW_TAI_LUE = 139, /*[1980]*/
  1399. /** @stable ICU 3.4 */
  1400. UBLOCK_OLD_PERSIAN = 140, /*[103A0]*/
  1401. /** @stable ICU 3.4 */
  1402. UBLOCK_PHONETIC_EXTENSIONS_SUPPLEMENT = 141, /*[1D80]*/
  1403. /** @stable ICU 3.4 */
  1404. UBLOCK_SUPPLEMENTAL_PUNCTUATION = 142, /*[2E00]*/
  1405. /** @stable ICU 3.4 */
  1406. UBLOCK_SYLOTI_NAGRI = 143, /*[A800]*/
  1407. /** @stable ICU 3.4 */
  1408. UBLOCK_TIFINAGH = 144, /*[2D30]*/
  1409. /** @stable ICU 3.4 */
  1410. UBLOCK_VERTICAL_FORMS = 145, /*[FE10]*/
  1411. /* New blocks in Unicode 5.0 */
  1412. /** @stable ICU 3.6 */
  1413. UBLOCK_NKO = 146, /*[07C0]*/
  1414. /** @stable ICU 3.6 */
  1415. UBLOCK_BALINESE = 147, /*[1B00]*/
  1416. /** @stable ICU 3.6 */
  1417. UBLOCK_LATIN_EXTENDED_C = 148, /*[2C60]*/
  1418. /** @stable ICU 3.6 */
  1419. UBLOCK_LATIN_EXTENDED_D = 149, /*[A720]*/
  1420. /** @stable ICU 3.6 */
  1421. UBLOCK_PHAGS_PA = 150, /*[A840]*/
  1422. /** @stable ICU 3.6 */
  1423. UBLOCK_PHOENICIAN = 151, /*[10900]*/
  1424. /** @stable ICU 3.6 */
  1425. UBLOCK_CUNEIFORM = 152, /*[12000]*/
  1426. /** @stable ICU 3.6 */
  1427. UBLOCK_CUNEIFORM_NUMBERS_AND_PUNCTUATION = 153, /*[12400]*/
  1428. /** @stable ICU 3.6 */
  1429. UBLOCK_COUNTING_ROD_NUMERALS = 154, /*[1D360]*/
  1430. /* New blocks in Unicode 5.1 */
  1431. /** @stable ICU 4.0 */
  1432. UBLOCK_SUNDANESE = 155, /*[1B80]*/
  1433. /** @stable ICU 4.0 */
  1434. UBLOCK_LEPCHA = 156, /*[1C00]*/
  1435. /** @stable ICU 4.0 */
  1436. UBLOCK_OL_CHIKI = 157, /*[1C50]*/
  1437. /** @stable ICU 4.0 */
  1438. UBLOCK_CYRILLIC_EXTENDED_A = 158, /*[2DE0]*/
  1439. /** @stable ICU 4.0 */
  1440. UBLOCK_VAI = 159, /*[A500]*/
  1441. /** @stable ICU 4.0 */
  1442. UBLOCK_CYRILLIC_EXTENDED_B = 160, /*[A640]*/
  1443. /** @stable ICU 4.0 */
  1444. UBLOCK_SAURASHTRA = 161, /*[A880]*/
  1445. /** @stable ICU 4.0 */
  1446. UBLOCK_KAYAH_LI = 162, /*[A900]*/
  1447. /** @stable ICU 4.0 */
  1448. UBLOCK_REJANG = 163, /*[A930]*/
  1449. /** @stable ICU 4.0 */
  1450. UBLOCK_CHAM = 164, /*[AA00]*/
  1451. /** @stable ICU 4.0 */
  1452. UBLOCK_ANCIENT_SYMBOLS = 165, /*[10190]*/
  1453. /** @stable ICU 4.0 */
  1454. UBLOCK_PHAISTOS_DISC = 166, /*[101D0]*/
  1455. /** @stable ICU 4.0 */
  1456. UBLOCK_LYCIAN = 167, /*[10280]*/
  1457. /** @stable ICU 4.0 */
  1458. UBLOCK_CARIAN = 168, /*[102A0]*/
  1459. /** @stable ICU 4.0 */
  1460. UBLOCK_LYDIAN = 169, /*[10920]*/
  1461. /** @stable ICU 4.0 */
  1462. UBLOCK_MAHJONG_TILES = 170, /*[1F000]*/
  1463. /** @stable ICU 4.0 */
  1464. UBLOCK_DOMINO_TILES = 171, /*[1F030]*/
  1465. /* New blocks in Unicode 5.2 */
  1466. /** @stable ICU 4.4 */
  1467. UBLOCK_SAMARITAN = 172, /*[0800]*/
  1468. /** @stable ICU 4.4 */
  1469. UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED = 173, /*[18B0]*/
  1470. /** @stable ICU 4.4 */
  1471. UBLOCK_TAI_THAM = 174, /*[1A20]*/
  1472. /** @stable ICU 4.4 */
  1473. UBLOCK_VEDIC_EXTENSIONS = 175, /*[1CD0]*/
  1474. /** @stable ICU 4.4 */
  1475. UBLOCK_LISU = 176, /*[A4D0]*/
  1476. /** @stable ICU 4.4 */
  1477. UBLOCK_BAMUM = 177, /*[A6A0]*/
  1478. /** @stable ICU 4.4 */
  1479. UBLOCK_COMMON_INDIC_NUMBER_FORMS = 178, /*[A830]*/
  1480. /** @stable ICU 4.4 */
  1481. UBLOCK_DEVANAGARI_EXTENDED = 179, /*[A8E0]*/
  1482. /** @stable ICU 4.4 */
  1483. UBLOCK_HANGUL_JAMO_EXTENDED_A = 180, /*[A960]*/
  1484. /** @stable ICU 4.4 */
  1485. UBLOCK_JAVANESE = 181, /*[A980]*/
  1486. /** @stable ICU 4.4 */
  1487. UBLOCK_MYANMAR_EXTENDED_A = 182, /*[AA60]*/
  1488. /** @stable ICU 4.4 */
  1489. UBLOCK_TAI_VIET = 183, /*[AA80]*/
  1490. /** @stable ICU 4.4 */
  1491. UBLOCK_MEETEI_MAYEK = 184, /*[ABC0]*/
  1492. /** @stable ICU 4.4 */
  1493. UBLOCK_HANGUL_JAMO_EXTENDED_B = 185, /*[D7B0]*/
  1494. /** @stable ICU 4.4 */
  1495. UBLOCK_IMPERIAL_ARAMAIC = 186, /*[10840]*/
  1496. /** @stable ICU 4.4 */
  1497. UBLOCK_OLD_SOUTH_ARABIAN = 187, /*[10A60]*/
  1498. /** @stable ICU 4.4 */
  1499. UBLOCK_AVESTAN = 188, /*[10B00]*/
  1500. /** @stable ICU 4.4 */
  1501. UBLOCK_INSCRIPTIONAL_PARTHIAN = 189, /*[10B40]*/
  1502. /** @stable ICU 4.4 */
  1503. UBLOCK_INSCRIPTIONAL_PAHLAVI = 190, /*[10B60]*/
  1504. /** @stable ICU 4.4 */
  1505. UBLOCK_OLD_TURKIC = 191, /*[10C00]*/
  1506. /** @stable ICU 4.4 */
  1507. UBLOCK_RUMI_NUMERAL_SYMBOLS = 192, /*[10E60]*/
  1508. /** @stable ICU 4.4 */
  1509. UBLOCK_KAITHI = 193, /*[11080]*/
  1510. /** @stable ICU 4.4 */
  1511. UBLOCK_EGYPTIAN_HIEROGLYPHS = 194, /*[13000]*/
  1512. /** @stable ICU 4.4 */
  1513. UBLOCK_ENCLOSED_ALPHANUMERIC_SUPPLEMENT = 195, /*[1F100]*/
  1514. /** @stable ICU 4.4 */
  1515. UBLOCK_ENCLOSED_IDEOGRAPHIC_SUPPLEMENT = 196, /*[1F200]*/
  1516. /** @stable ICU 4.4 */
  1517. UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C = 197, /*[2A700]*/
  1518. /* New blocks in Unicode 6.0 */
  1519. /** @stable ICU 4.6 */
  1520. UBLOCK_MANDAIC = 198, /*[0840]*/
  1521. /** @stable ICU 4.6 */
  1522. UBLOCK_BATAK = 199, /*[1BC0]*/
  1523. /** @stable ICU 4.6 */
  1524. UBLOCK_ETHIOPIC_EXTENDED_A = 200, /*[AB00]*/
  1525. /** @stable ICU 4.6 */
  1526. UBLOCK_BRAHMI = 201, /*[11000]*/
  1527. /** @stable ICU 4.6 */
  1528. UBLOCK_BAMUM_SUPPLEMENT = 202, /*[16800]*/
  1529. /** @stable ICU 4.6 */
  1530. UBLOCK_KANA_SUPPLEMENT = 203, /*[1B000]*/
  1531. /** @stable ICU 4.6 */
  1532. UBLOCK_PLAYING_CARDS = 204, /*[1F0A0]*/
  1533. /** @stable ICU 4.6 */
  1534. UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS = 205, /*[1F300]*/
  1535. /** @stable ICU 4.6 */
  1536. UBLOCK_EMOTICONS = 206, /*[1F600]*/
  1537. /** @stable ICU 4.6 */
  1538. UBLOCK_TRANSPORT_AND_MAP_SYMBOLS = 207, /*[1F680]*/
  1539. /** @stable ICU 4.6 */
  1540. UBLOCK_ALCHEMICAL_SYMBOLS = 208, /*[1F700]*/
  1541. /** @stable ICU 4.6 */
  1542. UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D = 209, /*[2B740]*/
  1543. /* New blocks in Unicode 6.1 */
  1544. /** @stable ICU 49 */
  1545. UBLOCK_ARABIC_EXTENDED_A = 210, /*[08A0]*/
  1546. /** @stable ICU 49 */
  1547. UBLOCK_ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS = 211, /*[1EE00]*/
  1548. /** @stable ICU 49 */
  1549. UBLOCK_CHAKMA = 212, /*[11100]*/
  1550. /** @stable ICU 49 */
  1551. UBLOCK_MEETEI_MAYEK_EXTENSIONS = 213, /*[AAE0]*/
  1552. /** @stable ICU 49 */
  1553. UBLOCK_MEROITIC_CURSIVE = 214, /*[109A0]*/
  1554. /** @stable ICU 49 */
  1555. UBLOCK_MEROITIC_HIEROGLYPHS = 215, /*[10980]*/
  1556. /** @stable ICU 49 */
  1557. UBLOCK_MIAO = 216, /*[16F00]*/
  1558. /** @stable ICU 49 */
  1559. UBLOCK_SHARADA = 217, /*[11180]*/
  1560. /** @stable ICU 49 */
  1561. UBLOCK_SORA_SOMPENG = 218, /*[110D0]*/
  1562. /** @stable ICU 49 */
  1563. UBLOCK_SUNDANESE_SUPPLEMENT = 219, /*[1CC0]*/
  1564. /** @stable ICU 49 */
  1565. UBLOCK_TAKRI = 220, /*[11680]*/
  1566. /* New blocks in Unicode 7.0 */
  1567. /** @stable ICU 54 */
  1568. UBLOCK_BASSA_VAH = 221, /*[16AD0]*/
  1569. /** @stable ICU 54 */
  1570. UBLOCK_CAUCASIAN_ALBANIAN = 222, /*[10530]*/
  1571. /** @stable ICU 54 */
  1572. UBLOCK_COPTIC_EPACT_NUMBERS = 223, /*[102E0]*/
  1573. /** @stable ICU 54 */
  1574. UBLOCK_COMBINING_DIACRITICAL_MARKS_EXTENDED = 224, /*[1AB0]*/
  1575. /** @stable ICU 54 */
  1576. UBLOCK_DUPLOYAN = 225, /*[1BC00]*/
  1577. /** @stable ICU 54 */
  1578. UBLOCK_ELBASAN = 226, /*[10500]*/
  1579. /** @stable ICU 54 */
  1580. UBLOCK_GEOMETRIC_SHAPES_EXTENDED = 227, /*[1F780]*/
  1581. /** @stable ICU 54 */
  1582. UBLOCK_GRANTHA = 228, /*[11300]*/
  1583. /** @stable ICU 54 */
  1584. UBLOCK_KHOJKI = 229, /*[11200]*/
  1585. /** @stable ICU 54 */
  1586. UBLOCK_KHUDAWADI = 230, /*[112B0]*/
  1587. /** @stable ICU 54 */
  1588. UBLOCK_LATIN_EXTENDED_E = 231, /*[AB30]*/
  1589. /** @stable ICU 54 */
  1590. UBLOCK_LINEAR_A = 232, /*[10600]*/
  1591. /** @stable ICU 54 */
  1592. UBLOCK_MAHAJANI = 233, /*[11150]*/
  1593. /** @stable ICU 54 */
  1594. UBLOCK_MANICHAEAN = 234, /*[10AC0]*/
  1595. /** @stable ICU 54 */
  1596. UBLOCK_MENDE_KIKAKUI = 235, /*[1E800]*/
  1597. /** @stable ICU 54 */
  1598. UBLOCK_MODI = 236, /*[11600]*/
  1599. /** @stable ICU 54 */
  1600. UBLOCK_MRO = 237, /*[16A40]*/
  1601. /** @stable ICU 54 */
  1602. UBLOCK_MYANMAR_EXTENDED_B = 238, /*[A9E0]*/
  1603. /** @stable ICU 54 */
  1604. UBLOCK_NABATAEAN = 239, /*[10880]*/
  1605. /** @stable ICU 54 */
  1606. UBLOCK_OLD_NORTH_ARABIAN = 240, /*[10A80]*/
  1607. /** @stable ICU 54 */
  1608. UBLOCK_OLD_PERMIC = 241, /*[10350]*/
  1609. /** @stable ICU 54 */
  1610. UBLOCK_ORNAMENTAL_DINGBATS = 242, /*[1F650]*/
  1611. /** @stable ICU 54 */
  1612. UBLOCK_PAHAWH_HMONG = 243, /*[16B00]*/
  1613. /** @stable ICU 54 */
  1614. UBLOCK_PALMYRENE = 244, /*[10860]*/
  1615. /** @stable ICU 54 */
  1616. UBLOCK_PAU_CIN_HAU = 245, /*[11AC0]*/
  1617. /** @stable ICU 54 */
  1618. UBLOCK_PSALTER_PAHLAVI = 246, /*[10B80]*/
  1619. /** @stable ICU 54 */
  1620. UBLOCK_SHORTHAND_FORMAT_CONTROLS = 247, /*[1BCA0]*/
  1621. /** @stable ICU 54 */
  1622. UBLOCK_SIDDHAM = 248, /*[11580]*/
  1623. /** @stable ICU 54 */
  1624. UBLOCK_SINHALA_ARCHAIC_NUMBERS = 249, /*[111E0]*/
  1625. /** @stable ICU 54 */
  1626. UBLOCK_SUPPLEMENTAL_ARROWS_C = 250, /*[1F800]*/
  1627. /** @stable ICU 54 */
  1628. UBLOCK_TIRHUTA = 251, /*[11480]*/
  1629. /** @stable ICU 54 */
  1630. UBLOCK_WARANG_CITI = 252, /*[118A0]*/
  1631. /* New blocks in Unicode 8.0 */
  1632. /** @stable ICU 56 */
  1633. UBLOCK_AHOM = 253, /*[11700]*/
  1634. /** @stable ICU 56 */
  1635. UBLOCK_ANATOLIAN_HIEROGLYPHS = 254, /*[14400]*/
  1636. /** @stable ICU 56 */
  1637. UBLOCK_CHEROKEE_SUPPLEMENT = 255, /*[AB70]*/
  1638. /** @stable ICU 56 */
  1639. UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E = 256, /*[2B820]*/
  1640. /** @stable ICU 56 */
  1641. UBLOCK_EARLY_DYNASTIC_CUNEIFORM = 257, /*[12480]*/
  1642. /** @stable ICU 56 */
  1643. UBLOCK_HATRAN = 258, /*[108E0]*/
  1644. /** @stable ICU 56 */
  1645. UBLOCK_MULTANI = 259, /*[11280]*/
  1646. /** @stable ICU 56 */
  1647. UBLOCK_OLD_HUNGARIAN = 260, /*[10C80]*/
  1648. /** @stable ICU 56 */
  1649. UBLOCK_SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS = 261, /*[1F900]*/
  1650. /** @stable ICU 56 */
  1651. UBLOCK_SUTTON_SIGNWRITING = 262, /*[1D800]*/
  1652. /* New blocks in Unicode 9.0 */
  1653. /** @stable ICU 58 */
  1654. UBLOCK_ADLAM = 263, /*[1E900]*/
  1655. /** @stable ICU 58 */
  1656. UBLOCK_BHAIKSUKI = 264, /*[11C00]*/
  1657. /** @stable ICU 58 */
  1658. UBLOCK_CYRILLIC_EXTENDED_C = 265, /*[1C80]*/
  1659. /** @stable ICU 58 */
  1660. UBLOCK_GLAGOLITIC_SUPPLEMENT = 266, /*[1E000]*/
  1661. /** @stable ICU 58 */
  1662. UBLOCK_IDEOGRAPHIC_SYMBOLS_AND_PUNCTUATION = 267, /*[16FE0]*/
  1663. /** @stable ICU 58 */
  1664. UBLOCK_MARCHEN = 268, /*[11C70]*/
  1665. /** @stable ICU 58 */
  1666. UBLOCK_MONGOLIAN_SUPPLEMENT = 269, /*[11660]*/
  1667. /** @stable ICU 58 */
  1668. UBLOCK_NEWA = 270, /*[11400]*/
  1669. /** @stable ICU 58 */
  1670. UBLOCK_OSAGE = 271, /*[104B0]*/
  1671. /** @stable ICU 58 */
  1672. UBLOCK_TANGUT = 272, /*[17000]*/
  1673. /** @stable ICU 58 */
  1674. UBLOCK_TANGUT_COMPONENTS = 273, /*[18800]*/
  1675. // New blocks in Unicode 10.0
  1676. /** @stable ICU 60 */
  1677. UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F = 274, /*[2CEB0]*/
  1678. /** @stable ICU 60 */
  1679. UBLOCK_KANA_EXTENDED_A = 275, /*[1B100]*/
  1680. /** @stable ICU 60 */
  1681. UBLOCK_MASARAM_GONDI = 276, /*[11D00]*/
  1682. /** @stable ICU 60 */
  1683. UBLOCK_NUSHU = 277, /*[1B170]*/
  1684. /** @stable ICU 60 */
  1685. UBLOCK_SOYOMBO = 278, /*[11A50]*/
  1686. /** @stable ICU 60 */
  1687. UBLOCK_SYRIAC_SUPPLEMENT = 279, /*[0860]*/
  1688. /** @stable ICU 60 */
  1689. UBLOCK_ZANABAZAR_SQUARE = 280, /*[11A00]*/
  1690. // New blocks in Unicode 11.0
  1691. /** @stable ICU 62 */
  1692. UBLOCK_CHESS_SYMBOLS = 281, /*[1FA00]*/
  1693. /** @stable ICU 62 */
  1694. UBLOCK_DOGRA = 282, /*[11800]*/
  1695. /** @stable ICU 62 */
  1696. UBLOCK_GEORGIAN_EXTENDED = 283, /*[1C90]*/
  1697. /** @stable ICU 62 */
  1698. UBLOCK_GUNJALA_GONDI = 284, /*[11D60]*/
  1699. /** @stable ICU 62 */
  1700. UBLOCK_HANIFI_ROHINGYA = 285, /*[10D00]*/
  1701. /** @stable ICU 62 */
  1702. UBLOCK_INDIC_SIYAQ_NUMBERS = 286, /*[1EC70]*/
  1703. /** @stable ICU 62 */
  1704. UBLOCK_MAKASAR = 287, /*[11EE0]*/
  1705. /** @stable ICU 62 */
  1706. UBLOCK_MAYAN_NUMERALS = 288, /*[1D2E0]*/
  1707. /** @stable ICU 62 */
  1708. UBLOCK_MEDEFAIDRIN = 289, /*[16E40]*/
  1709. /** @stable ICU 62 */
  1710. UBLOCK_OLD_SOGDIAN = 290, /*[10F00]*/
  1711. /** @stable ICU 62 */
  1712. UBLOCK_SOGDIAN = 291, /*[10F30]*/
  1713. // New blocks in Unicode 12.0
  1714. /** @stable ICU 64 */
  1715. UBLOCK_EGYPTIAN_HIEROGLYPH_FORMAT_CONTROLS = 292, /*[13430]*/
  1716. /** @stable ICU 64 */
  1717. UBLOCK_ELYMAIC = 293, /*[10FE0]*/
  1718. /** @stable ICU 64 */
  1719. UBLOCK_NANDINAGARI = 294, /*[119A0]*/
  1720. /** @stable ICU 64 */
  1721. UBLOCK_NYIAKENG_PUACHUE_HMONG = 295, /*[1E100]*/
  1722. /** @stable ICU 64 */
  1723. UBLOCK_OTTOMAN_SIYAQ_NUMBERS = 296, /*[1ED00]*/
  1724. /** @stable ICU 64 */
  1725. UBLOCK_SMALL_KANA_EXTENSION = 297, /*[1B130]*/
  1726. /** @stable ICU 64 */
  1727. UBLOCK_SYMBOLS_AND_PICTOGRAPHS_EXTENDED_A = 298, /*[1FA70]*/
  1728. /** @stable ICU 64 */
  1729. UBLOCK_TAMIL_SUPPLEMENT = 299, /*[11FC0]*/
  1730. /** @stable ICU 64 */
  1731. UBLOCK_WANCHO = 300, /*[1E2C0]*/
  1732. // New blocks in Unicode 13.0
  1733. /** @stable ICU 66 */
  1734. UBLOCK_CHORASMIAN = 301, /*[10FB0]*/
  1735. /** @stable ICU 66 */
  1736. UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G = 302, /*[30000]*/
  1737. /** @stable ICU 66 */
  1738. UBLOCK_DIVES_AKURU = 303, /*[11900]*/
  1739. /** @stable ICU 66 */
  1740. UBLOCK_KHITAN_SMALL_SCRIPT = 304, /*[18B00]*/
  1741. /** @stable ICU 66 */
  1742. UBLOCK_LISU_SUPPLEMENT = 305, /*[11FB0]*/
  1743. /** @stable ICU 66 */
  1744. UBLOCK_SYMBOLS_FOR_LEGACY_COMPUTING = 306, /*[1FB00]*/
  1745. /** @stable ICU 66 */
  1746. UBLOCK_TANGUT_SUPPLEMENT = 307, /*[18D00]*/
  1747. /** @stable ICU 66 */
  1748. UBLOCK_YEZIDI = 308, /*[10E80]*/
  1749. // New blocks in Unicode 14.0
  1750. /** @stable ICU 70 */
  1751. UBLOCK_ARABIC_EXTENDED_B = 309, /*[0870]*/
  1752. /** @stable ICU 70 */
  1753. UBLOCK_CYPRO_MINOAN = 310, /*[12F90]*/
  1754. /** @stable ICU 70 */
  1755. UBLOCK_ETHIOPIC_EXTENDED_B = 311, /*[1E7E0]*/
  1756. /** @stable ICU 70 */
  1757. UBLOCK_KANA_EXTENDED_B = 312, /*[1AFF0]*/
  1758. /** @stable ICU 70 */
  1759. UBLOCK_LATIN_EXTENDED_F = 313, /*[10780]*/
  1760. /** @stable ICU 70 */
  1761. UBLOCK_LATIN_EXTENDED_G = 314, /*[1DF00]*/
  1762. /** @stable ICU 70 */
  1763. UBLOCK_OLD_UYGHUR = 315, /*[10F70]*/
  1764. /** @stable ICU 70 */
  1765. UBLOCK_TANGSA = 316, /*[16A70]*/
  1766. /** @stable ICU 70 */
  1767. UBLOCK_TOTO = 317, /*[1E290]*/
  1768. /** @stable ICU 70 */
  1769. UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED_A = 318, /*[11AB0]*/
  1770. /** @stable ICU 70 */
  1771. UBLOCK_VITHKUQI = 319, /*[10570]*/
  1772. /** @stable ICU 70 */
  1773. UBLOCK_ZNAMENNY_MUSICAL_NOTATION = 320, /*[1CF00]*/
  1774. // New blocks in Unicode 15.0
  1775. /** @stable ICU 72 */
  1776. UBLOCK_ARABIC_EXTENDED_C = 321, /*[10EC0]*/
  1777. /** @stable ICU 72 */
  1778. UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_H = 322, /*[31350]*/
  1779. /** @stable ICU 72 */
  1780. UBLOCK_CYRILLIC_EXTENDED_D = 323, /*[1E030]*/
  1781. /** @stable ICU 72 */
  1782. UBLOCK_DEVANAGARI_EXTENDED_A = 324, /*[11B00]*/
  1783. /** @stable ICU 72 */
  1784. UBLOCK_KAKTOVIK_NUMERALS = 325, /*[1D2C0]*/
  1785. /** @stable ICU 72 */
  1786. UBLOCK_KAWI = 326, /*[11F00]*/
  1787. /** @stable ICU 72 */
  1788. UBLOCK_NAG_MUNDARI = 327, /*[1E4D0]*/
  1789. // New block in Unicode 15.1
  1790. /** @stable ICU 74 */
  1791. UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_I = 328, /*[2EBF0]*/
  1792. // New blocks in Unicode 16.0
  1793. /** @stable ICU 76 */
  1794. UBLOCK_EGYPTIAN_HIEROGLYPHS_EXTENDED_A = 329, /*[13460]*/
  1795. /** @stable ICU 76 */
  1796. UBLOCK_GARAY = 330, /*[10D40]*/
  1797. /** @stable ICU 76 */
  1798. UBLOCK_GURUNG_KHEMA = 331, /*[16100]*/
  1799. /** @stable ICU 76 */
  1800. UBLOCK_KIRAT_RAI = 332, /*[16D40]*/
  1801. /** @stable ICU 76 */
  1802. UBLOCK_MYANMAR_EXTENDED_C = 333, /*[116D0]*/
  1803. /** @stable ICU 76 */
  1804. UBLOCK_OL_ONAL = 334, /*[1E5D0]*/
  1805. /** @stable ICU 76 */
  1806. UBLOCK_SUNUWAR = 335, /*[11BC0]*/
  1807. /** @stable ICU 76 */
  1808. UBLOCK_SYMBOLS_FOR_LEGACY_COMPUTING_SUPPLEMENT = 336, /*[1CC00]*/
  1809. /** @stable ICU 76 */
  1810. UBLOCK_TODHRI = 337, /*[105C0]*/
  1811. /** @stable ICU 76 */
  1812. UBLOCK_TULU_TIGALARI = 338, /*[11380]*/
  1813. #ifndef U_HIDE_DEPRECATED_API
  1814. /**
  1815. * One more than the highest normal UBlockCode value.
  1816. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_BLOCK).
  1817. *
  1818. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  1819. */
  1820. UBLOCK_COUNT = 339,
  1821. #endif // U_HIDE_DEPRECATED_API
  1822. /** @stable ICU 2.0 */
  1823. UBLOCK_INVALID_CODE=-1
  1824. };
  1825. /** @stable ICU 2.0 */
  1826. typedef enum UBlockCode UBlockCode;
  1827. /**
  1828. * East Asian Width constants.
  1829. *
  1830. * @see UCHAR_EAST_ASIAN_WIDTH
  1831. * @see u_getIntPropertyValue
  1832. * @stable ICU 2.2
  1833. */
  1834. typedef enum UEastAsianWidth {
  1835. /*
  1836. * Note: UEastAsianWidth constants are parsed by preparseucd.py.
  1837. * It matches lines like
  1838. * U_EA_<Unicode East_Asian_Width value name>
  1839. */
  1840. U_EA_NEUTRAL, /*[N]*/
  1841. U_EA_AMBIGUOUS, /*[A]*/
  1842. U_EA_HALFWIDTH, /*[H]*/
  1843. U_EA_FULLWIDTH, /*[F]*/
  1844. U_EA_NARROW, /*[Na]*/
  1845. U_EA_WIDE, /*[W]*/
  1846. #ifndef U_HIDE_DEPRECATED_API
  1847. /**
  1848. * One more than the highest normal UEastAsianWidth value.
  1849. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_EAST_ASIAN_WIDTH).
  1850. *
  1851. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  1852. */
  1853. U_EA_COUNT
  1854. #endif // U_HIDE_DEPRECATED_API
  1855. } UEastAsianWidth;
  1856. /**
  1857. * Selector constants for u_charName().
  1858. * u_charName() returns the "modern" name of a
  1859. * Unicode character; or the name that was defined in
  1860. * Unicode version 1.0, before the Unicode standard merged
  1861. * with ISO-10646; or an "extended" name that gives each
  1862. * Unicode code point a unique name.
  1863. *
  1864. * @see u_charName
  1865. * @stable ICU 2.0
  1866. */
  1867. typedef enum UCharNameChoice {
  1868. /** Unicode character name (Name property). @stable ICU 2.0 */
  1869. U_UNICODE_CHAR_NAME,
  1870. #ifndef U_HIDE_DEPRECATED_API
  1871. /**
  1872. * The Unicode_1_Name property value which is of little practical value.
  1873. * Beginning with ICU 49, ICU APIs return an empty string for this name choice.
  1874. * @deprecated ICU 49
  1875. */
  1876. U_UNICODE_10_CHAR_NAME,
  1877. #endif /* U_HIDE_DEPRECATED_API */
  1878. /** Standard or synthetic character name. @stable ICU 2.0 */
  1879. U_EXTENDED_CHAR_NAME = U_UNICODE_CHAR_NAME+2,
  1880. /** Corrected name from NameAliases.txt. @stable ICU 4.4 */
  1881. U_CHAR_NAME_ALIAS,
  1882. #ifndef U_HIDE_DEPRECATED_API
  1883. /**
  1884. * One more than the highest normal UCharNameChoice value.
  1885. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  1886. */
  1887. U_CHAR_NAME_CHOICE_COUNT
  1888. #endif // U_HIDE_DEPRECATED_API
  1889. } UCharNameChoice;
  1890. /**
  1891. * Selector constants for u_getPropertyName() and
  1892. * u_getPropertyValueName(). These selectors are used to choose which
  1893. * name is returned for a given property or value. All properties and
  1894. * values have a long name. Most have a short name, but some do not.
  1895. * Unicode allows for additional names, beyond the long and short
  1896. * name, which would be indicated by U_LONG_PROPERTY_NAME + i, where
  1897. * i=1, 2,...
  1898. *
  1899. * @see u_getPropertyName()
  1900. * @see u_getPropertyValueName()
  1901. * @stable ICU 2.4
  1902. */
  1903. typedef enum UPropertyNameChoice {
  1904. U_SHORT_PROPERTY_NAME,
  1905. U_LONG_PROPERTY_NAME,
  1906. #ifndef U_HIDE_DEPRECATED_API
  1907. /**
  1908. * One more than the highest normal UPropertyNameChoice value.
  1909. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  1910. */
  1911. U_PROPERTY_NAME_CHOICE_COUNT
  1912. #endif // U_HIDE_DEPRECATED_API
  1913. } UPropertyNameChoice;
  1914. /**
  1915. * Decomposition Type constants.
  1916. *
  1917. * @see UCHAR_DECOMPOSITION_TYPE
  1918. * @stable ICU 2.2
  1919. */
  1920. typedef enum UDecompositionType {
  1921. /*
  1922. * Note: UDecompositionType constants are parsed by preparseucd.py.
  1923. * It matches lines like
  1924. * U_DT_<Unicode Decomposition_Type value name>
  1925. */
  1926. U_DT_NONE, /*[none]*/
  1927. U_DT_CANONICAL, /*[can]*/
  1928. U_DT_COMPAT, /*[com]*/
  1929. U_DT_CIRCLE, /*[enc]*/
  1930. U_DT_FINAL, /*[fin]*/
  1931. U_DT_FONT, /*[font]*/
  1932. U_DT_FRACTION, /*[fra]*/
  1933. U_DT_INITIAL, /*[init]*/
  1934. U_DT_ISOLATED, /*[iso]*/
  1935. U_DT_MEDIAL, /*[med]*/
  1936. U_DT_NARROW, /*[nar]*/
  1937. U_DT_NOBREAK, /*[nb]*/
  1938. U_DT_SMALL, /*[sml]*/
  1939. U_DT_SQUARE, /*[sqr]*/
  1940. U_DT_SUB, /*[sub]*/
  1941. U_DT_SUPER, /*[sup]*/
  1942. U_DT_VERTICAL, /*[vert]*/
  1943. U_DT_WIDE, /*[wide]*/
  1944. #ifndef U_HIDE_DEPRECATED_API
  1945. /**
  1946. * One more than the highest normal UDecompositionType value.
  1947. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_DECOMPOSITION_TYPE).
  1948. *
  1949. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  1950. */
  1951. U_DT_COUNT /* 18 */
  1952. #endif // U_HIDE_DEPRECATED_API
  1953. } UDecompositionType;
  1954. /**
  1955. * Joining Type constants.
  1956. *
  1957. * @see UCHAR_JOINING_TYPE
  1958. * @stable ICU 2.2
  1959. */
  1960. typedef enum UJoiningType {
  1961. /*
  1962. * Note: UJoiningType constants are parsed by preparseucd.py.
  1963. * It matches lines like
  1964. * U_JT_<Unicode Joining_Type value name>
  1965. */
  1966. U_JT_NON_JOINING, /*[U]*/
  1967. U_JT_JOIN_CAUSING, /*[C]*/
  1968. U_JT_DUAL_JOINING, /*[D]*/
  1969. U_JT_LEFT_JOINING, /*[L]*/
  1970. U_JT_RIGHT_JOINING, /*[R]*/
  1971. U_JT_TRANSPARENT, /*[T]*/
  1972. #ifndef U_HIDE_DEPRECATED_API
  1973. /**
  1974. * One more than the highest normal UJoiningType value.
  1975. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_JOINING_TYPE).
  1976. *
  1977. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  1978. */
  1979. U_JT_COUNT /* 6 */
  1980. #endif // U_HIDE_DEPRECATED_API
  1981. } UJoiningType;
  1982. /**
  1983. * Joining Group constants.
  1984. *
  1985. * @see UCHAR_JOINING_GROUP
  1986. * @stable ICU 2.2
  1987. */
  1988. typedef enum UJoiningGroup {
  1989. /*
  1990. * Note: UJoiningGroup constants are parsed by preparseucd.py.
  1991. * It matches lines like
  1992. * U_JG_<Unicode Joining_Group value name>
  1993. */
  1994. U_JG_NO_JOINING_GROUP,
  1995. U_JG_AIN,
  1996. U_JG_ALAPH,
  1997. U_JG_ALEF,
  1998. U_JG_BEH,
  1999. U_JG_BETH,
  2000. U_JG_DAL,
  2001. U_JG_DALATH_RISH,
  2002. U_JG_E,
  2003. U_JG_FEH,
  2004. U_JG_FINAL_SEMKATH,
  2005. U_JG_GAF,
  2006. U_JG_GAMAL,
  2007. U_JG_HAH,
  2008. U_JG_TEH_MARBUTA_GOAL, /**< @stable ICU 4.6 */
  2009. U_JG_HAMZA_ON_HEH_GOAL=U_JG_TEH_MARBUTA_GOAL,
  2010. U_JG_HE,
  2011. U_JG_HEH,
  2012. U_JG_HEH_GOAL,
  2013. U_JG_HETH,
  2014. U_JG_KAF,
  2015. U_JG_KAPH,
  2016. U_JG_KNOTTED_HEH,
  2017. U_JG_LAM,
  2018. U_JG_LAMADH,
  2019. U_JG_MEEM,
  2020. U_JG_MIM,
  2021. U_JG_NOON,
  2022. U_JG_NUN,
  2023. U_JG_PE,
  2024. U_JG_QAF,
  2025. U_JG_QAPH,
  2026. U_JG_REH,
  2027. U_JG_REVERSED_PE,
  2028. U_JG_SAD,
  2029. U_JG_SADHE,
  2030. U_JG_SEEN,
  2031. U_JG_SEMKATH,
  2032. U_JG_SHIN,
  2033. U_JG_SWASH_KAF,
  2034. U_JG_SYRIAC_WAW,
  2035. U_JG_TAH,
  2036. U_JG_TAW,
  2037. U_JG_TEH_MARBUTA,
  2038. U_JG_TETH,
  2039. U_JG_WAW,
  2040. U_JG_YEH,
  2041. U_JG_YEH_BARREE,
  2042. U_JG_YEH_WITH_TAIL,
  2043. U_JG_YUDH,
  2044. U_JG_YUDH_HE,
  2045. U_JG_ZAIN,
  2046. U_JG_FE, /**< @stable ICU 2.6 */
  2047. U_JG_KHAPH, /**< @stable ICU 2.6 */
  2048. U_JG_ZHAIN, /**< @stable ICU 2.6 */
  2049. U_JG_BURUSHASKI_YEH_BARREE, /**< @stable ICU 4.0 */
  2050. U_JG_FARSI_YEH, /**< @stable ICU 4.4 */
  2051. U_JG_NYA, /**< @stable ICU 4.4 */
  2052. U_JG_ROHINGYA_YEH, /**< @stable ICU 49 */
  2053. U_JG_MANICHAEAN_ALEPH, /**< @stable ICU 54 */
  2054. U_JG_MANICHAEAN_AYIN, /**< @stable ICU 54 */
  2055. U_JG_MANICHAEAN_BETH, /**< @stable ICU 54 */
  2056. U_JG_MANICHAEAN_DALETH, /**< @stable ICU 54 */
  2057. U_JG_MANICHAEAN_DHAMEDH, /**< @stable ICU 54 */
  2058. U_JG_MANICHAEAN_FIVE, /**< @stable ICU 54 */
  2059. U_JG_MANICHAEAN_GIMEL, /**< @stable ICU 54 */
  2060. U_JG_MANICHAEAN_HETH, /**< @stable ICU 54 */
  2061. U_JG_MANICHAEAN_HUNDRED, /**< @stable ICU 54 */
  2062. U_JG_MANICHAEAN_KAPH, /**< @stable ICU 54 */
  2063. U_JG_MANICHAEAN_LAMEDH, /**< @stable ICU 54 */
  2064. U_JG_MANICHAEAN_MEM, /**< @stable ICU 54 */
  2065. U_JG_MANICHAEAN_NUN, /**< @stable ICU 54 */
  2066. U_JG_MANICHAEAN_ONE, /**< @stable ICU 54 */
  2067. U_JG_MANICHAEAN_PE, /**< @stable ICU 54 */
  2068. U_JG_MANICHAEAN_QOPH, /**< @stable ICU 54 */
  2069. U_JG_MANICHAEAN_RESH, /**< @stable ICU 54 */
  2070. U_JG_MANICHAEAN_SADHE, /**< @stable ICU 54 */
  2071. U_JG_MANICHAEAN_SAMEKH, /**< @stable ICU 54 */
  2072. U_JG_MANICHAEAN_TAW, /**< @stable ICU 54 */
  2073. U_JG_MANICHAEAN_TEN, /**< @stable ICU 54 */
  2074. U_JG_MANICHAEAN_TETH, /**< @stable ICU 54 */
  2075. U_JG_MANICHAEAN_THAMEDH, /**< @stable ICU 54 */
  2076. U_JG_MANICHAEAN_TWENTY, /**< @stable ICU 54 */
  2077. U_JG_MANICHAEAN_WAW, /**< @stable ICU 54 */
  2078. U_JG_MANICHAEAN_YODH, /**< @stable ICU 54 */
  2079. U_JG_MANICHAEAN_ZAYIN, /**< @stable ICU 54 */
  2080. U_JG_STRAIGHT_WAW, /**< @stable ICU 54 */
  2081. U_JG_AFRICAN_FEH, /**< @stable ICU 58 */
  2082. U_JG_AFRICAN_NOON, /**< @stable ICU 58 */
  2083. U_JG_AFRICAN_QAF, /**< @stable ICU 58 */
  2084. U_JG_MALAYALAM_BHA, /**< @stable ICU 60 */
  2085. U_JG_MALAYALAM_JA, /**< @stable ICU 60 */
  2086. U_JG_MALAYALAM_LLA, /**< @stable ICU 60 */
  2087. U_JG_MALAYALAM_LLLA, /**< @stable ICU 60 */
  2088. U_JG_MALAYALAM_NGA, /**< @stable ICU 60 */
  2089. U_JG_MALAYALAM_NNA, /**< @stable ICU 60 */
  2090. U_JG_MALAYALAM_NNNA, /**< @stable ICU 60 */
  2091. U_JG_MALAYALAM_NYA, /**< @stable ICU 60 */
  2092. U_JG_MALAYALAM_RA, /**< @stable ICU 60 */
  2093. U_JG_MALAYALAM_SSA, /**< @stable ICU 60 */
  2094. U_JG_MALAYALAM_TTA, /**< @stable ICU 60 */
  2095. U_JG_HANIFI_ROHINGYA_KINNA_YA, /**< @stable ICU 62 */
  2096. U_JG_HANIFI_ROHINGYA_PA, /**< @stable ICU 62 */
  2097. U_JG_THIN_YEH, /**< @stable ICU 70 */
  2098. U_JG_VERTICAL_TAIL, /**< @stable ICU 70 */
  2099. U_JG_KASHMIRI_YEH, /**< @stable ICU 76 */
  2100. #ifndef U_HIDE_DEPRECATED_API
  2101. /**
  2102. * One more than the highest normal UJoiningGroup value.
  2103. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_JOINING_GROUP).
  2104. *
  2105. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  2106. */
  2107. U_JG_COUNT
  2108. #endif // U_HIDE_DEPRECATED_API
  2109. } UJoiningGroup;
  2110. /**
  2111. * Grapheme Cluster Break constants.
  2112. *
  2113. * @see UCHAR_GRAPHEME_CLUSTER_BREAK
  2114. * @stable ICU 3.4
  2115. */
  2116. typedef enum UGraphemeClusterBreak {
  2117. /*
  2118. * Note: UGraphemeClusterBreak constants are parsed by preparseucd.py.
  2119. * It matches lines like
  2120. * U_GCB_<Unicode Grapheme_Cluster_Break value name>
  2121. */
  2122. U_GCB_OTHER = 0, /*[XX]*/
  2123. U_GCB_CONTROL = 1, /*[CN]*/
  2124. U_GCB_CR = 2, /*[CR]*/
  2125. U_GCB_EXTEND = 3, /*[EX]*/
  2126. U_GCB_L = 4, /*[L]*/
  2127. U_GCB_LF = 5, /*[LF]*/
  2128. U_GCB_LV = 6, /*[LV]*/
  2129. U_GCB_LVT = 7, /*[LVT]*/
  2130. U_GCB_T = 8, /*[T]*/
  2131. U_GCB_V = 9, /*[V]*/
  2132. /** @stable ICU 4.0 */
  2133. U_GCB_SPACING_MARK = 10, /*[SM]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
  2134. /** @stable ICU 4.0 */
  2135. U_GCB_PREPEND = 11, /*[PP]*/
  2136. /** @stable ICU 50 */
  2137. U_GCB_REGIONAL_INDICATOR = 12, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */
  2138. /** @stable ICU 58 */
  2139. U_GCB_E_BASE = 13, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */
  2140. /** @stable ICU 58 */
  2141. U_GCB_E_BASE_GAZ = 14, /*[EBG]*/
  2142. /** @stable ICU 58 */
  2143. U_GCB_E_MODIFIER = 15, /*[EM]*/
  2144. /** @stable ICU 58 */
  2145. U_GCB_GLUE_AFTER_ZWJ = 16, /*[GAZ]*/
  2146. /** @stable ICU 58 */
  2147. U_GCB_ZWJ = 17, /*[ZWJ]*/
  2148. #ifndef U_HIDE_DEPRECATED_API
  2149. /**
  2150. * One more than the highest normal UGraphemeClusterBreak value.
  2151. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_GRAPHEME_CLUSTER_BREAK).
  2152. *
  2153. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  2154. */
  2155. U_GCB_COUNT = 18
  2156. #endif // U_HIDE_DEPRECATED_API
  2157. } UGraphemeClusterBreak;
  2158. /**
  2159. * Word Break constants.
  2160. * (UWordBreak is a pre-existing enum type in ubrk.h for word break status tags.)
  2161. *
  2162. * @see UCHAR_WORD_BREAK
  2163. * @stable ICU 3.4
  2164. */
  2165. typedef enum UWordBreakValues {
  2166. /*
  2167. * Note: UWordBreakValues constants are parsed by preparseucd.py.
  2168. * It matches lines like
  2169. * U_WB_<Unicode Word_Break value name>
  2170. */
  2171. U_WB_OTHER = 0, /*[XX]*/
  2172. U_WB_ALETTER = 1, /*[LE]*/
  2173. U_WB_FORMAT = 2, /*[FO]*/
  2174. U_WB_KATAKANA = 3, /*[KA]*/
  2175. U_WB_MIDLETTER = 4, /*[ML]*/
  2176. U_WB_MIDNUM = 5, /*[MN]*/
  2177. U_WB_NUMERIC = 6, /*[NU]*/
  2178. U_WB_EXTENDNUMLET = 7, /*[EX]*/
  2179. /** @stable ICU 4.0 */
  2180. U_WB_CR = 8, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
  2181. /** @stable ICU 4.0 */
  2182. U_WB_EXTEND = 9, /*[Extend]*/
  2183. /** @stable ICU 4.0 */
  2184. U_WB_LF = 10, /*[LF]*/
  2185. /** @stable ICU 4.0 */
  2186. U_WB_MIDNUMLET =11, /*[MB]*/
  2187. /** @stable ICU 4.0 */
  2188. U_WB_NEWLINE =12, /*[NL]*/
  2189. /** @stable ICU 50 */
  2190. U_WB_REGIONAL_INDICATOR = 13, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */
  2191. /** @stable ICU 52 */
  2192. U_WB_HEBREW_LETTER = 14, /*[HL]*/ /* from here on: new in Unicode 6.3/ICU 52 */
  2193. /** @stable ICU 52 */
  2194. U_WB_SINGLE_QUOTE = 15, /*[SQ]*/
  2195. /** @stable ICU 52 */
  2196. U_WB_DOUBLE_QUOTE = 16, /*[DQ]*/
  2197. /** @stable ICU 58 */
  2198. U_WB_E_BASE = 17, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */
  2199. /** @stable ICU 58 */
  2200. U_WB_E_BASE_GAZ = 18, /*[EBG]*/
  2201. /** @stable ICU 58 */
  2202. U_WB_E_MODIFIER = 19, /*[EM]*/
  2203. /** @stable ICU 58 */
  2204. U_WB_GLUE_AFTER_ZWJ = 20, /*[GAZ]*/
  2205. /** @stable ICU 58 */
  2206. U_WB_ZWJ = 21, /*[ZWJ]*/
  2207. /** @stable ICU 62 */
  2208. U_WB_WSEGSPACE = 22, /*[WSEGSPACE]*/
  2209. #ifndef U_HIDE_DEPRECATED_API
  2210. /**
  2211. * One more than the highest normal UWordBreakValues value.
  2212. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_WORD_BREAK).
  2213. *
  2214. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  2215. */
  2216. U_WB_COUNT = 23
  2217. #endif // U_HIDE_DEPRECATED_API
  2218. } UWordBreakValues;
  2219. /**
  2220. * Sentence Break constants.
  2221. *
  2222. * @see UCHAR_SENTENCE_BREAK
  2223. * @stable ICU 3.4
  2224. */
  2225. typedef enum USentenceBreak {
  2226. /*
  2227. * Note: USentenceBreak constants are parsed by preparseucd.py.
  2228. * It matches lines like
  2229. * U_SB_<Unicode Sentence_Break value name>
  2230. */
  2231. U_SB_OTHER = 0, /*[XX]*/
  2232. U_SB_ATERM = 1, /*[AT]*/
  2233. U_SB_CLOSE = 2, /*[CL]*/
  2234. U_SB_FORMAT = 3, /*[FO]*/
  2235. U_SB_LOWER = 4, /*[LO]*/
  2236. U_SB_NUMERIC = 5, /*[NU]*/
  2237. U_SB_OLETTER = 6, /*[LE]*/
  2238. U_SB_SEP = 7, /*[SE]*/
  2239. U_SB_SP = 8, /*[SP]*/
  2240. U_SB_STERM = 9, /*[ST]*/
  2241. U_SB_UPPER = 10, /*[UP]*/
  2242. U_SB_CR = 11, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
  2243. U_SB_EXTEND = 12, /*[EX]*/
  2244. U_SB_LF = 13, /*[LF]*/
  2245. U_SB_SCONTINUE = 14, /*[SC]*/
  2246. #ifndef U_HIDE_DEPRECATED_API
  2247. /**
  2248. * One more than the highest normal USentenceBreak value.
  2249. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_SENTENCE_BREAK).
  2250. *
  2251. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  2252. */
  2253. U_SB_COUNT = 15
  2254. #endif // U_HIDE_DEPRECATED_API
  2255. } USentenceBreak;
  2256. /**
  2257. * Line Break constants.
  2258. *
  2259. * @see UCHAR_LINE_BREAK
  2260. * @stable ICU 2.2
  2261. */
  2262. typedef enum ULineBreak {
  2263. /*
  2264. * Note: ULineBreak constants are parsed by preparseucd.py.
  2265. * It matches lines like
  2266. * U_LB_<Unicode Line_Break value name>
  2267. */
  2268. U_LB_UNKNOWN = 0, /*[XX]*/
  2269. U_LB_AMBIGUOUS = 1, /*[AI]*/
  2270. U_LB_ALPHABETIC = 2, /*[AL]*/
  2271. U_LB_BREAK_BOTH = 3, /*[B2]*/
  2272. U_LB_BREAK_AFTER = 4, /*[BA]*/
  2273. U_LB_BREAK_BEFORE = 5, /*[BB]*/
  2274. U_LB_MANDATORY_BREAK = 6, /*[BK]*/
  2275. U_LB_CONTINGENT_BREAK = 7, /*[CB]*/
  2276. U_LB_CLOSE_PUNCTUATION = 8, /*[CL]*/
  2277. U_LB_COMBINING_MARK = 9, /*[CM]*/
  2278. U_LB_CARRIAGE_RETURN = 10, /*[CR]*/
  2279. U_LB_EXCLAMATION = 11, /*[EX]*/
  2280. U_LB_GLUE = 12, /*[GL]*/
  2281. U_LB_HYPHEN = 13, /*[HY]*/
  2282. U_LB_IDEOGRAPHIC = 14, /*[ID]*/
  2283. /** Renamed from the misspelled "inseperable" in Unicode 4.0.1/ICU 3.0 @stable ICU 3.0 */
  2284. U_LB_INSEPARABLE = 15, /*[IN]*/
  2285. U_LB_INSEPERABLE = U_LB_INSEPARABLE,
  2286. U_LB_INFIX_NUMERIC = 16, /*[IS]*/
  2287. U_LB_LINE_FEED = 17, /*[LF]*/
  2288. U_LB_NONSTARTER = 18, /*[NS]*/
  2289. U_LB_NUMERIC = 19, /*[NU]*/
  2290. U_LB_OPEN_PUNCTUATION = 20, /*[OP]*/
  2291. U_LB_POSTFIX_NUMERIC = 21, /*[PO]*/
  2292. U_LB_PREFIX_NUMERIC = 22, /*[PR]*/
  2293. U_LB_QUOTATION = 23, /*[QU]*/
  2294. U_LB_COMPLEX_CONTEXT = 24, /*[SA]*/
  2295. U_LB_SURROGATE = 25, /*[SG]*/
  2296. U_LB_SPACE = 26, /*[SP]*/
  2297. U_LB_BREAK_SYMBOLS = 27, /*[SY]*/
  2298. U_LB_ZWSPACE = 28, /*[ZW]*/
  2299. /** @stable ICU 2.6 */
  2300. U_LB_NEXT_LINE = 29, /*[NL]*/ /* from here on: new in Unicode 4/ICU 2.6 */
  2301. /** @stable ICU 2.6 */
  2302. U_LB_WORD_JOINER = 30, /*[WJ]*/
  2303. /** @stable ICU 3.4 */
  2304. U_LB_H2 = 31, /*[H2]*/ /* from here on: new in Unicode 4.1/ICU 3.4 */
  2305. /** @stable ICU 3.4 */
  2306. U_LB_H3 = 32, /*[H3]*/
  2307. /** @stable ICU 3.4 */
  2308. U_LB_JL = 33, /*[JL]*/
  2309. /** @stable ICU 3.4 */
  2310. U_LB_JT = 34, /*[JT]*/
  2311. /** @stable ICU 3.4 */
  2312. U_LB_JV = 35, /*[JV]*/
  2313. /** @stable ICU 4.4 */
  2314. U_LB_CLOSE_PARENTHESIS = 36, /*[CP]*/ /* new in Unicode 5.2/ICU 4.4 */
  2315. /** @stable ICU 49 */
  2316. U_LB_CONDITIONAL_JAPANESE_STARTER = 37,/*[CJ]*/ /* new in Unicode 6.1/ICU 49 */
  2317. /** @stable ICU 49 */
  2318. U_LB_HEBREW_LETTER = 38, /*[HL]*/ /* new in Unicode 6.1/ICU 49 */
  2319. /** @stable ICU 50 */
  2320. U_LB_REGIONAL_INDICATOR = 39,/*[RI]*/ /* new in Unicode 6.2/ICU 50 */
  2321. /** @stable ICU 58 */
  2322. U_LB_E_BASE = 40, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */
  2323. /** @stable ICU 58 */
  2324. U_LB_E_MODIFIER = 41, /*[EM]*/
  2325. /** @stable ICU 58 */
  2326. U_LB_ZWJ = 42, /*[ZWJ]*/
  2327. /** @stable ICU 74 */
  2328. U_LB_AKSARA = 43, /*[AK]*/
  2329. /** @stable ICU 74 */
  2330. U_LB_AKSARA_PREBASE = 44, /*[AP]*/
  2331. /** @stable ICU 74 */
  2332. U_LB_AKSARA_START = 45, /*[AS]*/
  2333. /** @stable ICU 74 */
  2334. U_LB_VIRAMA_FINAL = 46, /*[VF]*/
  2335. /** @stable ICU 74 */
  2336. U_LB_VIRAMA = 47, /*[VI]*/
  2337. #ifndef U_HIDE_DEPRECATED_API
  2338. /**
  2339. * One more than the highest normal ULineBreak value.
  2340. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_LINE_BREAK).
  2341. *
  2342. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  2343. */
  2344. U_LB_COUNT = 48
  2345. #endif // U_HIDE_DEPRECATED_API
  2346. } ULineBreak;
  2347. /**
  2348. * Numeric Type constants.
  2349. *
  2350. * @see UCHAR_NUMERIC_TYPE
  2351. * @stable ICU 2.2
  2352. */
  2353. typedef enum UNumericType {
  2354. /*
  2355. * Note: UNumericType constants are parsed by preparseucd.py.
  2356. * It matches lines like
  2357. * U_NT_<Unicode Numeric_Type value name>
  2358. */
  2359. U_NT_NONE, /*[None]*/
  2360. U_NT_DECIMAL, /*[de]*/
  2361. U_NT_DIGIT, /*[di]*/
  2362. U_NT_NUMERIC, /*[nu]*/
  2363. #ifndef U_HIDE_DEPRECATED_API
  2364. /**
  2365. * One more than the highest normal UNumericType value.
  2366. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_NUMERIC_TYPE).
  2367. *
  2368. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  2369. */
  2370. U_NT_COUNT
  2371. #endif // U_HIDE_DEPRECATED_API
  2372. } UNumericType;
  2373. /**
  2374. * Hangul Syllable Type constants.
  2375. *
  2376. * @see UCHAR_HANGUL_SYLLABLE_TYPE
  2377. * @stable ICU 2.6
  2378. */
  2379. typedef enum UHangulSyllableType {
  2380. /*
  2381. * Note: UHangulSyllableType constants are parsed by preparseucd.py.
  2382. * It matches lines like
  2383. * U_HST_<Unicode Hangul_Syllable_Type value name>
  2384. */
  2385. U_HST_NOT_APPLICABLE, /*[NA]*/
  2386. U_HST_LEADING_JAMO, /*[L]*/
  2387. U_HST_VOWEL_JAMO, /*[V]*/
  2388. U_HST_TRAILING_JAMO, /*[T]*/
  2389. U_HST_LV_SYLLABLE, /*[LV]*/
  2390. U_HST_LVT_SYLLABLE, /*[LVT]*/
  2391. #ifndef U_HIDE_DEPRECATED_API
  2392. /**
  2393. * One more than the highest normal UHangulSyllableType value.
  2394. * The highest value is available via u_getIntPropertyMaxValue(UCHAR_HANGUL_SYLLABLE_TYPE).
  2395. *
  2396. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
  2397. */
  2398. U_HST_COUNT
  2399. #endif // U_HIDE_DEPRECATED_API
  2400. } UHangulSyllableType;
  2401. /**
  2402. * Indic Positional Category constants.
  2403. *
  2404. * @see UCHAR_INDIC_POSITIONAL_CATEGORY
  2405. * @stable ICU 63
  2406. */
  2407. typedef enum UIndicPositionalCategory {
  2408. /*
  2409. * Note: UIndicPositionalCategory constants are parsed by preparseucd.py.
  2410. * It matches lines like
  2411. * U_INPC_<Unicode Indic_Positional_Category value name>
  2412. */
  2413. /** @stable ICU 63 */
  2414. U_INPC_NA,
  2415. /** @stable ICU 63 */
  2416. U_INPC_BOTTOM,
  2417. /** @stable ICU 63 */
  2418. U_INPC_BOTTOM_AND_LEFT,
  2419. /** @stable ICU 63 */
  2420. U_INPC_BOTTOM_AND_RIGHT,
  2421. /** @stable ICU 63 */
  2422. U_INPC_LEFT,
  2423. /** @stable ICU 63 */
  2424. U_INPC_LEFT_AND_RIGHT,
  2425. /** @stable ICU 63 */
  2426. U_INPC_OVERSTRUCK,
  2427. /** @stable ICU 63 */
  2428. U_INPC_RIGHT,
  2429. /** @stable ICU 63 */
  2430. U_INPC_TOP,
  2431. /** @stable ICU 63 */
  2432. U_INPC_TOP_AND_BOTTOM,
  2433. /** @stable ICU 63 */
  2434. U_INPC_TOP_AND_BOTTOM_AND_RIGHT,
  2435. /** @stable ICU 63 */
  2436. U_INPC_TOP_AND_LEFT,
  2437. /** @stable ICU 63 */
  2438. U_INPC_TOP_AND_LEFT_AND_RIGHT,
  2439. /** @stable ICU 63 */
  2440. U_INPC_TOP_AND_RIGHT,
  2441. /** @stable ICU 63 */
  2442. U_INPC_VISUAL_ORDER_LEFT,
  2443. /** @stable ICU 66 */
  2444. U_INPC_TOP_AND_BOTTOM_AND_LEFT,
  2445. } UIndicPositionalCategory;
  2446. /**
  2447. * Indic Syllabic Category constants.
  2448. *
  2449. * @see UCHAR_INDIC_SYLLABIC_CATEGORY
  2450. * @stable ICU 63
  2451. */
  2452. typedef enum UIndicSyllabicCategory {
  2453. /*
  2454. * Note: UIndicSyllabicCategory constants are parsed by preparseucd.py.
  2455. * It matches lines like
  2456. * U_INSC_<Unicode Indic_Syllabic_Category value name>
  2457. */
  2458. /** @stable ICU 63 */
  2459. U_INSC_OTHER,
  2460. /** @stable ICU 63 */
  2461. U_INSC_AVAGRAHA,
  2462. /** @stable ICU 63 */
  2463. U_INSC_BINDU,
  2464. /** @stable ICU 63 */
  2465. U_INSC_BRAHMI_JOINING_NUMBER,
  2466. /** @stable ICU 63 */
  2467. U_INSC_CANTILLATION_MARK,
  2468. /** @stable ICU 63 */
  2469. U_INSC_CONSONANT,
  2470. /** @stable ICU 63 */
  2471. U_INSC_CONSONANT_DEAD,
  2472. /** @stable ICU 63 */
  2473. U_INSC_CONSONANT_FINAL,
  2474. /** @stable ICU 63 */
  2475. U_INSC_CONSONANT_HEAD_LETTER,
  2476. /** @stable ICU 63 */
  2477. U_INSC_CONSONANT_INITIAL_POSTFIXED,
  2478. /** @stable ICU 63 */
  2479. U_INSC_CONSONANT_KILLER,
  2480. /** @stable ICU 63 */
  2481. U_INSC_CONSONANT_MEDIAL,
  2482. /** @stable ICU 63 */
  2483. U_INSC_CONSONANT_PLACEHOLDER,
  2484. /** @stable ICU 63 */
  2485. U_INSC_CONSONANT_PRECEDING_REPHA,
  2486. /** @stable ICU 63 */
  2487. U_INSC_CONSONANT_PREFIXED,
  2488. /** @stable ICU 63 */
  2489. U_INSC_CONSONANT_SUBJOINED,
  2490. /** @stable ICU 63 */
  2491. U_INSC_CONSONANT_SUCCEEDING_REPHA,
  2492. /** @stable ICU 63 */
  2493. U_INSC_CONSONANT_WITH_STACKER,
  2494. /** @stable ICU 63 */
  2495. U_INSC_GEMINATION_MARK,
  2496. /** @stable ICU 63 */
  2497. U_INSC_INVISIBLE_STACKER,
  2498. /** @stable ICU 63 */
  2499. U_INSC_JOINER,
  2500. /** @stable ICU 63 */
  2501. U_INSC_MODIFYING_LETTER,
  2502. /** @stable ICU 63 */
  2503. U_INSC_NON_JOINER,
  2504. /** @stable ICU 63 */
  2505. U_INSC_NUKTA,
  2506. /** @stable ICU 63 */
  2507. U_INSC_NUMBER,
  2508. /** @stable ICU 63 */
  2509. U_INSC_NUMBER_JOINER,
  2510. /** @stable ICU 63 */
  2511. U_INSC_PURE_KILLER,
  2512. /** @stable ICU 63 */
  2513. U_INSC_REGISTER_SHIFTER,
  2514. /** @stable ICU 63 */
  2515. U_INSC_SYLLABLE_MODIFIER,
  2516. /** @stable ICU 63 */
  2517. U_INSC_TONE_LETTER,
  2518. /** @stable ICU 63 */
  2519. U_INSC_TONE_MARK,
  2520. /** @stable ICU 63 */
  2521. U_INSC_VIRAMA,
  2522. /** @stable ICU 63 */
  2523. U_INSC_VISARGA,
  2524. /** @stable ICU 63 */
  2525. U_INSC_VOWEL,
  2526. /** @stable ICU 63 */
  2527. U_INSC_VOWEL_DEPENDENT,
  2528. /** @stable ICU 63 */
  2529. U_INSC_VOWEL_INDEPENDENT,
  2530. /** @stable ICU 76 */
  2531. U_INSC_REORDERING_KILLER,
  2532. } UIndicSyllabicCategory;
  2533. #ifndef U_HIDE_DRAFT_API
  2534. /**
  2535. * Indic Conjunct Break constants.
  2536. *
  2537. * @see UCHAR_INDIC_CONJUNCT_BREAK
  2538. * @draft ICU 76
  2539. */
  2540. typedef enum UIndicConjunctBreak {
  2541. /*
  2542. * Note: UIndicConjunctBreak constants are parsed by preparseucd.py.
  2543. * It matches lines like
  2544. * U_INCB_<Unicode Indic_Conjunct_Break value name>
  2545. */
  2546. /** @draft ICU 76 */
  2547. U_INCB_NONE,
  2548. /** @draft ICU 76 */
  2549. U_INCB_CONSONANT,
  2550. /** @draft ICU 76 */
  2551. U_INCB_EXTEND,
  2552. /** @draft ICU 76 */
  2553. U_INCB_LINKER,
  2554. } UIndicConjunctBreak;
  2555. #endif // U_HIDE_DRAFT_API
  2556. /**
  2557. * Vertical Orientation constants.
  2558. *
  2559. * @see UCHAR_VERTICAL_ORIENTATION
  2560. * @stable ICU 63
  2561. */
  2562. typedef enum UVerticalOrientation {
  2563. /*
  2564. * Note: UVerticalOrientation constants are parsed by preparseucd.py.
  2565. * It matches lines like
  2566. * U_VO_<Unicode Vertical_Orientation value name>
  2567. */
  2568. /** @stable ICU 63 */
  2569. U_VO_ROTATED,
  2570. /** @stable ICU 63 */
  2571. U_VO_TRANSFORMED_ROTATED,
  2572. /** @stable ICU 63 */
  2573. U_VO_TRANSFORMED_UPRIGHT,
  2574. /** @stable ICU 63 */
  2575. U_VO_UPRIGHT,
  2576. } UVerticalOrientation;
  2577. #ifndef U_HIDE_DRAFT_API
  2578. /**
  2579. * Identifier Status constants.
  2580. * See https://www.unicode.org/reports/tr39/#Identifier_Status_and_Type.
  2581. *
  2582. * @see UCHAR_IDENTIFIER_STATUS
  2583. * @draft ICU 75
  2584. */
  2585. typedef enum UIdentifierStatus {
  2586. /*
  2587. * Note: UIdentifierStatus constants are parsed by preparseucd.py.
  2588. * It matches lines like
  2589. * U_ID_STATUS_<Unicode Identifier_Status value name>
  2590. */
  2591. /** @draft ICU 75 */
  2592. U_ID_STATUS_RESTRICTED,
  2593. /** @draft ICU 75 */
  2594. U_ID_STATUS_ALLOWED,
  2595. } UIdentifierStatus;
  2596. /**
  2597. * Identifier Type constants.
  2598. * See https://www.unicode.org/reports/tr39/#Identifier_Status_and_Type.
  2599. *
  2600. * @see UCHAR_IDENTIFIER_TYPE
  2601. * @draft ICU 75
  2602. */
  2603. typedef enum UIdentifierType {
  2604. /*
  2605. * Note: UIdentifierType constants are parsed by preparseucd.py.
  2606. * It matches lines like
  2607. * U_ID_TYPE_<Unicode Identifier_Type value name>
  2608. */
  2609. /** @draft ICU 75 */
  2610. U_ID_TYPE_NOT_CHARACTER,
  2611. /** @draft ICU 75 */
  2612. U_ID_TYPE_DEPRECATED,
  2613. /** @draft ICU 75 */
  2614. U_ID_TYPE_DEFAULT_IGNORABLE,
  2615. /** @draft ICU 75 */
  2616. U_ID_TYPE_NOT_NFKC,
  2617. /** @draft ICU 75 */
  2618. U_ID_TYPE_NOT_XID,
  2619. /** @draft ICU 75 */
  2620. U_ID_TYPE_EXCLUSION,
  2621. /** @draft ICU 75 */
  2622. U_ID_TYPE_OBSOLETE,
  2623. /** @draft ICU 75 */
  2624. U_ID_TYPE_TECHNICAL,
  2625. /** @draft ICU 75 */
  2626. U_ID_TYPE_UNCOMMON_USE,
  2627. /** @draft ICU 75 */
  2628. U_ID_TYPE_LIMITED_USE,
  2629. /** @draft ICU 75 */
  2630. U_ID_TYPE_INCLUSION,
  2631. /** @draft ICU 75 */
  2632. U_ID_TYPE_RECOMMENDED,
  2633. } UIdentifierType;
  2634. #endif // U_HIDE_DRAFT_API
  2635. /**
  2636. * Check a binary Unicode property for a code point.
  2637. *
  2638. * Unicode, especially in version 3.2, defines many more properties than the
  2639. * original set in UnicodeData.txt.
  2640. *
  2641. * The properties APIs are intended to reflect Unicode properties as defined
  2642. * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).
  2643. * For details about the properties see http://www.unicode.org/ucd/ .
  2644. * For names of Unicode properties see the UCD file PropertyAliases.txt.
  2645. *
  2646. * Important: If ICU is built with UCD files from Unicode versions below 3.2,
  2647. * then properties marked with "new in Unicode 3.2" are not or not fully available.
  2648. *
  2649. * @param c Code point to test.
  2650. * @param which UProperty selector constant, identifies which binary property to check.
  2651. * Must be UCHAR_BINARY_START&lt;=which&lt;UCHAR_BINARY_LIMIT.
  2652. * @return true or false according to the binary Unicode property value for c.
  2653. * Also false if 'which' is out of bounds or if the Unicode version
  2654. * does not have data for the property at all.
  2655. *
  2656. * @see UProperty
  2657. * @see u_getBinaryPropertySet
  2658. * @see u_getIntPropertyValue
  2659. * @see u_getUnicodeVersion
  2660. * @stable ICU 2.1
  2661. */
  2662. U_CAPI UBool U_EXPORT2
  2663. u_hasBinaryProperty(UChar32 c, UProperty which);
  2664. /**
  2665. * Returns true if the property is true for the string.
  2666. * Same as u_hasBinaryProperty(single code point, which)
  2667. * if the string contains exactly one code point.
  2668. *
  2669. * Most properties apply only to single code points.
  2670. * <a href="https://www.unicode.org/reports/tr51/#Emoji_Sets">UTS #51 Unicode Emoji</a>
  2671. * defines several properties of strings.
  2672. *
  2673. * @param s String to test.
  2674. * @param length Length of the string, or negative if NUL-terminated.
  2675. * @param which UProperty selector constant, identifies which binary property to check.
  2676. * Must be UCHAR_BINARY_START&lt;=which&lt;UCHAR_BINARY_LIMIT.
  2677. * @return true or false according to the binary Unicode property value for the string.
  2678. * Also false if 'which' is out of bounds or if the Unicode version
  2679. * does not have data for the property at all.
  2680. *
  2681. * @see UProperty
  2682. * @see u_hasBinaryProperty
  2683. * @see u_getBinaryPropertySet
  2684. * @see u_getIntPropertyValue
  2685. * @see u_getUnicodeVersion
  2686. * @stable ICU 70
  2687. */
  2688. U_CAPI UBool U_EXPORT2
  2689. u_stringHasBinaryProperty(const UChar *s, int32_t length, UProperty which);
  2690. /**
  2691. * Returns a frozen USet for a binary property.
  2692. * The library retains ownership over the returned object.
  2693. * Sets an error code if the property number is not one for a binary property.
  2694. *
  2695. * The returned set contains all code points for which the property is true.
  2696. *
  2697. * @param property UCHAR_BINARY_START..UCHAR_BINARY_LIMIT-1
  2698. * @param pErrorCode an in/out ICU UErrorCode
  2699. * @return the property as a set
  2700. * @see UProperty
  2701. * @see u_hasBinaryProperty
  2702. * @see Unicode::fromUSet
  2703. * @stable ICU 63
  2704. */
  2705. U_CAPI const USet * U_EXPORT2
  2706. u_getBinaryPropertySet(UProperty property, UErrorCode *pErrorCode);
  2707. /**
  2708. * Check if a code point has the Alphabetic Unicode property.
  2709. * Same as u_hasBinaryProperty(c, UCHAR_ALPHABETIC).
  2710. * This is different from u_isalpha!
  2711. * @param c Code point to test
  2712. * @return true if the code point has the Alphabetic Unicode property, false otherwise
  2713. *
  2714. * @see UCHAR_ALPHABETIC
  2715. * @see u_isalpha
  2716. * @see u_hasBinaryProperty
  2717. * @stable ICU 2.1
  2718. */
  2719. U_CAPI UBool U_EXPORT2
  2720. u_isUAlphabetic(UChar32 c);
  2721. /**
  2722. * Check if a code point has the Lowercase Unicode property.
  2723. * Same as u_hasBinaryProperty(c, UCHAR_LOWERCASE).
  2724. * This is different from u_islower!
  2725. * @param c Code point to test
  2726. * @return true if the code point has the Lowercase Unicode property, false otherwise
  2727. *
  2728. * @see UCHAR_LOWERCASE
  2729. * @see u_islower
  2730. * @see u_hasBinaryProperty
  2731. * @stable ICU 2.1
  2732. */
  2733. U_CAPI UBool U_EXPORT2
  2734. u_isULowercase(UChar32 c);
  2735. /**
  2736. * Check if a code point has the Uppercase Unicode property.
  2737. * Same as u_hasBinaryProperty(c, UCHAR_UPPERCASE).
  2738. * This is different from u_isupper!
  2739. * @param c Code point to test
  2740. * @return true if the code point has the Uppercase Unicode property, false otherwise
  2741. *
  2742. * @see UCHAR_UPPERCASE
  2743. * @see u_isupper
  2744. * @see u_hasBinaryProperty
  2745. * @stable ICU 2.1
  2746. */
  2747. U_CAPI UBool U_EXPORT2
  2748. u_isUUppercase(UChar32 c);
  2749. /**
  2750. * Check if a code point has the White_Space Unicode property.
  2751. * Same as u_hasBinaryProperty(c, UCHAR_WHITE_SPACE).
  2752. * This is different from both u_isspace and u_isWhitespace!
  2753. *
  2754. * Note: There are several ICU whitespace functions; please see the uchar.h
  2755. * file documentation for a detailed comparison.
  2756. *
  2757. * @param c Code point to test
  2758. * @return true if the code point has the White_Space Unicode property, false otherwise.
  2759. *
  2760. * @see UCHAR_WHITE_SPACE
  2761. * @see u_isWhitespace
  2762. * @see u_isspace
  2763. * @see u_isJavaSpaceChar
  2764. * @see u_hasBinaryProperty
  2765. * @stable ICU 2.1
  2766. */
  2767. U_CAPI UBool U_EXPORT2
  2768. u_isUWhiteSpace(UChar32 c);
  2769. /**
  2770. * Get the property value for an enumerated or integer Unicode property for a code point.
  2771. * Also returns binary and mask property values.
  2772. *
  2773. * Unicode, especially in version 3.2, defines many more properties than the
  2774. * original set in UnicodeData.txt.
  2775. *
  2776. * The properties APIs are intended to reflect Unicode properties as defined
  2777. * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).
  2778. * For details about the properties see http://www.unicode.org/ .
  2779. * For names of Unicode properties see the UCD file PropertyAliases.txt.
  2780. *
  2781. * Sample usage:
  2782. * UEastAsianWidth ea=(UEastAsianWidth)u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH);
  2783. * UBool b=(UBool)u_getIntPropertyValue(c, UCHAR_IDEOGRAPHIC);
  2784. *
  2785. * @param c Code point to test.
  2786. * @param which UProperty selector constant, identifies which property to check.
  2787. * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
  2788. * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT
  2789. * or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.
  2790. * @return Numeric value that is directly the property value or,
  2791. * for enumerated properties, corresponds to the numeric value of the enumerated
  2792. * constant of the respective property value enumeration type
  2793. * (cast to enum type if necessary).
  2794. * Returns 0 or 1 (for false/true) for binary Unicode properties.
  2795. * Returns a bit-mask for mask properties.
  2796. * Returns 0 if 'which' is out of bounds or if the Unicode version
  2797. * does not have data for the property at all, or not for this code point.
  2798. *
  2799. * @see UProperty
  2800. * @see u_hasBinaryProperty
  2801. * @see u_getIntPropertyMinValue
  2802. * @see u_getIntPropertyMaxValue
  2803. * @see u_getIntPropertyMap
  2804. * @see u_getUnicodeVersion
  2805. * @stable ICU 2.2
  2806. */
  2807. U_CAPI int32_t U_EXPORT2
  2808. u_getIntPropertyValue(UChar32 c, UProperty which);
  2809. /**
  2810. * Get the minimum value for an enumerated/integer/binary Unicode property.
  2811. * Can be used together with u_getIntPropertyMaxValue
  2812. * to allocate arrays of UnicodeSet or similar.
  2813. *
  2814. * @param which UProperty selector constant, identifies which binary property to check.
  2815. * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
  2816. * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT.
  2817. * @return Minimum value returned by u_getIntPropertyValue for a Unicode property.
  2818. * 0 if the property selector is out of range.
  2819. *
  2820. * @see UProperty
  2821. * @see u_hasBinaryProperty
  2822. * @see u_getUnicodeVersion
  2823. * @see u_getIntPropertyMaxValue
  2824. * @see u_getIntPropertyValue
  2825. * @stable ICU 2.2
  2826. */
  2827. U_CAPI int32_t U_EXPORT2
  2828. u_getIntPropertyMinValue(UProperty which);
  2829. /**
  2830. * Get the maximum value for an enumerated/integer/binary Unicode property.
  2831. * Can be used together with u_getIntPropertyMinValue
  2832. * to allocate arrays of UnicodeSet or similar.
  2833. *
  2834. * Examples for min/max values (for Unicode 3.2):
  2835. *
  2836. * - UCHAR_BIDI_CLASS: 0/18 (U_LEFT_TO_RIGHT/U_BOUNDARY_NEUTRAL)
  2837. * - UCHAR_SCRIPT: 0/45 (USCRIPT_COMMON/USCRIPT_TAGBANWA)
  2838. * - UCHAR_IDEOGRAPHIC: 0/1 (false/true)
  2839. *
  2840. * For undefined UProperty constant values, min/max values will be 0/-1.
  2841. *
  2842. * @param which UProperty selector constant, identifies which binary property to check.
  2843. * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
  2844. * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT.
  2845. * @return Maximum value returned by u_getIntPropertyValue for a Unicode property.
  2846. * <=0 if the property selector is out of range.
  2847. *
  2848. * @see UProperty
  2849. * @see u_hasBinaryProperty
  2850. * @see u_getUnicodeVersion
  2851. * @see u_getIntPropertyMaxValue
  2852. * @see u_getIntPropertyValue
  2853. * @stable ICU 2.2
  2854. */
  2855. U_CAPI int32_t U_EXPORT2
  2856. u_getIntPropertyMaxValue(UProperty which);
  2857. /**
  2858. * Returns an immutable UCPMap for an enumerated/catalog/int-valued property.
  2859. * The library retains ownership over the returned object.
  2860. * Sets an error code if the property number is not one for an "int property".
  2861. *
  2862. * The returned object maps all Unicode code points to their values for that property.
  2863. * For documentation of the integer values see u_getIntPropertyValue().
  2864. *
  2865. * @param property UCHAR_INT_START..UCHAR_INT_LIMIT-1
  2866. * @param pErrorCode an in/out ICU UErrorCode
  2867. * @return the property as a map
  2868. * @see UProperty
  2869. * @see u_getIntPropertyValue
  2870. * @stable ICU 63
  2871. */
  2872. U_CAPI const UCPMap * U_EXPORT2
  2873. u_getIntPropertyMap(UProperty property, UErrorCode *pErrorCode);
  2874. /**
  2875. * Get the numeric value for a Unicode code point as defined in the
  2876. * Unicode Character Database.
  2877. *
  2878. * A "double" return type is necessary because
  2879. * some numeric values are fractions, negative, or too large for int32_t.
  2880. *
  2881. * For characters without any numeric values in the Unicode Character Database,
  2882. * this function will return U_NO_NUMERIC_VALUE.
  2883. * Note: This is different from the Unicode Standard which specifies NaN as the default value.
  2884. * (NaN is not available on all platforms.)
  2885. *
  2886. * Similar to java.lang.Character.getNumericValue(), but u_getNumericValue()
  2887. * also supports negative values, large values, and fractions,
  2888. * while Java's getNumericValue() returns values 10..35 for ASCII letters.
  2889. *
  2890. * @param c Code point to get the numeric value for.
  2891. * @return Numeric value of c, or U_NO_NUMERIC_VALUE if none is defined.
  2892. *
  2893. * @see U_NO_NUMERIC_VALUE
  2894. * @stable ICU 2.2
  2895. */
  2896. U_CAPI double U_EXPORT2
  2897. u_getNumericValue(UChar32 c);
  2898. /**
  2899. * Special value that is returned by u_getNumericValue when
  2900. * no numeric value is defined for a code point.
  2901. *
  2902. * @see u_getNumericValue
  2903. * @stable ICU 2.2
  2904. */
  2905. #define U_NO_NUMERIC_VALUE ((double)-123456789.)
  2906. /**
  2907. * Determines whether the specified code point has the general category "Ll"
  2908. * (lowercase letter).
  2909. *
  2910. * Same as java.lang.Character.isLowerCase().
  2911. *
  2912. * This misses some characters that are also lowercase but
  2913. * have a different general category value.
  2914. * In order to include those, use UCHAR_LOWERCASE.
  2915. *
  2916. * In addition to being equivalent to a Java function, this also serves
  2917. * as a C/POSIX migration function.
  2918. * See the comments about C/POSIX character classification functions in the
  2919. * documentation at the top of this header file.
  2920. *
  2921. * @param c the code point to be tested
  2922. * @return true if the code point is an Ll lowercase letter
  2923. *
  2924. * @see UCHAR_LOWERCASE
  2925. * @see u_isupper
  2926. * @see u_istitle
  2927. * @stable ICU 2.0
  2928. */
  2929. U_CAPI UBool U_EXPORT2
  2930. u_islower(UChar32 c);
  2931. /**
  2932. * Determines whether the specified code point has the general category "Lu"
  2933. * (uppercase letter).
  2934. *
  2935. * Same as java.lang.Character.isUpperCase().
  2936. *
  2937. * This misses some characters that are also uppercase but
  2938. * have a different general category value.
  2939. * In order to include those, use UCHAR_UPPERCASE.
  2940. *
  2941. * In addition to being equivalent to a Java function, this also serves
  2942. * as a C/POSIX migration function.
  2943. * See the comments about C/POSIX character classification functions in the
  2944. * documentation at the top of this header file.
  2945. *
  2946. * @param c the code point to be tested
  2947. * @return true if the code point is an Lu uppercase letter
  2948. *
  2949. * @see UCHAR_UPPERCASE
  2950. * @see u_islower
  2951. * @see u_istitle
  2952. * @see u_tolower
  2953. * @stable ICU 2.0
  2954. */
  2955. U_CAPI UBool U_EXPORT2
  2956. u_isupper(UChar32 c);
  2957. /**
  2958. * Determines whether the specified code point is a titlecase letter.
  2959. * True for general category "Lt" (titlecase letter).
  2960. *
  2961. * Same as java.lang.Character.isTitleCase().
  2962. *
  2963. * @param c the code point to be tested
  2964. * @return true if the code point is an Lt titlecase letter
  2965. *
  2966. * @see u_isupper
  2967. * @see u_islower
  2968. * @see u_totitle
  2969. * @stable ICU 2.0
  2970. */
  2971. U_CAPI UBool U_EXPORT2
  2972. u_istitle(UChar32 c);
  2973. /**
  2974. * Determines whether the specified code point is a digit character according to Java.
  2975. * True for characters with general category "Nd" (decimal digit numbers).
  2976. * Beginning with Unicode 4, this is the same as
  2977. * testing for the Numeric_Type of Decimal.
  2978. *
  2979. * Same as java.lang.Character.isDigit().
  2980. *
  2981. * In addition to being equivalent to a Java function, this also serves
  2982. * as a C/POSIX migration function.
  2983. * See the comments about C/POSIX character classification functions in the
  2984. * documentation at the top of this header file.
  2985. *
  2986. * @param c the code point to be tested
  2987. * @return true if the code point is a digit character according to Character.isDigit()
  2988. *
  2989. * @stable ICU 2.0
  2990. */
  2991. U_CAPI UBool U_EXPORT2
  2992. u_isdigit(UChar32 c);
  2993. /**
  2994. * Determines whether the specified code point is a letter character.
  2995. * True for general categories "L" (letters).
  2996. *
  2997. * Same as java.lang.Character.isLetter().
  2998. *
  2999. * In addition to being equivalent to a Java function, this also serves
  3000. * as a C/POSIX migration function.
  3001. * See the comments about C/POSIX character classification functions in the
  3002. * documentation at the top of this header file.
  3003. *
  3004. * @param c the code point to be tested
  3005. * @return true if the code point is a letter character
  3006. *
  3007. * @see u_isdigit
  3008. * @see u_isalnum
  3009. * @stable ICU 2.0
  3010. */
  3011. U_CAPI UBool U_EXPORT2
  3012. u_isalpha(UChar32 c);
  3013. /**
  3014. * Determines whether the specified code point is an alphanumeric character
  3015. * (letter or digit) according to Java.
  3016. * True for characters with general categories
  3017. * "L" (letters) and "Nd" (decimal digit numbers).
  3018. *
  3019. * Same as java.lang.Character.isLetterOrDigit().
  3020. *
  3021. * In addition to being equivalent to a Java function, this also serves
  3022. * as a C/POSIX migration function.
  3023. * See the comments about C/POSIX character classification functions in the
  3024. * documentation at the top of this header file.
  3025. *
  3026. * @param c the code point to be tested
  3027. * @return true if the code point is an alphanumeric character according to Character.isLetterOrDigit()
  3028. *
  3029. * @stable ICU 2.0
  3030. */
  3031. U_CAPI UBool U_EXPORT2
  3032. u_isalnum(UChar32 c);
  3033. /**
  3034. * Determines whether the specified code point is a hexadecimal digit.
  3035. * This is equivalent to u_digit(c, 16)>=0.
  3036. * True for characters with general category "Nd" (decimal digit numbers)
  3037. * as well as Latin letters a-f and A-F in both ASCII and Fullwidth ASCII.
  3038. * (That is, for letters with code points
  3039. * 0041..0046, 0061..0066, FF21..FF26, FF41..FF46.)
  3040. *
  3041. * In order to narrow the definition of hexadecimal digits to only ASCII
  3042. * characters, use (c<=0x7f && u_isxdigit(c)).
  3043. *
  3044. * This is a C/POSIX migration function.
  3045. * See the comments about C/POSIX character classification functions in the
  3046. * documentation at the top of this header file.
  3047. *
  3048. * @param c the code point to be tested
  3049. * @return true if the code point is a hexadecimal digit
  3050. *
  3051. * @stable ICU 2.6
  3052. */
  3053. U_CAPI UBool U_EXPORT2
  3054. u_isxdigit(UChar32 c);
  3055. /**
  3056. * Determines whether the specified code point is a punctuation character.
  3057. * True for characters with general categories "P" (punctuation).
  3058. *
  3059. * This is a C/POSIX migration function.
  3060. * See the comments about C/POSIX character classification functions in the
  3061. * documentation at the top of this header file.
  3062. *
  3063. * @param c the code point to be tested
  3064. * @return true if the code point is a punctuation character
  3065. *
  3066. * @stable ICU 2.6
  3067. */
  3068. U_CAPI UBool U_EXPORT2
  3069. u_ispunct(UChar32 c);
  3070. /**
  3071. * Determines whether the specified code point is a "graphic" character
  3072. * (printable, excluding spaces).
  3073. * true for all characters except those with general categories
  3074. * "Cc" (control codes), "Cf" (format controls), "Cs" (surrogates),
  3075. * "Cn" (unassigned), and "Z" (separators).
  3076. *
  3077. * This is a C/POSIX migration function.
  3078. * See the comments about C/POSIX character classification functions in the
  3079. * documentation at the top of this header file.
  3080. *
  3081. * @param c the code point to be tested
  3082. * @return true if the code point is a "graphic" character
  3083. *
  3084. * @stable ICU 2.6
  3085. */
  3086. U_CAPI UBool U_EXPORT2
  3087. u_isgraph(UChar32 c);
  3088. /**
  3089. * Determines whether the specified code point is a "blank" or "horizontal space",
  3090. * a character that visibly separates words on a line.
  3091. * The following are equivalent definitions:
  3092. *
  3093. * true for Unicode White_Space characters except for "vertical space controls"
  3094. * where "vertical space controls" are the following characters:
  3095. * U+000A (LF) U+000B (VT) U+000C (FF) U+000D (CR) U+0085 (NEL) U+2028 (LS) U+2029 (PS)
  3096. *
  3097. * same as
  3098. *
  3099. * true for U+0009 (TAB) and characters with general category "Zs" (space separators).
  3100. *
  3101. * Note: There are several ICU whitespace functions; please see the uchar.h
  3102. * file documentation for a detailed comparison.
  3103. *
  3104. * This is a C/POSIX migration function.
  3105. * See the comments about C/POSIX character classification functions in the
  3106. * documentation at the top of this header file.
  3107. *
  3108. * @param c the code point to be tested
  3109. * @return true if the code point is a "blank"
  3110. *
  3111. * @stable ICU 2.6
  3112. */
  3113. U_CAPI UBool U_EXPORT2
  3114. u_isblank(UChar32 c);
  3115. /**
  3116. * Determines whether the specified code point is "defined",
  3117. * which usually means that it is assigned a character.
  3118. * True for general categories other than "Cn" (other, not assigned),
  3119. * i.e., true for all code points mentioned in UnicodeData.txt.
  3120. *
  3121. * Note that non-character code points (e.g., U+FDD0) are not "defined"
  3122. * (they are Cn), but surrogate code points are "defined" (Cs).
  3123. *
  3124. * Same as java.lang.Character.isDefined().
  3125. *
  3126. * @param c the code point to be tested
  3127. * @return true if the code point is assigned a character
  3128. *
  3129. * @see u_isdigit
  3130. * @see u_isalpha
  3131. * @see u_isalnum
  3132. * @see u_isupper
  3133. * @see u_islower
  3134. * @see u_istitle
  3135. * @stable ICU 2.0
  3136. */
  3137. U_CAPI UBool U_EXPORT2
  3138. u_isdefined(UChar32 c);
  3139. /**
  3140. * Determines if the specified character is a space character or not.
  3141. *
  3142. * Note: There are several ICU whitespace functions; please see the uchar.h
  3143. * file documentation for a detailed comparison.
  3144. *
  3145. * This is a C/POSIX migration function.
  3146. * See the comments about C/POSIX character classification functions in the
  3147. * documentation at the top of this header file.
  3148. *
  3149. * @param c the character to be tested
  3150. * @return true if the character is a space character; false otherwise.
  3151. *
  3152. * @see u_isJavaSpaceChar
  3153. * @see u_isWhitespace
  3154. * @see u_isUWhiteSpace
  3155. * @stable ICU 2.0
  3156. */
  3157. U_CAPI UBool U_EXPORT2
  3158. u_isspace(UChar32 c);
  3159. /**
  3160. * Determine if the specified code point is a space character according to Java.
  3161. * True for characters with general categories "Z" (separators),
  3162. * which does not include control codes (e.g., TAB or Line Feed).
  3163. *
  3164. * Same as java.lang.Character.isSpaceChar().
  3165. *
  3166. * Note: There are several ICU whitespace functions; please see the uchar.h
  3167. * file documentation for a detailed comparison.
  3168. *
  3169. * @param c the code point to be tested
  3170. * @return true if the code point is a space character according to Character.isSpaceChar()
  3171. *
  3172. * @see u_isspace
  3173. * @see u_isWhitespace
  3174. * @see u_isUWhiteSpace
  3175. * @stable ICU 2.6
  3176. */
  3177. U_CAPI UBool U_EXPORT2
  3178. u_isJavaSpaceChar(UChar32 c);
  3179. /**
  3180. * Determines if the specified code point is a whitespace character according to Java/ICU.
  3181. * A character is considered to be a Java whitespace character if and only
  3182. * if it satisfies one of the following criteria:
  3183. *
  3184. * - It is a Unicode Separator character (categories "Z" = "Zs" or "Zl" or "Zp"), but is not
  3185. * also a non-breaking space (U+00A0 NBSP or U+2007 Figure Space or U+202F Narrow NBSP).
  3186. * - It is U+0009 HORIZONTAL TABULATION.
  3187. * - It is U+000A LINE FEED.
  3188. * - It is U+000B VERTICAL TABULATION.
  3189. * - It is U+000C FORM FEED.
  3190. * - It is U+000D CARRIAGE RETURN.
  3191. * - It is U+001C FILE SEPARATOR.
  3192. * - It is U+001D GROUP SEPARATOR.
  3193. * - It is U+001E RECORD SEPARATOR.
  3194. * - It is U+001F UNIT SEPARATOR.
  3195. *
  3196. * This API tries to sync with the semantics of Java's
  3197. * java.lang.Character.isWhitespace(), but it may not return
  3198. * the exact same results because of the Unicode version
  3199. * difference.
  3200. *
  3201. * Note: Unicode 4.0.1 changed U+200B ZERO WIDTH SPACE from a Space Separator (Zs)
  3202. * to a Format Control (Cf). Since then, isWhitespace(0x200b) returns false.
  3203. * See http://www.unicode.org/versions/Unicode4.0.1/
  3204. *
  3205. * Note: There are several ICU whitespace functions; please see the uchar.h
  3206. * file documentation for a detailed comparison.
  3207. *
  3208. * @param c the code point to be tested
  3209. * @return true if the code point is a whitespace character according to Java/ICU
  3210. *
  3211. * @see u_isspace
  3212. * @see u_isJavaSpaceChar
  3213. * @see u_isUWhiteSpace
  3214. * @stable ICU 2.0
  3215. */
  3216. U_CAPI UBool U_EXPORT2
  3217. u_isWhitespace(UChar32 c);
  3218. /**
  3219. * Determines whether the specified code point is a control character
  3220. * (as defined by this function).
  3221. * A control character is one of the following:
  3222. * - ISO 8-bit control character (U+0000..U+001f and U+007f..U+009f)
  3223. * - U_CONTROL_CHAR (Cc)
  3224. * - U_FORMAT_CHAR (Cf)
  3225. * - U_LINE_SEPARATOR (Zl)
  3226. * - U_PARAGRAPH_SEPARATOR (Zp)
  3227. *
  3228. * This is a C/POSIX migration function.
  3229. * See the comments about C/POSIX character classification functions in the
  3230. * documentation at the top of this header file.
  3231. *
  3232. * @param c the code point to be tested
  3233. * @return true if the code point is a control character
  3234. *
  3235. * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT
  3236. * @see u_isprint
  3237. * @stable ICU 2.0
  3238. */
  3239. U_CAPI UBool U_EXPORT2
  3240. u_iscntrl(UChar32 c);
  3241. /**
  3242. * Determines whether the specified code point is an ISO control code.
  3243. * True for U+0000..U+001f and U+007f..U+009f (general category "Cc").
  3244. *
  3245. * Same as java.lang.Character.isISOControl().
  3246. *
  3247. * @param c the code point to be tested
  3248. * @return true if the code point is an ISO control code
  3249. *
  3250. * @see u_iscntrl
  3251. * @stable ICU 2.6
  3252. */
  3253. U_CAPI UBool U_EXPORT2
  3254. u_isISOControl(UChar32 c);
  3255. /**
  3256. * Determines whether the specified code point is a printable character.
  3257. * True for general categories <em>other</em> than "C" (controls).
  3258. *
  3259. * This is a C/POSIX migration function.
  3260. * See the comments about C/POSIX character classification functions in the
  3261. * documentation at the top of this header file.
  3262. *
  3263. * @param c the code point to be tested
  3264. * @return true if the code point is a printable character
  3265. *
  3266. * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT
  3267. * @see u_iscntrl
  3268. * @stable ICU 2.0
  3269. */
  3270. U_CAPI UBool U_EXPORT2
  3271. u_isprint(UChar32 c);
  3272. /**
  3273. * Non-standard: Determines whether the specified code point is a base character.
  3274. * True for general categories "L" (letters), "N" (numbers),
  3275. * "Mc" (spacing combining marks), and "Me" (enclosing marks).
  3276. *
  3277. * Note that this is different from the Unicode Standard definition in
  3278. * chapter 3.6, conformance clause D51 “Base character”,
  3279. * which defines base characters as the code points with general categories
  3280. * Letter (L), Number (N), Punctuation (P), Symbol (S), or Space Separator (Zs).
  3281. *
  3282. * @param c the code point to be tested
  3283. * @return true if the code point is a base character according to this function
  3284. *
  3285. * @see u_isalpha
  3286. * @see u_isdigit
  3287. * @stable ICU 2.0
  3288. */
  3289. U_CAPI UBool U_EXPORT2
  3290. u_isbase(UChar32 c);
  3291. /**
  3292. * Returns the bidirectional category value for the code point,
  3293. * which is used in the Unicode bidirectional algorithm
  3294. * (UAX #9 http://www.unicode.org/reports/tr9/).
  3295. * Note that some <em>unassigned</em> code points have bidi values
  3296. * of R or AL because they are in blocks that are reserved
  3297. * for Right-To-Left scripts.
  3298. *
  3299. * Same as java.lang.Character.getDirectionality()
  3300. *
  3301. * @param c the code point to be tested
  3302. * @return the bidirectional category (UCharDirection) value
  3303. *
  3304. * @see UCharDirection
  3305. * @stable ICU 2.0
  3306. */
  3307. U_CAPI UCharDirection U_EXPORT2
  3308. u_charDirection(UChar32 c);
  3309. /**
  3310. * Determines whether the code point has the Bidi_Mirrored property.
  3311. * This property is set for characters that are commonly used in
  3312. * Right-To-Left contexts and need to be displayed with a "mirrored"
  3313. * glyph.
  3314. *
  3315. * Same as java.lang.Character.isMirrored().
  3316. * Same as UCHAR_BIDI_MIRRORED
  3317. *
  3318. * @param c the code point to be tested
  3319. * @return true if the character has the Bidi_Mirrored property
  3320. *
  3321. * @see UCHAR_BIDI_MIRRORED
  3322. * @stable ICU 2.0
  3323. */
  3324. U_CAPI UBool U_EXPORT2
  3325. u_isMirrored(UChar32 c);
  3326. /**
  3327. * Maps the specified character to a "mirror-image" character.
  3328. * For characters with the Bidi_Mirrored property, implementations
  3329. * sometimes need a "poor man's" mapping to another Unicode
  3330. * character (code point) such that the default glyph may serve
  3331. * as the mirror-image of the default glyph of the specified
  3332. * character. This is useful for text conversion to and from
  3333. * codepages with visual order, and for displays without glyph
  3334. * selection capabilities.
  3335. *
  3336. * @param c the code point to be mapped
  3337. * @return another Unicode code point that may serve as a mirror-image
  3338. * substitute, or c itself if there is no such mapping or c
  3339. * does not have the Bidi_Mirrored property
  3340. *
  3341. * @see UCHAR_BIDI_MIRRORED
  3342. * @see u_isMirrored
  3343. * @stable ICU 2.0
  3344. */
  3345. U_CAPI UChar32 U_EXPORT2
  3346. u_charMirror(UChar32 c);
  3347. /**
  3348. * Maps the specified character to its paired bracket character.
  3349. * For Bidi_Paired_Bracket_Type!=None, this is the same as u_charMirror().
  3350. * Otherwise c itself is returned.
  3351. * See http://www.unicode.org/reports/tr9/
  3352. *
  3353. * @param c the code point to be mapped
  3354. * @return the paired bracket code point,
  3355. * or c itself if there is no such mapping
  3356. * (Bidi_Paired_Bracket_Type=None)
  3357. *
  3358. * @see UCHAR_BIDI_PAIRED_BRACKET
  3359. * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE
  3360. * @see u_charMirror
  3361. * @stable ICU 52
  3362. */
  3363. U_CAPI UChar32 U_EXPORT2
  3364. u_getBidiPairedBracket(UChar32 c);
  3365. /**
  3366. * Returns the general category value for the code point.
  3367. *
  3368. * Same as java.lang.Character.getType().
  3369. *
  3370. * @param c the code point to be tested
  3371. * @return the general category (UCharCategory) value
  3372. *
  3373. * @see UCharCategory
  3374. * @stable ICU 2.0
  3375. */
  3376. U_CAPI int8_t U_EXPORT2
  3377. u_charType(UChar32 c);
  3378. /**
  3379. * Get a single-bit bit set for the general category of a character.
  3380. * This bit set can be compared bitwise with U_GC_SM_MASK, U_GC_L_MASK, etc.
  3381. * Same as U_MASK(u_charType(c)).
  3382. *
  3383. * @param c the code point to be tested
  3384. * @return a single-bit mask corresponding to the general category (UCharCategory) value
  3385. *
  3386. * @see u_charType
  3387. * @see UCharCategory
  3388. * @see U_GC_CN_MASK
  3389. * @stable ICU 2.1
  3390. */
  3391. #define U_GET_GC_MASK(c) U_MASK(u_charType(c))
  3392. /**
  3393. * Callback from u_enumCharTypes(), is called for each contiguous range
  3394. * of code points c (where start<=c<limit)
  3395. * with the same Unicode general category ("character type").
  3396. *
  3397. * The callback function can stop the enumeration by returning false.
  3398. *
  3399. * @param context an opaque pointer, as passed into utrie_enum()
  3400. * @param start the first code point in a contiguous range with value
  3401. * @param limit one past the last code point in a contiguous range with value
  3402. * @param type the general category for all code points in [start..limit[
  3403. * @return false to stop the enumeration
  3404. *
  3405. * @stable ICU 2.1
  3406. * @see UCharCategory
  3407. * @see u_enumCharTypes
  3408. */
  3409. typedef UBool U_CALLCONV
  3410. UCharEnumTypeRange(const void *context, UChar32 start, UChar32 limit, UCharCategory type);
  3411. /**
  3412. * Enumerate efficiently all code points with their Unicode general categories.
  3413. *
  3414. * This is useful for building data structures (e.g., UnicodeSet's),
  3415. * for enumerating all assigned code points (type!=U_UNASSIGNED), etc.
  3416. *
  3417. * For each contiguous range of code points with a given general category ("character type"),
  3418. * the UCharEnumTypeRange function is called.
  3419. * Adjacent ranges have different types.
  3420. * The Unicode Standard guarantees that the numeric value of the type is 0..31.
  3421. *
  3422. * @param enumRange a pointer to a function that is called for each contiguous range
  3423. * of code points with the same general category
  3424. * @param context an opaque pointer that is passed on to the callback function
  3425. *
  3426. * @stable ICU 2.1
  3427. * @see UCharCategory
  3428. * @see UCharEnumTypeRange
  3429. */
  3430. U_CAPI void U_EXPORT2
  3431. u_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context);
  3432. #if !UCONFIG_NO_NORMALIZATION
  3433. /**
  3434. * Returns the combining class of the code point as specified in UnicodeData.txt.
  3435. *
  3436. * @param c the code point of the character
  3437. * @return the combining class of the character
  3438. * @stable ICU 2.0
  3439. */
  3440. U_CAPI uint8_t U_EXPORT2
  3441. u_getCombiningClass(UChar32 c);
  3442. #endif
  3443. /**
  3444. * Returns the decimal digit value of a decimal digit character.
  3445. * Such characters have the general category "Nd" (decimal digit numbers)
  3446. * and a Numeric_Type of Decimal.
  3447. *
  3448. * Unlike ICU releases before 2.6, no digit values are returned for any
  3449. * Han characters because Han number characters are often used with a special
  3450. * Chinese-style number format (with characters for powers of 10 in between)
  3451. * instead of in decimal-positional notation.
  3452. * Unicode 4 explicitly assigns Han number characters the Numeric_Type
  3453. * Numeric instead of Decimal.
  3454. * See Jitterbug 1483 for more details.
  3455. *
  3456. * Use u_getIntPropertyValue(c, UCHAR_NUMERIC_TYPE) and u_getNumericValue()
  3457. * for complete numeric Unicode properties.
  3458. *
  3459. * @param c the code point for which to get the decimal digit value
  3460. * @return the decimal digit value of c,
  3461. * or -1 if c is not a decimal digit character
  3462. *
  3463. * @see u_getNumericValue
  3464. * @stable ICU 2.0
  3465. */
  3466. U_CAPI int32_t U_EXPORT2
  3467. u_charDigitValue(UChar32 c);
  3468. /**
  3469. * Returns the Unicode allocation block that contains the character.
  3470. *
  3471. * @param c the code point to be tested
  3472. * @return the block value (UBlockCode) for c
  3473. *
  3474. * @see UBlockCode
  3475. * @stable ICU 2.0
  3476. */
  3477. U_CAPI UBlockCode U_EXPORT2
  3478. ublock_getCode(UChar32 c);
  3479. /**
  3480. * Retrieve the name of a Unicode character.
  3481. * Depending on <code>nameChoice</code>, the character name written
  3482. * into the buffer is the "modern" name or the name that was defined
  3483. * in Unicode version 1.0.
  3484. * The name contains only "invariant" characters
  3485. * like A-Z, 0-9, space, and '-'.
  3486. * Unicode 1.0 names are only retrieved if they are different from the modern
  3487. * names and if the data file contains the data for them. gennames may or may
  3488. * not be called with a command line option to include 1.0 names in unames.dat.
  3489. *
  3490. * @param code The character (code point) for which to get the name.
  3491. * It must be <code>0<=code<=0x10ffff</code>.
  3492. * @param nameChoice Selector for which name to get.
  3493. * @param buffer Destination address for copying the name.
  3494. * The name will always be zero-terminated.
  3495. * If there is no name, then the buffer will be set to the empty string.
  3496. * @param bufferLength <code>==sizeof(buffer)</code>
  3497. * @param pErrorCode Pointer to a UErrorCode variable;
  3498. * check for <code>U_SUCCESS()</code> after <code>u_charName()</code>
  3499. * returns.
  3500. * @return The length of the name, or 0 if there is no name for this character.
  3501. * If the bufferLength is less than or equal to the length, then the buffer
  3502. * contains the truncated name and the returned length indicates the full
  3503. * length of the name.
  3504. * The length does not include the zero-termination.
  3505. *
  3506. * @see UCharNameChoice
  3507. * @see u_charFromName
  3508. * @see u_enumCharNames
  3509. * @stable ICU 2.0
  3510. */
  3511. U_CAPI int32_t U_EXPORT2
  3512. u_charName(UChar32 code, UCharNameChoice nameChoice,
  3513. char *buffer, int32_t bufferLength,
  3514. UErrorCode *pErrorCode);
  3515. #ifndef U_HIDE_DEPRECATED_API
  3516. /**
  3517. * Returns an empty string.
  3518. * Used to return the ISO 10646 comment for a character.
  3519. * The Unicode ISO_Comment property is deprecated and has no values.
  3520. *
  3521. * @param c The character (code point) for which to get the ISO comment.
  3522. * It must be <code>0<=c<=0x10ffff</code>.
  3523. * @param dest Destination address for copying the comment.
  3524. * The comment will be zero-terminated if possible.
  3525. * If there is no comment, then the buffer will be set to the empty string.
  3526. * @param destCapacity <code>==sizeof(dest)</code>
  3527. * @param pErrorCode Pointer to a UErrorCode variable;
  3528. * check for <code>U_SUCCESS()</code> after <code>u_getISOComment()</code>
  3529. * returns.
  3530. * @return 0
  3531. *
  3532. * @deprecated ICU 49
  3533. */
  3534. U_DEPRECATED int32_t U_EXPORT2
  3535. u_getISOComment(UChar32 c,
  3536. char *dest, int32_t destCapacity,
  3537. UErrorCode *pErrorCode);
  3538. #endif /* U_HIDE_DEPRECATED_API */
  3539. /**
  3540. * Find a Unicode character by its name and return its code point value.
  3541. * The name is matched exactly and completely.
  3542. * If the name does not correspond to a code point, <i>pErrorCode</i>
  3543. * is set to <code>U_INVALID_CHAR_FOUND</code>.
  3544. * A Unicode 1.0 name is matched only if it differs from the modern name.
  3545. * Unicode names are all uppercase. Extended names are lowercase followed
  3546. * by an uppercase hexadecimal number, and within angle brackets.
  3547. *
  3548. * @param nameChoice Selector for which name to match.
  3549. * @param name The name to match.
  3550. * @param pErrorCode Pointer to a UErrorCode variable
  3551. * @return The Unicode value of the code point with the given name,
  3552. * or an undefined value if there is no such code point.
  3553. *
  3554. * @see UCharNameChoice
  3555. * @see u_charName
  3556. * @see u_enumCharNames
  3557. * @stable ICU 1.7
  3558. */
  3559. U_CAPI UChar32 U_EXPORT2
  3560. u_charFromName(UCharNameChoice nameChoice,
  3561. const char *name,
  3562. UErrorCode *pErrorCode);
  3563. /**
  3564. * Type of a callback function for u_enumCharNames() that gets called
  3565. * for each Unicode character with the code point value and
  3566. * the character name.
  3567. * If such a function returns false, then the enumeration is stopped.
  3568. *
  3569. * @param context The context pointer that was passed to u_enumCharNames().
  3570. * @param code The Unicode code point for the character with this name.
  3571. * @param nameChoice Selector for which kind of names is enumerated.
  3572. * @param name The character's name, zero-terminated.
  3573. * @param length The length of the name.
  3574. * @return true if the enumeration should continue, false to stop it.
  3575. *
  3576. * @see UCharNameChoice
  3577. * @see u_enumCharNames
  3578. * @stable ICU 1.7
  3579. */
  3580. typedef UBool U_CALLCONV UEnumCharNamesFn(void *context,
  3581. UChar32 code,
  3582. UCharNameChoice nameChoice,
  3583. const char *name,
  3584. int32_t length);
  3585. /**
  3586. * Enumerate all assigned Unicode characters between the start and limit
  3587. * code points (start inclusive, limit exclusive) and call a function
  3588. * for each, passing the code point value and the character name.
  3589. * For Unicode 1.0 names, only those are enumerated that differ from the
  3590. * modern names.
  3591. *
  3592. * @param start The first code point in the enumeration range.
  3593. * @param limit One more than the last code point in the enumeration range
  3594. * (the first one after the range).
  3595. * @param fn The function that is to be called for each character name.
  3596. * @param context An arbitrary pointer that is passed to the function.
  3597. * @param nameChoice Selector for which kind of names to enumerate.
  3598. * @param pErrorCode Pointer to a UErrorCode variable
  3599. *
  3600. * @see UCharNameChoice
  3601. * @see UEnumCharNamesFn
  3602. * @see u_charName
  3603. * @see u_charFromName
  3604. * @stable ICU 1.7
  3605. */
  3606. U_CAPI void U_EXPORT2
  3607. u_enumCharNames(UChar32 start, UChar32 limit,
  3608. UEnumCharNamesFn *fn,
  3609. void *context,
  3610. UCharNameChoice nameChoice,
  3611. UErrorCode *pErrorCode);
  3612. /**
  3613. * Return the Unicode name for a given property, as given in the
  3614. * Unicode database file PropertyAliases.txt.
  3615. *
  3616. * In addition, this function maps the property
  3617. * UCHAR_GENERAL_CATEGORY_MASK to the synthetic names "gcm" /
  3618. * "General_Category_Mask". These names are not in
  3619. * PropertyAliases.txt.
  3620. *
  3621. * @param property UProperty selector other than UCHAR_INVALID_CODE.
  3622. * If out of range, NULL is returned.
  3623. *
  3624. * @param nameChoice selector for which name to get. If out of range,
  3625. * NULL is returned. All properties have a long name. Most
  3626. * have a short name, but some do not. Unicode allows for
  3627. * additional names; if present these will be returned by
  3628. * U_LONG_PROPERTY_NAME + i, where i=1, 2,...
  3629. *
  3630. * @return a pointer to the name, or NULL if either the
  3631. * property or the nameChoice is out of range. If a given
  3632. * nameChoice returns NULL, then all larger values of
  3633. * nameChoice will return NULL, with one exception: if NULL is
  3634. * returned for U_SHORT_PROPERTY_NAME, then
  3635. * U_LONG_PROPERTY_NAME (and higher) may still return a
  3636. * non-NULL value. The returned pointer is valid until
  3637. * u_cleanup() is called.
  3638. *
  3639. * @see UProperty
  3640. * @see UPropertyNameChoice
  3641. * @stable ICU 2.4
  3642. */
  3643. U_CAPI const char* U_EXPORT2
  3644. u_getPropertyName(UProperty property,
  3645. UPropertyNameChoice nameChoice);
  3646. /**
  3647. * Return the UProperty enum for a given property name, as specified
  3648. * in the Unicode database file PropertyAliases.txt. Short, long, and
  3649. * any other variants are recognized.
  3650. *
  3651. * In addition, this function maps the synthetic names "gcm" /
  3652. * "General_Category_Mask" to the property
  3653. * UCHAR_GENERAL_CATEGORY_MASK. These names are not in
  3654. * PropertyAliases.txt.
  3655. *
  3656. * @param alias the property name to be matched. The name is compared
  3657. * using "loose matching" as described in PropertyAliases.txt.
  3658. *
  3659. * @return a UProperty enum, or UCHAR_INVALID_CODE if the given name
  3660. * does not match any property.
  3661. *
  3662. * @see UProperty
  3663. * @stable ICU 2.4
  3664. */
  3665. U_CAPI UProperty U_EXPORT2
  3666. u_getPropertyEnum(const char* alias);
  3667. /**
  3668. * Return the Unicode name for a given property value, as given in the
  3669. * Unicode database file PropertyValueAliases.txt.
  3670. *
  3671. * Note: Some of the names in PropertyValueAliases.txt can only be
  3672. * retrieved using UCHAR_GENERAL_CATEGORY_MASK, not
  3673. * UCHAR_GENERAL_CATEGORY. These include: "C" / "Other", "L" /
  3674. * "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P"
  3675. * / "Punctuation", "S" / "Symbol", and "Z" / "Separator".
  3676. *
  3677. * @param property UProperty selector constant.
  3678. * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
  3679. * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT
  3680. * or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.
  3681. * If out of range, NULL is returned.
  3682. *
  3683. * @param value selector for a value for the given property. If out
  3684. * of range, NULL is returned. In general, valid values range
  3685. * from 0 up to some maximum. There are a few exceptions:
  3686. * (1.) UCHAR_BLOCK values begin at the non-zero value
  3687. * UBLOCK_BASIC_LATIN. (2.) UCHAR_CANONICAL_COMBINING_CLASS
  3688. * values are not contiguous and range from 0..240. (3.)
  3689. * UCHAR_GENERAL_CATEGORY_MASK values are not values of
  3690. * UCharCategory, but rather mask values produced by
  3691. * U_GET_GC_MASK(). This allows grouped categories such as
  3692. * [:L:] to be represented. Mask values range
  3693. * non-contiguously from 1..U_GC_P_MASK.
  3694. *
  3695. * @param nameChoice selector for which name to get. If out of range,
  3696. * NULL is returned. All values have a long name. Most have
  3697. * a short name, but some do not. Unicode allows for
  3698. * additional names; if present these will be returned by
  3699. * U_LONG_PROPERTY_NAME + i, where i=1, 2,...
  3700. * @return a pointer to the name, or NULL if either the
  3701. * property or the nameChoice is out of range. If a given
  3702. * nameChoice returns NULL, then all larger values of
  3703. * nameChoice will return NULL, with one exception: if NULL is
  3704. * returned for U_SHORT_PROPERTY_NAME, then
  3705. * U_LONG_PROPERTY_NAME (and higher) may still return a
  3706. * non-NULL value. The returned pointer is valid until
  3707. * u_cleanup() is called.
  3708. *
  3709. * @see UProperty
  3710. * @see UPropertyNameChoice
  3711. * @stable ICU 2.4
  3712. */
  3713. U_CAPI const char* U_EXPORT2
  3714. u_getPropertyValueName(UProperty property,
  3715. int32_t value,
  3716. UPropertyNameChoice nameChoice);
  3717. /**
  3718. * Return the property value integer for a given value name, as
  3719. * specified in the Unicode database file PropertyValueAliases.txt.
  3720. * Short, long, and any other variants are recognized.
  3721. *
  3722. * Note: Some of the names in PropertyValueAliases.txt will only be
  3723. * recognized with UCHAR_GENERAL_CATEGORY_MASK, not
  3724. * UCHAR_GENERAL_CATEGORY. These include: "C" / "Other", "L" /
  3725. * "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P"
  3726. * / "Punctuation", "S" / "Symbol", and "Z" / "Separator".
  3727. *
  3728. * @param property UProperty selector constant.
  3729. * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
  3730. * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT
  3731. * or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.
  3732. * If out of range, UCHAR_INVALID_CODE is returned.
  3733. *
  3734. * @param alias the value name to be matched. The name is compared
  3735. * using "loose matching" as described in
  3736. * PropertyValueAliases.txt.
  3737. *
  3738. * @return a value integer or UCHAR_INVALID_CODE if the given name
  3739. * does not match any value of the given property, or if the
  3740. * property is invalid. Note: UCHAR_GENERAL_CATEGORY_MASK values
  3741. * are not values of UCharCategory, but rather mask values
  3742. * produced by U_GET_GC_MASK(). This allows grouped
  3743. * categories such as [:L:] to be represented.
  3744. *
  3745. * @see UProperty
  3746. * @stable ICU 2.4
  3747. */
  3748. U_CAPI int32_t U_EXPORT2
  3749. u_getPropertyValueEnum(UProperty property,
  3750. const char* alias);
  3751. /**
  3752. * Determines if the specified character is permissible as the first character in an identifier
  3753. * according to UAX #31 Unicode Identifier and Pattern Syntax.
  3754. *
  3755. * Same as Unicode ID_Start (UCHAR_ID_START).
  3756. *
  3757. * @param c the code point to be tested
  3758. * @return true if the code point may start an identifier
  3759. *
  3760. * @see UCHAR_ID_START
  3761. * @see u_isalpha
  3762. * @see u_isIDPart
  3763. * @stable ICU 2.0
  3764. */
  3765. U_CAPI UBool U_EXPORT2
  3766. u_isIDStart(UChar32 c);
  3767. /**
  3768. * Determines if the specified character is permissible as a non-initial character of an identifier
  3769. * according to UAX #31 Unicode Identifier and Pattern Syntax.
  3770. *
  3771. * Same as Unicode ID_Continue (UCHAR_ID_CONTINUE).
  3772. *
  3773. * @param c the code point to be tested
  3774. * @return true if the code point may occur as a non-initial character of an identifier
  3775. *
  3776. * @see UCHAR_ID_CONTINUE
  3777. * @see u_isIDStart
  3778. * @see u_isIDIgnorable
  3779. * @stable ICU 2.0
  3780. */
  3781. U_CAPI UBool U_EXPORT2
  3782. u_isIDPart(UChar32 c);
  3783. #ifndef U_HIDE_DRAFT_API
  3784. /**
  3785. * Does the set of Identifier_Type values code point c contain the given type?
  3786. *
  3787. * Used for UTS #39 General Security Profile for Identifiers
  3788. * (https://www.unicode.org/reports/tr39/#General_Security_Profile).
  3789. *
  3790. * Each code point maps to a <i>set</i> of UIdentifierType values.
  3791. *
  3792. * @param c code point
  3793. * @param type Identifier_Type to check
  3794. * @return true if type is in Identifier_Type(c)
  3795. * @draft ICU 75
  3796. */
  3797. U_CAPI bool U_EXPORT2
  3798. u_hasIDType(UChar32 c, UIdentifierType type);
  3799. /**
  3800. * Writes code point c's Identifier_Type as a list of UIdentifierType values
  3801. * to the output types array and returns the number of types.
  3802. *
  3803. * Used for UTS #39 General Security Profile for Identifiers
  3804. * (https://www.unicode.org/reports/tr39/#General_Security_Profile).
  3805. *
  3806. * Each code point maps to a <i>set</i> of UIdentifierType values.
  3807. * There is always at least one type.
  3808. * The order of output values is undefined.
  3809. * Each type is output at most once;
  3810. * there cannot be more output values than UIdentifierType constants.
  3811. * In addition, only some of the types can be combined with others,
  3812. * and usually only a small number of types occur together.
  3813. * Future versions might add additional types.
  3814. * See UTS #39 and its data files for details.
  3815. *
  3816. * If there are more than capacity types to be written, then
  3817. * U_BUFFER_OVERFLOW_ERROR is set and the number of types is returned.
  3818. * (Usual ICU buffer handling behavior.)
  3819. *
  3820. * @param c code point
  3821. * @param types output array
  3822. * @param capacity capacity of the array
  3823. * @param pErrorCode Standard ICU error code. Its input value must
  3824. * pass the U_SUCCESS() test, or else the function returns
  3825. * immediately. Check for U_FAILURE() on output or use with
  3826. * function chaining. (See User Guide for details.)
  3827. * @return number of values in c's Identifier_Type,
  3828. * written to types unless U_BUFFER_OVERFLOW_ERROR indicates insufficient capacity
  3829. * @draft ICU 75
  3830. */
  3831. U_CAPI int32_t U_EXPORT2
  3832. u_getIDTypes(UChar32 c, UIdentifierType *types, int32_t capacity, UErrorCode *pErrorCode);
  3833. #endif // U_HIDE_DRAFT_API
  3834. /**
  3835. * Determines if the specified character should be regarded
  3836. * as an ignorable character in an identifier,
  3837. * according to Java.
  3838. * True for characters with general category "Cf" (format controls) as well as
  3839. * non-whitespace ISO controls
  3840. * (U+0000..U+0008, U+000E..U+001B, U+007F..U+009F).
  3841. *
  3842. * Same as java.lang.Character.isIdentifierIgnorable().
  3843. *
  3844. * Note that Unicode just recommends to ignore Cf (format controls).
  3845. *
  3846. * @param c the code point to be tested
  3847. * @return true if the code point is ignorable in identifiers according to Java
  3848. *
  3849. * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT
  3850. * @see u_isIDStart
  3851. * @see u_isIDPart
  3852. * @stable ICU 2.0
  3853. */
  3854. U_CAPI UBool U_EXPORT2
  3855. u_isIDIgnorable(UChar32 c);
  3856. /**
  3857. * Determines if the specified character is permissible as the
  3858. * first character in a Java identifier.
  3859. * In addition to u_isIDStart(c), true for characters with
  3860. * general categories "Sc" (currency symbols) and "Pc" (connecting punctuation).
  3861. *
  3862. * Same as java.lang.Character.isJavaIdentifierStart().
  3863. *
  3864. * @param c the code point to be tested
  3865. * @return true if the code point may start a Java identifier
  3866. *
  3867. * @see u_isJavaIDPart
  3868. * @see u_isalpha
  3869. * @see u_isIDStart
  3870. * @stable ICU 2.0
  3871. */
  3872. U_CAPI UBool U_EXPORT2
  3873. u_isJavaIDStart(UChar32 c);
  3874. /**
  3875. * Determines if the specified character is permissible
  3876. * in a Java identifier.
  3877. * In addition to u_isIDPart(c), true for characters with
  3878. * general category "Sc" (currency symbols).
  3879. *
  3880. * Same as java.lang.Character.isJavaIdentifierPart().
  3881. *
  3882. * @param c the code point to be tested
  3883. * @return true if the code point may occur in a Java identifier
  3884. *
  3885. * @see u_isIDIgnorable
  3886. * @see u_isJavaIDStart
  3887. * @see u_isalpha
  3888. * @see u_isdigit
  3889. * @see u_isIDPart
  3890. * @stable ICU 2.0
  3891. */
  3892. U_CAPI UBool U_EXPORT2
  3893. u_isJavaIDPart(UChar32 c);
  3894. /**
  3895. * The given character is mapped to its lowercase equivalent according to
  3896. * UnicodeData.txt; if the character has no lowercase equivalent, the character
  3897. * itself is returned.
  3898. *
  3899. * Same as java.lang.Character.toLowerCase().
  3900. *
  3901. * This function only returns the simple, single-code point case mapping.
  3902. * Full case mappings should be used whenever possible because they produce
  3903. * better results by working on whole strings.
  3904. * They take into account the string context and the language and can map
  3905. * to a result string with a different length as appropriate.
  3906. * Full case mappings are applied by the string case mapping functions,
  3907. * see ustring.h and the UnicodeString class.
  3908. * See also the User Guide chapter on C/POSIX migration:
  3909. * https://unicode-org.github.io/icu/userguide/icu/posix#case-mappings
  3910. *
  3911. * @param c the code point to be mapped
  3912. * @return the Simple_Lowercase_Mapping of the code point, if any;
  3913. * otherwise the code point itself.
  3914. * @stable ICU 2.0
  3915. */
  3916. U_CAPI UChar32 U_EXPORT2
  3917. u_tolower(UChar32 c);
  3918. /**
  3919. * The given character is mapped to its uppercase equivalent according to UnicodeData.txt;
  3920. * if the character has no uppercase equivalent, the character itself is
  3921. * returned.
  3922. *
  3923. * Same as java.lang.Character.toUpperCase().
  3924. *
  3925. * This function only returns the simple, single-code point case mapping.
  3926. * Full case mappings should be used whenever possible because they produce
  3927. * better results by working on whole strings.
  3928. * They take into account the string context and the language and can map
  3929. * to a result string with a different length as appropriate.
  3930. * Full case mappings are applied by the string case mapping functions,
  3931. * see ustring.h and the UnicodeString class.
  3932. * See also the User Guide chapter on C/POSIX migration:
  3933. * https://unicode-org.github.io/icu/userguide/icu/posix#case-mappings
  3934. *
  3935. * @param c the code point to be mapped
  3936. * @return the Simple_Uppercase_Mapping of the code point, if any;
  3937. * otherwise the code point itself.
  3938. * @stable ICU 2.0
  3939. */
  3940. U_CAPI UChar32 U_EXPORT2
  3941. u_toupper(UChar32 c);
  3942. /**
  3943. * The given character is mapped to its titlecase equivalent
  3944. * according to UnicodeData.txt;
  3945. * if none is defined, the character itself is returned.
  3946. *
  3947. * Same as java.lang.Character.toTitleCase().
  3948. *
  3949. * This function only returns the simple, single-code point case mapping.
  3950. * Full case mappings should be used whenever possible because they produce
  3951. * better results by working on whole strings.
  3952. * They take into account the string context and the language and can map
  3953. * to a result string with a different length as appropriate.
  3954. * Full case mappings are applied by the string case mapping functions,
  3955. * see ustring.h and the UnicodeString class.
  3956. * See also the User Guide chapter on C/POSIX migration:
  3957. * https://unicode-org.github.io/icu/userguide/icu/posix#case-mappings
  3958. *
  3959. * @param c the code point to be mapped
  3960. * @return the Simple_Titlecase_Mapping of the code point, if any;
  3961. * otherwise the code point itself.
  3962. * @stable ICU 2.0
  3963. */
  3964. U_CAPI UChar32 U_EXPORT2
  3965. u_totitle(UChar32 c);
  3966. /**
  3967. * The given character is mapped to its case folding equivalent according to
  3968. * UnicodeData.txt and CaseFolding.txt;
  3969. * if the character has no case folding equivalent, the character
  3970. * itself is returned.
  3971. *
  3972. * This function only returns the simple, single-code point case mapping.
  3973. * Full case mappings should be used whenever possible because they produce
  3974. * better results by working on whole strings.
  3975. * They take into account the string context and the language and can map
  3976. * to a result string with a different length as appropriate.
  3977. * Full case mappings are applied by the string case mapping functions,
  3978. * see ustring.h and the UnicodeString class.
  3979. * See also the User Guide chapter on C/POSIX migration:
  3980. * https://unicode-org.github.io/icu/userguide/icu/posix#case-mappings
  3981. *
  3982. * @param c the code point to be mapped
  3983. * @param options Either U_FOLD_CASE_DEFAULT or U_FOLD_CASE_EXCLUDE_SPECIAL_I
  3984. * @return the Simple_Case_Folding of the code point, if any;
  3985. * otherwise the code point itself.
  3986. * @stable ICU 2.0
  3987. */
  3988. U_CAPI UChar32 U_EXPORT2
  3989. u_foldCase(UChar32 c, uint32_t options);
  3990. /**
  3991. * Returns the decimal digit value of the code point in the
  3992. * specified radix.
  3993. *
  3994. * If the radix is not in the range <code>2<=radix<=36</code> or if the
  3995. * value of <code>c</code> is not a valid digit in the specified
  3996. * radix, <code>-1</code> is returned. A character is a valid digit
  3997. * if at least one of the following is true:
  3998. * <ul>
  3999. * <li>The character has a decimal digit value.
  4000. * Such characters have the general category "Nd" (decimal digit numbers)
  4001. * and a Numeric_Type of Decimal.
  4002. * In this case the value is the character's decimal digit value.</li>
  4003. * <li>The character is one of the uppercase Latin letters
  4004. * <code>'A'</code> through <code>'Z'</code>.
  4005. * In this case the value is <code>c-'A'+10</code>.</li>
  4006. * <li>The character is one of the lowercase Latin letters
  4007. * <code>'a'</code> through <code>'z'</code>.
  4008. * In this case the value is <code>ch-'a'+10</code>.</li>
  4009. * <li>Latin letters from both the ASCII range (0061..007A, 0041..005A)
  4010. * as well as from the Fullwidth ASCII range (FF41..FF5A, FF21..FF3A)
  4011. * are recognized.</li>
  4012. * </ul>
  4013. *
  4014. * Same as java.lang.Character.digit().
  4015. *
  4016. * @param ch the code point to be tested.
  4017. * @param radix the radix.
  4018. * @return the numeric value represented by the character in the
  4019. * specified radix,
  4020. * or -1 if there is no value or if the value exceeds the radix.
  4021. *
  4022. * @see UCHAR_NUMERIC_TYPE
  4023. * @see u_forDigit
  4024. * @see u_charDigitValue
  4025. * @see u_isdigit
  4026. * @stable ICU 2.0
  4027. */
  4028. U_CAPI int32_t U_EXPORT2
  4029. u_digit(UChar32 ch, int8_t radix);
  4030. /**
  4031. * Determines the character representation for a specific digit in
  4032. * the specified radix. If the value of <code>radix</code> is not a
  4033. * valid radix, or the value of <code>digit</code> is not a valid
  4034. * digit in the specified radix, the null character
  4035. * (<code>U+0000</code>) is returned.
  4036. * <p>
  4037. * The <code>radix</code> argument is valid if it is greater than or
  4038. * equal to 2 and less than or equal to 36.
  4039. * The <code>digit</code> argument is valid if
  4040. * <code>0 <= digit < radix</code>.
  4041. * <p>
  4042. * If the digit is less than 10, then
  4043. * <code>'0' + digit</code> is returned. Otherwise, the value
  4044. * <code>'a' + digit - 10</code> is returned.
  4045. *
  4046. * Same as java.lang.Character.forDigit().
  4047. *
  4048. * @param digit the number to convert to a character.
  4049. * @param radix the radix.
  4050. * @return the <code>char</code> representation of the specified digit
  4051. * in the specified radix.
  4052. *
  4053. * @see u_digit
  4054. * @see u_charDigitValue
  4055. * @see u_isdigit
  4056. * @stable ICU 2.0
  4057. */
  4058. U_CAPI UChar32 U_EXPORT2
  4059. u_forDigit(int32_t digit, int8_t radix);
  4060. /**
  4061. * Get the "age" of the code point.
  4062. * The "age" is the Unicode version when the code point was first
  4063. * designated (as a non-character or for Private Use)
  4064. * or assigned a character.
  4065. * This can be useful to avoid emitting code points to receiving
  4066. * processes that do not accept newer characters.
  4067. * The data is from the UCD file DerivedAge.txt.
  4068. *
  4069. * @param c The code point.
  4070. * @param versionArray The Unicode version number array, to be filled in.
  4071. *
  4072. * @stable ICU 2.1
  4073. */
  4074. U_CAPI void U_EXPORT2
  4075. u_charAge(UChar32 c, UVersionInfo versionArray);
  4076. /**
  4077. * Gets the Unicode version information.
  4078. * The version array is filled in with the version information
  4079. * for the Unicode standard that is currently used by ICU.
  4080. * For example, Unicode version 3.1.1 is represented as an array with
  4081. * the values { 3, 1, 1, 0 }.
  4082. *
  4083. * @param versionArray an output array that will be filled in with
  4084. * the Unicode version number
  4085. * @stable ICU 2.0
  4086. */
  4087. U_CAPI void U_EXPORT2
  4088. u_getUnicodeVersion(UVersionInfo versionArray);
  4089. #if !UCONFIG_NO_NORMALIZATION
  4090. /**
  4091. * Get the FC_NFKC_Closure property string for a character.
  4092. * See Unicode Standard Annex #15 for details, search for "FC_NFKC_Closure"
  4093. * or for "FNC": http://www.unicode.org/reports/tr15/
  4094. *
  4095. * @param c The character (code point) for which to get the FC_NFKC_Closure string.
  4096. * It must be <code>0<=c<=0x10ffff</code>.
  4097. * @param dest Destination address for copying the string.
  4098. * The string will be zero-terminated if possible.
  4099. * If there is no FC_NFKC_Closure string,
  4100. * then the buffer will be set to the empty string.
  4101. * @param destCapacity <code>==sizeof(dest)</code>
  4102. * @param pErrorCode Pointer to a UErrorCode variable.
  4103. * @return The length of the string, or 0 if there is no FC_NFKC_Closure string for this character.
  4104. * If the destCapacity is less than or equal to the length, then the buffer
  4105. * contains the truncated name and the returned length indicates the full
  4106. * length of the name.
  4107. * The length does not include the zero-termination.
  4108. *
  4109. * @stable ICU 2.2
  4110. */
  4111. U_CAPI int32_t U_EXPORT2
  4112. u_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode);
  4113. #endif
  4114. U_CDECL_END
  4115. #endif /*_UCHAR*/
  4116. /*eof*/