aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorJes Cok <xigua67damn@gmail.com>2024-03-07 21:36:47 +0800
committerGopher Robot <gobot@golang.org>2024-03-07 19:08:48 +0000
commitef4f2a05972f9b729f5edb897d581f496675f588 (patch)
tree3fd678ebc37afce98536a25a35c6fd7a70296dd8 /api
parente0ba596c15dd82aad021c0c812fda6ca14ce118a (diff)
downloadgo-ef4f2a05972f9b729f5edb897d581f496675f588.tar.xz
unicode/utf16: add func RuneLen
This CL adds func RuneLen, while here, also uses RuneLen to simplify code in Encode. Fixes #44940 Change-Id: Ifd3b537f69880dfd32a69a6733d8d3c2b5d4ecba Reviewed-on: https://go-review.googlesource.com/c/go/+/569755 Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Commit-Queue: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'api')
-rw-r--r--api/next/44940.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/next/44940.txt b/api/next/44940.txt
new file mode 100644
index 0000000000..4efb7c5782
--- /dev/null
+++ b/api/next/44940.txt
@@ -0,0 +1 @@
+pkg unicode/utf16, func RuneLen(int32) int #44940