uchar.h 145 KB

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