diff options
| author | Russ Cox <rsc@golang.org> | 2025-01-08 11:21:30 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2025-04-18 14:13:31 -0700 |
| commit | 28fd9fa8a6de5f5e75a3ca2eeaa55b5ae4a2722b (patch) | |
| tree | 4b6dd7ff7e4b0296b8828cb2d6785085240a5f4d /doc | |
| parent | 252c939445b6b03c5c82b54f7657c5d984ce6348 (diff) | |
| download | go-28fd9fa8a6de5f5e75a3ca2eeaa55b5ae4a2722b.tar.xz | |
unicode: add CategoryAliases, Cn, LC
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>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/next/6-stdlib/99-minor/unicode/70780.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/next/6-stdlib/99-minor/unicode/70780.md b/doc/next/6-stdlib/99-minor/unicode/70780.md new file mode 100644 index 0000000000..d799ca0c35 --- /dev/null +++ b/doc/next/6-stdlib/99-minor/unicode/70780.md @@ -0,0 +1,4 @@ +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. |
