203
214
// DecodeRune unpacks the first UTF-8 encoding in p and returns the rune and its width in bytes.
204
215
// If the encoding is invalid, it returns (RuneError, 1), an impossible result for correct UTF-8.
205
219
func DecodeRune(p []byte) (r rune, size int) {
206
220
r, size, _ = decodeRuneInternal(p)