uchar.h 141 KB

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