- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for trimUTF8 (0.12 sec)
-
src/cmd/internal/test2json/test2json.go
return !unicode.IsLower(r) } // trimUTF8 returns a length t as close to len(b) as possible such that b[:t] // does not end in the middle of a possibly-valid UTF-8 sequence. // // If a large text buffer must be split before position i at the latest, // splitting at position trimUTF(b[:i]) avoids splitting a UTF-8 sequence. func trimUTF8(b []byte) int { // Scan backward to find non-continuation byte.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 17:33:07 UTC 2022 - 14.5K bytes - Viewed (0)