mirror of
https://github.com/golang/go
synced 2025-05-02 02:51:41 +00:00
CategoryAliases is for regexp to use, for things like \p{Letter} as an alias for \p{L}. Cn and LC are special-case categories that were never implemented but should have been. These changes were generated by the updated generator in CL 641395. Fixes #70780. Change-Id: Ibba20ff76191c8ae9631ac5ba19965790fe0cc81 Reviewed-on: https://go-review.googlesource.com/c/go/+/641376 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alan Donovan <adonovan@google.com>
5 lines
385 B
Markdown
5 lines
385 B
Markdown
The new [CategoryAliases] map provides access to category alias names, such as “Letter” for “L”.
|
|
The new categories [Cn] and [LC] define unassigned codepoints and cased letters, respectively.
|
|
These have always been defined by Unicode but were inadvertently omitted in earlier versions of Go.
|
|
The [C] category now includes [Cn], meaning it has added all unassigned code points.
|