Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ScanRunes (0.07 sec)

  1. src/bufio/scan.go

    	if atEOF && len(data) == 0 {
    		return 0, nil, nil
    	}
    	return 1, data[0:1], nil
    }
    
    var errorRune = []byte(string(utf8.RuneError))
    
    // ScanRunes is a split function for a [Scanner] that returns each
    // UTF-8-encoded rune as a token. The sequence of runes returned is
    // equivalent to that from a range loop over the input as a string, which
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 23 09:06:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. src/bufio/scan_test.go

    func TestScanRune(t *testing.T) {
    	for n, test := range scanTests {
    		buf := strings.NewReader(test)
    		s := NewScanner(buf)
    		s.Split(ScanRunes)
    		var i, runeCount int
    		var expect rune
    		// Use a string range loop to validate the sequence of runes.
    		for i, expect = range test {
    			if !s.Scan() {
    				break
    			}
    			runeCount++
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  3. api/go1.1.txt

    pkg bufio, func NewScanner(io.Reader) *Scanner
    pkg bufio, func ScanBytes([]uint8, bool) (int, []uint8, error)
    pkg bufio, func ScanLines([]uint8, bool) (int, []uint8, error)
    pkg bufio, func ScanRunes([]uint8, bool) (int, []uint8, error)
    pkg bufio, func ScanWords([]uint8, bool) (int, []uint8, error)
    pkg bufio, method (*Reader) WriteTo(io.Writer) (int64, error)
    pkg bufio, method (*Scanner) Bytes() []uint8
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top