MCPcopy Create free account
hub / github.com/buger/jsonparser / unescapeToUTF8

Function unescapeToUTF8

escape.go:180–182  ·  view source on GitHub ↗

unescapeToUTF8 unescapes the single escape sequence starting at 'in' into 'out' and returns how many characters were consumed from 'in' and emitted into 'out'. If a valid escape sequence does not appear as a prefix of 'in', (-1, -1) to signal the error.

(in, out []byte)

Source from the content-addressed store, hash-verified

178// how many characters were consumed from 'in' and emitted into 'out'.
179// If a valid escape sequence does not appear as a prefix of 'in', (-1, -1) to signal the error.
180func unescapeToUTF8(in, out []byte) (inLen int, outLen int) {
181 return unescapeToUTF8Config(DefaultConfig, in, out)
182}
183
184// SYS-REQ-115
185func unescapeToUTF8Config(config Config, in, out []byte) (inLen int, outLen int) {

Calls 1

unescapeToUTF8ConfigFunction · 0.85