]> Cypherpunks repositories - gostls13.git/commit
strconv: add QuotedPrefix
authorJoe Tsai <joetsai@digital-static.net>
Thu, 29 Apr 2021 00:39:46 +0000 (17:39 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Tue, 4 May 2021 00:56:00 +0000 (00:56 +0000)
commite3769299cd3484e018e0e2a6e1b95c2b18ce4f41
treeef742ff2179e853f4da7026ffc41c98d0f172b91
parent2422c5eae5dc6539b4b7657ef7bfe58a65acb61d
strconv: add QuotedPrefix

QuotedPrefix is similar to Unquote, but returns the quoted string verbatim
and ignores any data after the quoted string.

Fixes #45033

Change-Id: I9f69fe9e3e45cbe9e63581cf1b457facb625045d
Reviewed-on: https://go-review.googlesource.com/c/go/+/314775
Trust: Joe Tsai <joetsai@digital-static.net>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/strconv/bytealg.go
src/strconv/bytealg_bootstrap.go
src/strconv/quote.go
src/strconv/quote_test.go