Repository navigation
Unicode 18.0.0
All property tables, normalization data, and unicodelib_names.h are regenerated from Unicode 18.0.0.
- New scripts:
Jurchen,Proto_Cuneiform,Seal - New blocks:
BengaliSupplement,ArchaicCuneiformNumerals,Jurchen,JurchenRadicals,MusicalSymbolsSupplement,MiscellaneousSymbolsAndArrowsExtended,Seal
Behavior changes
Grapheme clusters: new GB9c rule
UAX #29 revision 49 replaces GB9c with a simpler rule (UTC decision 187-C47):
| Rule | |
|---|---|
| 17.0 | \p{InCB=Consonant} [\p{InCB=Extend} \p{InCB=Linker}]* \p{InCB=Linker} [\p{InCB=Extend} \p{InCB=Linker}]* × \p{InCB=Consonant} |
| 18.0 | \p{InCB=Linker} \p{InCB=Extend}* × \p{InCB=Consonant} |
A linker no longer needs a consonant before it. InCB=Linker is also now derived from InSC=Consonant_With_Stacker, so U+1CF5 and U+1CF6 (Vedic) and U+11A3A (Zanabazar Square) join the consonant that follows them. These three have Grapheme_Cluster_Break=Other, not Extend.
This changes is_grapheme_boundary(), grapheme_length(), and grapheme_count() for sequences like these:
| Sequence | 17.0 | 18.0 |
|---|---|---|
25CC 094D 0915 (dotted circle, virama, KA) |
2 clusters | 1 cluster |
0905 094D 0915 (independent vowel, virama, KA) |
2 clusters | 1 cluster |
094D 0915 at the start of text |
2 clusters | 1 cluster |
1CF5 0995 (JIHVAMULIYA, BENGALI KA) |
2 clusters | 1 cluster |
The usual consonant + virama + consonant conjuncts (e.g. 0915 094D 0937) are one cluster in both versions. Word and sentence segmentation do not use GB9c and are unaffected by it.
Enum values
Block values follow code point order, so the new blocks shift the integer values of the blocks after them. New Script values are appended at the end. Do not store these enums as integers across versions.
Versioning
From this release on, tags are vMAJOR.MINOR.PATCH, where MAJOR.MINOR is the Unicode version and PATCH counts library releases on it. v18.0.1 would be a library update on Unicode 18.0 data, not "Unicode 18.0.1". The last Unicode 17.0 release is tagged v17.0.0; pin it if you need Unicode 17.0 behavior.
The library version is available as CPPUNICODELIB_VERSION / CPPUNICODELIB_VERSION_NUM, and the Unicode version as unicode::Unicode_Version.
Full Changelog: v17.0.0...v18.0.0