aboutsummaryrefslogtreecommitdiff
path: root/src/strconv/quote.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/strconv/quote.go')
-rw-r--r--src/strconv/quote.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/strconv/quote.go b/src/strconv/quote.go
index 6cd2f93068..d8a1ed9ecc 100644
--- a/src/strconv/quote.go
+++ b/src/strconv/quote.go
@@ -11,7 +11,10 @@ import (
"unicode/utf8"
)
-const lowerhex = "0123456789abcdef"
+const (
+ lowerhex = "0123456789abcdef"
+ upperhex = "0123456789ABCDEF"
+)
func quoteWith(s string, quote byte, ASCIIonly, graphicOnly bool) string {
return string(appendQuotedWith(make([]byte, 0, 3*len(s)/2), s, quote, ASCIIonly, graphicOnly))