unormimp.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. // © 2016 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. /*
  4. *******************************************************************************
  5. *
  6. * Copyright (C) 2001-2011, International Business Machines
  7. * Corporation and others. All Rights Reserved.
  8. *
  9. *******************************************************************************
  10. * file name: unormimp.h
  11. * encoding: UTF-8
  12. * tab size: 8 (not used)
  13. * indentation:4
  14. *
  15. * created on: 2001may25
  16. * created by: Markus W. Scherer
  17. */
  18. #ifndef __UNORMIMP_H__
  19. #define __UNORMIMP_H__
  20. #include "unicode/utypes.h"
  21. #if !UCONFIG_NO_NORMALIZATION
  22. #include "udataswp.h"
  23. /*
  24. * The 2001-2010 implementation of the normalization code loads its data from
  25. * unorm.icu, which is generated with the gennorm tool.
  26. * The format of that file is described at the end of this file.
  27. */
  28. /* norm32 value constants */
  29. enum {
  30. /* quick check flags 0..3 set mean "no" for their forms */
  31. _NORM_QC_NFC=0x11, /* no|maybe */
  32. _NORM_QC_NFKC=0x22, /* no|maybe */
  33. _NORM_QC_NFD=4, /* no */
  34. _NORM_QC_NFKD=8, /* no */
  35. _NORM_QC_ANY_NO=0xf,
  36. /* quick check flags 4..5 mean "maybe" for their forms; test flags>=_NORM_QC_MAYBE */
  37. _NORM_QC_MAYBE=0x10,
  38. _NORM_QC_ANY_MAYBE=0x30,
  39. _NORM_QC_MASK=0x3f,
  40. _NORM_COMBINES_FWD=0x40,
  41. _NORM_COMBINES_BACK=0x80,
  42. _NORM_COMBINES_ANY=0xc0,
  43. _NORM_CC_SHIFT=8, /* UnicodeData.txt combining class in bits 15..8 */
  44. _NORM_CC_MASK=0xff00,
  45. _NORM_EXTRA_SHIFT=16, /* 16 bits for the index to UChars and other extra data */
  46. _NORM_EXTRA_INDEX_TOP=0xfc00, /* start of surrogate specials after shift */
  47. _NORM_EXTRA_SURROGATE_MASK=0x3ff,
  48. _NORM_EXTRA_SURROGATE_TOP=0x3f0, /* hangul etc. */
  49. _NORM_EXTRA_HANGUL=_NORM_EXTRA_SURROGATE_TOP,
  50. _NORM_EXTRA_JAMO_L,
  51. _NORM_EXTRA_JAMO_V,
  52. _NORM_EXTRA_JAMO_T
  53. };
  54. /* norm32 value constants using >16 bits */
  55. #define _NORM_MIN_SPECIAL 0xfc000000
  56. #define _NORM_SURROGATES_TOP 0xfff00000
  57. #define _NORM_MIN_HANGUL 0xfff00000
  58. #define _NORM_MIN_JAMO_V 0xfff20000
  59. #define _NORM_JAMO_V_TOP 0xfff30000
  60. /* value constants for auxTrie */
  61. enum {
  62. _NORM_AUX_COMP_EX_SHIFT=10,
  63. _NORM_AUX_UNSAFE_SHIFT=11,
  64. _NORM_AUX_NFC_SKIPPABLE_F_SHIFT=12
  65. };
  66. #define _NORM_AUX_MAX_FNC ((int32_t)1<<_NORM_AUX_COMP_EX_SHIFT)
  67. #define _NORM_AUX_FNC_MASK (uint32_t)(_NORM_AUX_MAX_FNC-1)
  68. #define _NORM_AUX_COMP_EX_MASK ((uint32_t)1<<_NORM_AUX_COMP_EX_SHIFT)
  69. #define _NORM_AUX_UNSAFE_MASK ((uint32_t)1<<_NORM_AUX_UNSAFE_SHIFT)
  70. #define _NORM_AUX_NFC_SKIP_F_MASK ((uint32_t)1<<_NORM_AUX_NFC_SKIPPABLE_F_SHIFT)
  71. /* canonStartSets[0..31] contains indexes for what is in the array */
  72. enum {
  73. _NORM_SET_INDEX_CANON_SETS_LENGTH, /* number of uint16_t in canonical starter sets */
  74. _NORM_SET_INDEX_CANON_BMP_TABLE_LENGTH, /* number of uint16_t in the BMP search table (contains pairs) */
  75. _NORM_SET_INDEX_CANON_SUPP_TABLE_LENGTH,/* number of uint16_t in the supplementary search table (contains triplets) */
  76. /* from formatVersion 2.3: */
  77. _NORM_SET_INDEX_NX_CJK_COMPAT_OFFSET, /* uint16_t offset from canonStartSets[0] to the
  78. exclusion set for CJK compatibility characters */
  79. _NORM_SET_INDEX_NX_UNICODE32_OFFSET, /* uint16_t offset from canonStartSets[0] to the
  80. exclusion set for Unicode 3.2 characters */
  81. _NORM_SET_INDEX_NX_RESERVED_OFFSET, /* uint16_t offset from canonStartSets[0] to the
  82. end of the previous exclusion set */
  83. _NORM_SET_INDEX_TOP=32 /* changing this requires a new formatVersion */
  84. };
  85. /* more constants for canonical starter sets */
  86. /* 14 bit indexes to canonical USerializedSets */
  87. #define _NORM_MAX_CANON_SETS 0x4000
  88. /* single-code point BMP sets are encoded directly in the search table except if result=0x4000..0x7fff */
  89. #define _NORM_CANON_SET_BMP_MASK 0xc000
  90. #define _NORM_CANON_SET_BMP_IS_INDEX 0x4000
  91. /* indexes[] value names */
  92. enum {
  93. _NORM_INDEX_TRIE_SIZE, /* number of bytes in normalization trie */
  94. _NORM_INDEX_UCHAR_COUNT, /* number of UChars in extra data */
  95. _NORM_INDEX_COMBINE_DATA_COUNT, /* number of uint16_t words for combining data */
  96. _NORM_INDEX_COMBINE_FWD_COUNT, /* number of code points that combine forward */
  97. _NORM_INDEX_COMBINE_BOTH_COUNT, /* number of code points that combine forward and backward */
  98. _NORM_INDEX_COMBINE_BACK_COUNT, /* number of code points that combine backward */
  99. _NORM_INDEX_MIN_NFC_NO_MAYBE, /* first code point with quick check NFC NO/MAYBE */
  100. _NORM_INDEX_MIN_NFKC_NO_MAYBE, /* first code point with quick check NFKC NO/MAYBE */
  101. _NORM_INDEX_MIN_NFD_NO_MAYBE, /* first code point with quick check NFD NO/MAYBE */
  102. _NORM_INDEX_MIN_NFKD_NO_MAYBE, /* first code point with quick check NFKD NO/MAYBE */
  103. _NORM_INDEX_FCD_TRIE_SIZE, /* number of bytes in FCD trie */
  104. _NORM_INDEX_AUX_TRIE_SIZE, /* number of bytes in the auxiliary trie */
  105. _NORM_INDEX_CANON_SET_COUNT, /* number of uint16_t in the array of serialized USet */
  106. _NORM_INDEX_TOP=32 /* changing this requires a new formatVersion */
  107. };
  108. enum {
  109. /* FCD check: everything below this code point is known to have a 0 lead combining class */
  110. _NORM_MIN_WITH_LEAD_CC=0x300
  111. };
  112. enum {
  113. /**
  114. * Bit 7 of the length byte for a decomposition string in extra data is
  115. * a flag indicating whether the decomposition string is
  116. * preceded by a 16-bit word with the leading and trailing cc
  117. * of the decomposition (like for A-umlaut);
  118. * if not, then both cc's are zero (like for compatibility ideographs).
  119. */
  120. _NORM_DECOMP_FLAG_LENGTH_HAS_CC=0x80,
  121. /**
  122. * Bits 6..0 of the length byte contain the actual length.
  123. */
  124. _NORM_DECOMP_LENGTH_MASK=0x7f
  125. };
  126. /** Constants for options flags for normalization. */
  127. enum {
  128. /** Options bit 0, do not decompose Hangul syllables. */
  129. UNORM_NX_HANGUL=1,
  130. /** Options bit 1, do not decompose CJK compatibility characters. */
  131. UNORM_NX_CJK_COMPAT=2
  132. };
  133. /**
  134. * Description of the format of unorm.icu version 2.3.
  135. *
  136. * Main change from version 1 to version 2:
  137. * Use of new, common UTrie instead of normalization-specific tries.
  138. * Change to version 2.1: add third/auxiliary trie with associated data.
  139. * Change to version 2.2: add skippable (f) flag data (_NORM_AUX_NFC_SKIP_F_MASK).
  140. * Change to version 2.3: add serialized sets for normalization exclusions
  141. * stored inside canonStartSets[]
  142. *
  143. * For more details of how to use the data structures see the code
  144. * in unorm.cpp (runtime normalization code) and
  145. * in gennorm.c and gennorm/store.c (build-time data generation).
  146. *
  147. * For the serialized format of UTrie see utrie.c/UTrieHeader.
  148. *
  149. * - Overall partition
  150. *
  151. * unorm.dat customarily begins with a UDataInfo structure, see udata.h and .c.
  152. * After that there are the following structures:
  153. *
  154. * int32_t indexes[_NORM_INDEX_TOP]; -- _NORM_INDEX_TOP=32, see enum in this file
  155. *
  156. * UTrie normTrie; -- size in bytes=indexes[_NORM_INDEX_TRIE_SIZE]
  157. *
  158. * uint16_t extraData[extraDataTop]; -- extraDataTop=indexes[_NORM_INDEX_UCHAR_COUNT]
  159. * extraData[0] contains the number of units for
  160. * FC_NFKC_Closure (formatVersion>=2.1)
  161. *
  162. * uint16_t combiningTable[combiningTableTop]; -- combiningTableTop=indexes[_NORM_INDEX_COMBINE_DATA_COUNT]
  163. * combiningTableTop may include one 16-bit padding unit
  164. * to make sure that fcdTrie is 32-bit-aligned
  165. *
  166. * UTrie fcdTrie; -- size in bytes=indexes[_NORM_INDEX_FCD_TRIE_SIZE]
  167. *
  168. * UTrie auxTrie; -- size in bytes=indexes[_NORM_INDEX_AUX_TRIE_SIZE]
  169. *
  170. * uint16_t canonStartSets[canonStartSetsTop] -- canonStartSetsTop=indexes[_NORM_INDEX_CANON_SET_COUNT]
  171. * serialized USets and binary search tables, see below
  172. *
  173. *
  174. * The indexes array contains lengths and sizes of the following arrays and structures
  175. * as well as the following values:
  176. * indexes[_NORM_INDEX_COMBINE_FWD_COUNT]=combineFwdTop
  177. * -- one more than the highest combining index computed for forward-only-combining characters
  178. * indexes[_NORM_INDEX_COMBINE_BOTH_COUNT]=combineBothTop-combineFwdTop
  179. * -- number of combining indexes computed for both-ways-combining characters
  180. * indexes[_NORM_INDEX_COMBINE_BACK_COUNT]=combineBackTop-combineBothTop
  181. * -- number of combining indexes computed for backward-only-combining characters
  182. *
  183. * indexes[_NORM_INDEX_MIN_NF*_NO_MAYBE] (where *={ C, D, KC, KD })
  184. * -- first code point with a quick check NF* value of NO/MAYBE
  185. *
  186. *
  187. * - Tries
  188. *
  189. * The main structures are two UTrie tables ("compact arrays"),
  190. * each with one index array and one data array.
  191. * See utrie.h and utrie.c.
  192. *
  193. *
  194. * - Tries in unorm.dat
  195. *
  196. * The first trie (normTrie above)
  197. * provides data for the NF* quick checks and normalization.
  198. * The second trie (fcdTrie above) provides data just for FCD checks.
  199. *
  200. *
  201. * - norm32 data words from the first trie
  202. *
  203. * The norm32Table contains one 32-bit word "norm32" per code point.
  204. * It contains the following bit fields:
  205. * 31..16 extra data index, _NORM_EXTRA_SHIFT is used to shift this field down
  206. * if this index is <_NORM_EXTRA_INDEX_TOP then it is an index into
  207. * extraData[] where variable-length normalization data for this
  208. * code point is found
  209. * if this index is <_NORM_EXTRA_INDEX_TOP+_NORM_EXTRA_SURROGATE_TOP
  210. * then this is a norm32 for a leading surrogate, and the index
  211. * value is used together with the following trailing surrogate
  212. * code unit in the second trie access
  213. * if this index is >=_NORM_EXTRA_INDEX_TOP+_NORM_EXTRA_SURROGATE_TOP
  214. * then this is a norm32 for a "special" character,
  215. * i.e., the character is a Hangul syllable or a Jamo
  216. * see _NORM_EXTRA_HANGUL etc.
  217. * generally, instead of extracting this index from the norm32 and
  218. * comparing it with the above constants,
  219. * the normalization code compares the entire norm32 value
  220. * with _NORM_MIN_SPECIAL, _NORM_SURROGATES_TOP, _NORM_MIN_HANGUL etc.
  221. *
  222. * 15..8 combining class (cc) according to UnicodeData.txt
  223. *
  224. * 7..6 _NORM_COMBINES_ANY flags, used in composition to see if a character
  225. * combines with any following or preceding character(s)
  226. * at all
  227. * 7 _NORM_COMBINES_BACK
  228. * 6 _NORM_COMBINES_FWD
  229. *
  230. * 5..0 quick check flags, set for "no" or "maybe", with separate flags for
  231. * each normalization form
  232. * the higher bits are "maybe" flags; for NF*D there are no such flags
  233. * the lower bits are "no" flags for all forms, in the same order
  234. * as the "maybe" flags,
  235. * which is (MSB to LSB): NFKD NFD NFKC NFC
  236. * 5..4 _NORM_QC_ANY_MAYBE
  237. * 3..0 _NORM_QC_ANY_NO
  238. * see further related constants
  239. *
  240. *
  241. * - Extra data per code point
  242. *
  243. * "Extra data" is referenced by the index in norm32.
  244. * It is variable-length data. It is only present, and only those parts
  245. * of it are, as needed for a given character.
  246. * The norm32 extra data index is added to the beginning of extraData[]
  247. * to get to a vector of 16-bit words with data at the following offsets:
  248. *
  249. * [-1] Combining index for composition.
  250. * Stored only if norm32&_NORM_COMBINES_ANY .
  251. * [0] Lengths of the canonical and compatibility decomposition strings.
  252. * Stored only if there are decompositions, i.e.,
  253. * if norm32&(_NORM_QC_NFD|_NORM_QC_NFKD)
  254. * High byte: length of NFKD, or 0 if none
  255. * Low byte: length of NFD, or 0 if none
  256. * Each length byte also has another flag:
  257. * Bit 7 of a length byte is set if there are non-zero
  258. * combining classes (cc's) associated with the respective
  259. * decomposition. If this flag is set, then the decomposition
  260. * is preceded by a 16-bit word that contains the
  261. * leading and trailing cc's.
  262. * Bits 6..0 of a length byte are the length of the
  263. * decomposition string, not counting the cc word.
  264. * [1..n] NFD
  265. * [n+1..] NFKD
  266. *
  267. * Each of the two decompositions consists of up to two parts:
  268. * - The 16-bit words with the leading and trailing cc's.
  269. * This is only stored if bit 7 of the corresponding length byte
  270. * is set. In this case, at least one of the cc's is not zero.
  271. * High byte: leading cc==cc of the first code point in the decomposition string
  272. * Low byte: trailing cc==cc of the last code point in the decomposition string
  273. * - The decomposition string in UTF-16, with length code units.
  274. *
  275. *
  276. * - Combining indexes and combiningTable[]
  277. *
  278. * Combining indexes are stored at the [-1] offset of the extra data
  279. * if the character combines forward or backward with any other characters.
  280. * They are used for (re)composition in NF*C.
  281. * Values of combining indexes are arranged according to whether a character
  282. * combines forward, backward, or both ways:
  283. * forward-only < both ways < backward-only
  284. *
  285. * The index values for forward-only and both-ways combining characters
  286. * are indexes into the combiningTable[].
  287. * The index values for backward-only combining characters are simply
  288. * incremented from the preceding index values to be unique.
  289. *
  290. * In the combiningTable[], a variable-length list
  291. * of variable-length (back-index, code point) pair entries is stored
  292. * for each forward-combining character.
  293. *
  294. * These back-indexes are the combining indexes of both-ways or backward-only
  295. * combining characters that the forward-combining character combines with.
  296. *
  297. * Each list is sorted in ascending order of back-indexes.
  298. * Each list is terminated with the last back-index having bit 15 set.
  299. *
  300. * Each pair (back-index, code point) takes up either 2 or 3
  301. * 16-bit words.
  302. * The first word of a list entry is the back-index, with its bit 15 set if
  303. * this is the last pair in the list.
  304. *
  305. * The second word contains flags in bits 15..13 that determine
  306. * if there is a third word and how the combined character is encoded:
  307. * 15 set if there is a third word in this list entry
  308. * 14 set if the result is a supplementary character
  309. * 13 set if the result itself combines forward
  310. *
  311. * According to these bits 15..14 of the second word,
  312. * the result character is encoded as follows:
  313. * 00 or 01 The result is <=0x1fff and stored in bits 12..0 of
  314. * the second word.
  315. * 10 The result is 0x2000..0xffff and stored in the third word.
  316. * Bits 12..0 of the second word are not used.
  317. * 11 The result is a supplementary character.
  318. * Bits 9..0 of the leading surrogate are in bits 9..0 of
  319. * the second word.
  320. * Add 0xd800 to these bits to get the complete surrogate.
  321. * Bits 12..10 of the second word are not used.
  322. * The trailing surrogate is stored in the third word.
  323. *
  324. *
  325. * - FCD trie
  326. *
  327. * The FCD trie is very simple.
  328. * It is a folded trie with 16-bit data words.
  329. * In each word, the high byte contains the leading cc of the character,
  330. * and the low byte contains the trailing cc of the character.
  331. * These cc's are the cc's of the first and last code points in the
  332. * canonical decomposition of the character.
  333. *
  334. * Since all 16 bits are used for cc's, lead surrogates must be tested
  335. * by checking the code unit instead of the trie data.
  336. * This is done only if the 16-bit data word is not zero.
  337. * If the code unit is a leading surrogate and the data word is not zero,
  338. * then instead of cc's it contains the offset for the second trie lookup.
  339. *
  340. *
  341. * - Auxiliary trie and data
  342. *
  343. * The auxiliary 16-bit trie contains data for additional properties.
  344. * Bits
  345. * 15..13 reserved
  346. * 12 not NFC_Skippable (f) (formatVersion>=2.2)
  347. * 11 flag: not a safe starter for canonical closure
  348. * 10 composition exclusion
  349. * 9.. 0 index into extraData[] to FC_NFKC_Closure string
  350. * (not for lead surrogate),
  351. * or lead surrogate offset (for lead surrogate, if 9..0 not zero)
  352. *
  353. * - FC_NFKC_Closure strings in extraData[]
  354. *
  355. * Strings are either stored as a single code unit or as the length
  356. * followed by that many units.
  357. * const char16_t *s=extraData+(index from auxTrie data bits 9..0);
  358. * int32_t length;
  359. * if(*s<0xff00) {
  360. * // s points to the single-unit string
  361. * length=1;
  362. * } else {
  363. * length=*s&0xff;
  364. * ++s;
  365. * }
  366. *
  367. * Conditions for "NF* Skippable" from Mark Davis' com.ibm.text.UCD.NFSkippable:
  368. * (used in NormalizerTransliterator)
  369. *
  370. * A skippable character is
  371. * a) unassigned, or ALL of the following:
  372. * b) of combining class 0.
  373. * c) not decomposed by this normalization form.
  374. * AND if NFC or NFKC,
  375. * d) can never compose with a previous character.
  376. * e) can never compose with a following character.
  377. * f) can never change if another character is added.
  378. * Example: a-breve might satisfy all but f, but if you
  379. * add an ogonek it changes to a-ogonek + breve
  380. *
  381. * a)..e) must be tested from norm32.
  382. * Since f) is more complicated, the (not-)NFC_Skippable flag (f) is built
  383. * into the auxiliary trie.
  384. * The same bit is used for NFC and NFKC; (c) differs for them.
  385. * As usual, we build the "not skippable" flags so that unassigned
  386. * code points get a 0 bit.
  387. * This bit is only valid after (a)..(e) test false; test NFD_NO before (f) as well.
  388. * Test Hangul LV syllables entirely in code.
  389. *
  390. *
  391. * - structure inside canonStartSets[]
  392. *
  393. * This array maps from code points c to sets of code points (USerializedSet).
  394. * The result sets are the code points whose canonical decompositions start
  395. * with c.
  396. *
  397. * canonStartSets[] contains the following sub-arrays:
  398. *
  399. * indexes[_NORM_SET_INDEX_TOP]
  400. * - contains lengths of sub-arrays etc.
  401. *
  402. * startSets[indexes[_NORM_SET_INDEX_CANON_SETS_LENGTH]-_NORM_SET_INDEX_TOP]
  403. * - contains serialized sets (USerializedSet) of canonical starters for
  404. * enumerating canonically equivalent strings
  405. * indexes[_NORM_SET_INDEX_CANON_SETS_LENGTH] includes _NORM_SET_INDEX_TOP
  406. * for details about the structure see uset.c
  407. *
  408. * bmpTable[indexes[_NORM_SET_INDEX_CANON_BMP_TABLE_LENGTH]]
  409. * - a sorted search table for BMP code points whose results are
  410. * either indexes to USerializedSets or single code points for
  411. * single-code point sets;
  412. * each entry is a pair of { code point, result } with result=(binary) yy xxxxxx xxxxxxxx
  413. * if yy==01 then there is a USerializedSet at canonStartSets+x
  414. * else build a USerializedSet with result as the single code point
  415. *
  416. * suppTable[indexes[_NORM_SET_INDEX_CANON_SUPP_TABLE_LENGTH]]
  417. * - a sorted search table for supplementary code points whose results are
  418. * either indexes to USerializedSets or single code points for
  419. * single-code point sets;
  420. * each entry is a triplet of { high16(cp), low16(cp), result }
  421. * each code point's high-word may contain extra data in bits 15..5:
  422. * if the high word has bit 15 set, then build a set with a single code point
  423. * which is (((high16(cp)&0x1f00)<<8)|result;
  424. * else there is a USerializedSet at canonStartSets+result
  425. *
  426. * FormatVersion 2.3 adds 2 serialized sets for normalization exclusions.
  427. * They are stored in the data file so that the runtime normalization code need
  428. * not depend on other properties and their data and implementation files.
  429. * The _NORM_SET_INDEX_NX_..._OFFSET offsets in the canonStartSets index table
  430. * give the location for each set.
  431. * There is no set stored for UNORM_NX_HANGUL because it's trivial to create
  432. * without using properties.
  433. *
  434. * Set contents:
  435. *
  436. * _NORM_SET_INDEX_NX_CJK_COMPAT_OFFSET (for UNORM_NX_CJK_COMPAT)
  437. * [[:Ideographic:]&[:NFD_QC=No:]]
  438. * =[CJK Ideographs]&[has canonical decomposition]
  439. *
  440. * _NORM_SET_INDEX_NX_UNICODE32_OFFSET (for UNORM_UNICODE_3_2)
  441. * [:^Age=3.2:]
  442. * =set with all code points that were not designated by the specified Unicode version
  443. *
  444. * _NORM_SET_INDEX_NX_RESERVED_OFFSET
  445. * This is an offset that points to where the next, future set would start.
  446. * Currently it indicates where the previous set ends, and thus its length.
  447. * The name for this enum constant may in the future be applied to different
  448. * index slots. In order to get the limit of a set, use its index slot and
  449. * the immediately following one regardless of that one's enum name.
  450. */
  451. #endif /* #if !UCONFIG_NO_NORMALIZATION */
  452. #endif