Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for Loop (0.12 sec)

  1. 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++
    			got, _ := utf8.DecodeRune(s.Bytes())
    			if got != expect {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/arm64enc.s

    	NGCW R13, R8                               // e8030d5a
    	NGC R2, R7                                 // e70302da
    	NGCSW R10, R5                              // e5030a7a
    	NGCS R24, R16                              // f00318fa
    	NOOP                                        // 1f2003d5
    	ORNW R4@>11, R16, R3                       // 032ee42a
    	ORN R22@>19, R3, R3                        // 634cf6aa
    	ORRW $4294443071, R15, R24                 // f8490d32
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jul 24 01:11:41 GMT 2023
    - 43.9K bytes
    - Viewed (1)
  3. src/bufio/bufio.go

    			if n < 0 {
    				panic(errNegativeRead)
    			}
    			if n > 0 {
    				b.lastByte = int(p[n-1])
    				b.lastRuneSize = -1
    			}
    			return n, b.readErr()
    		}
    		// One read.
    		// Do not use b.fill, which will loop.
    		b.r = 0
    		b.w = 0
    		n, b.err = b.rd.Read(b.buf)
    		if n < 0 {
    			panic(errNegativeRead)
    		}
    		if n == 0 {
    			return 0, b.readErr()
    		}
    		b.w += n
    	}
    
    	// copy as much as we can
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/testdata/arm64.s

    	PRFM	48(R6), PSTL2STRM               // d31880f9
    	PRFM	8(R12), PLIL3STRM               // 8d0580f9
    	PRFM	(R8), $25                       // 190180f9
    	PRFM	8(R9), $30                      // 3e0580f9
    	NOOP                                    // 1f2003d5
    	HINT $0                                 // 1f2003d5
    	DMB	$1
    	SVC
    
    // encryption
    	SHA256H	V9.S4, V3, V2                   // 6240095e
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 08 03:28:17 GMT 2023
    - 94.9K bytes
    - Viewed (0)
  5. src/cmd/api/main_test.go

    		// the full set of names (below), record only that there were
    		// unexported methods. (If the interface shrinks, we will notice
    		// because a method signature emitted during the last loop
    		// will disappear.)
    		w.emitf("unexported methods")
    	}
    
    	pop()
    
    	if !complete {
    		return
    	}
    
    	if len(methodNames) == 0 {
    		w.emitf("type %s interface {}", name)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top