Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for scanInts (0.45 sec)

  1. src/text/scanner/scanner.go

    // Predefined mode bits to control recognition of tokens. For instance,
    // to configure a [Scanner] such that it only recognizes (Go) identifiers,
    // integers, and skips comments, set the Scanner's Mode field to:
    //
    //	ScanIdents | ScanInts | SkipComments
    //
    // With the exceptions of comments, which are skipped if SkipComments is
    // set, unrecognized tokens are not ignored. Instead, the scanner simply
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. src/go/internal/gccgoimporter/parser.go

    }
    
    func (p *parser) initScanner(filename string, src io.Reader) {
    	p.scanner.Init(src)
    	p.scanner.Error = func(_ *scanner.Scanner, msg string) { p.error(msg) }
    	p.scanner.Mode = scanner.ScanIdents | scanner.ScanInts | scanner.ScanFloats | scanner.ScanStrings
    	p.scanner.Whitespace = 1<<'\t' | 1<<' '
    	p.scanner.Filename = filename // for good error messages
    	p.next()
    }
    
    type importError struct {
    	pos scanner.Position
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  3. src/fmt/scan.go

    	case *complex128:
    		*v = s.scanComplex(verb, 128)
    	case *int:
    		*v = int(s.scanInt(verb, intBits))
    	case *int8:
    		*v = int8(s.scanInt(verb, 8))
    	case *int16:
    		*v = int16(s.scanInt(verb, 16))
    	case *int32:
    		*v = int32(s.scanInt(verb, 32))
    	case *int64:
    		*v = s.scanInt(verb, 64)
    	case *uint:
    		*v = uint(s.scanUint(verb, intBits))
    	case *uint8:
    		*v = uint8(s.scanUint(verb, 8))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  4. src/database/sql/convert_test.go

    		{s: "256", d: &scanuint8, wanterr: "converting driver.Value type string (\"256\") to a uint8: value out of range"},
    		{s: "256", d: &scanuint16, wantuint: 256},
    		{s: "-1", d: &scanint, wantint: -1},
    		{s: "foo", d: &scanint, wanterr: "converting driver.Value type string (\"foo\") to a int: invalid syntax"},
    
    		// int64 to smaller integers
    		{s: int64(5), d: &scanuint8, wantuint: 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Position.Offset", Field, 0},
    		{"RawString", Const, 0},
    		{"ScanChars", Const, 0},
    		{"ScanComments", Const, 0},
    		{"ScanFloats", Const, 0},
    		{"ScanIdents", Const, 0},
    		{"ScanInts", Const, 0},
    		{"ScanRawStrings", Const, 0},
    		{"ScanStrings", Const, 0},
    		{"Scanner", Type, 0},
    		{"Scanner.Error", Field, 0},
    		{"Scanner.ErrorCount", Field, 0},
    		{"Scanner.IsIdentRune", Field, 4},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top