summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorgriesemer <gri@golang.org>2017-09-25 15:54:48 +0200
committerRobert Griesemer <gri@golang.org>2017-10-06 17:46:15 +0000
commit51cfe6849a2b945c9a2bb9d271bf142f3bb99eca (patch)
treef750265e3098c75451dfed52860cdba41e08d9d7 /api
parentcf01e6f212cd2cae8c3595057ff739d942d18479 (diff)
downloadgo-git-51cfe6849a2b945c9a2bb9d271bf142f3bb99eca.tar.gz
math/big: provide support for conversion bases up to 62
Increase MaxBase from 36 to 62 and extend the conversion alphabet with the upper-case letters 'A' to 'Z'. For int conversions with bases <= 36, the letters 'A' to 'Z' have the same values (10 to 35) as the corresponding lower-case letters. For conversion bases > 36 up to 62, the upper-case letters have the values 36 to 61. Added MaxBase to api/except.txt: Clients should not make assumptions about the value of MaxBase being constant. The core of the change is in natconv.go. The remaining changes are adjusted tests and documentation. Fixes #21558. Change-Id: I5f74da633caafca03993e13f32ac9546c572cc84 Reviewed-on: https://go-review.googlesource.com/65970 Reviewed-by: Martin Möhrmann <moehrmann@google.com>
Diffstat (limited to 'api')
-rw-r--r--api/except.txt1
-rw-r--r--api/next.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/api/except.txt b/api/except.txt
index fbabd18a81..5c0837e3f7 100644
--- a/api/except.txt
+++ b/api/except.txt
@@ -1,4 +1,5 @@
pkg encoding/json, method (*RawMessage) MarshalJSON() ([]uint8, error)
+pkg math/big, const MaxBase = 36
pkg math/big, type Word uintptr
pkg net, func ListenUnixgram(string, *UnixAddr) (*UDPConn, error)
pkg os (linux-arm), const O_SYNC = 4096
diff --git a/api/next.txt b/api/next.txt
index e69de29bb2..52288941a7 100644
--- a/api/next.txt
+++ b/api/next.txt
@@ -0,0 +1 @@
+pkg math/big, const MaxBase = 62