utf8.RuneScanner.Buffered()

master
Charles Iliya Krempeaux 2023-11-30 07:24:56 -08:00
parent 6d4d82cd8f
commit 8769b5dac7
1 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,11 @@ func NewRuneScanner(reader io.Reader) *RuneScanner {
// //
// So, for example, if .UnreadRune() was called for the rune 'A' (U+0041), then .Buffered() would return 1. // So, for example, if .UnreadRune() was called for the rune 'A' (U+0041), then .Buffered() would return 1.
// //
// And, for example, if .UnreadRune() was called for the rune '🙂' (U+1F642), then .Buffered() would return 4. // Also, for example, if .UnreadRune() was called for the rune '۵' (U+06F5), then .Buffered() would return 2.
//
// And, for example, if .UnreadRune() was called for the rune '≡' (U+2261), then .Buffered() would return 3.
//
// And also, for example, if .UnreadRune() was called for the rune '🙂' (U+1F642), then .Buffered() would return 4.
// //
// This method has been made to be semantically the same as bufio.Reader.Buffered() // This method has been made to be semantically the same as bufio.Reader.Buffered()
func (receiver *RuneScanner) Buffered() int { func (receiver *RuneScanner) Buffered() int {