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)
| 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. |
| 180 | func unescapeToUTF8(in, out []byte) (inLen int, outLen int) { |
| 181 | return unescapeToUTF8Config(DefaultConfig, in, out) |
| 182 | } |
| 183 | |
| 184 | // SYS-REQ-115 |
| 185 | func unescapeToUTF8Config(config Config, in, out []byte) (inLen int, outLen int) { |