Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 53 for runnerFor (0.22 sec)

  1. src/encoding/csv/reader.go

    )
    
    var errInvalidDelim = errors.New("csv: invalid field or comment delimiter")
    
    func validDelim(r rune) bool {
    	return r != 0 && r != '"' && r != '\r' && r != '\n' && utf8.ValidRune(r) && r != utf8.RuneError
    }
    
    // A Reader reads records from a CSV-encoded file.
    //
    // As returned by [NewReader], a Reader expects input conforming to RFC 4180.
    // The exported fields can be changed to customize the details before the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. src/encoding/csv/reader_test.go

    }, {
    	Name:   "BadComma4",
    	Comma:  utf8.RuneError,
    	Errors: []error{errInvalidDelim},
    }, {
    	Name:    "BadComment1",
    	Comment: '\n',
    	Errors:  []error{errInvalidDelim},
    }, {
    	Name:    "BadComment2",
    	Comment: '\r',
    	Errors:  []error{errInvalidDelim},
    }, {
    	Name:    "BadComment3",
    	Comment: utf8.RuneError,
    	Errors:  []error{errInvalidDelim},
    }, {
    	Name:    "BadCommaComment",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 14 04:25:13 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  3. src/fmt/format.go

    	r := rune(c)
    	if c > utf8.MaxRune {
    		r = utf8.RuneError
    	}
    	buf := f.intbuf[:0]
    	f.pad(utf8.AppendRune(buf, r))
    }
    
    // fmtQc formats an integer as a single-quoted, escaped Go character constant.
    // If the character is not valid Unicode, it will print '\ufffd'.
    func (f *fmt) fmtQc(c uint64) {
    	r := rune(c)
    	if c > utf8.MaxRune {
    		r = utf8.RuneError
    	}
    	buf := f.intbuf[:0]
    	if f.plus {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/source.go

    			s.error("I/O error: " + s.ioerr.Error())
    			s.ioerr = nil
    		}
    		s.ch = -1
    		s.chw = 0
    		return
    	}
    
    	s.ch, s.chw = utf8.DecodeRune(s.buf[s.r:s.e])
    	s.r += s.chw
    
    	if s.ch == utf8.RuneError && s.chw == 1 {
    		s.error("invalid UTF-8 encoding")
    		goto redo
    	}
    
    	// BOM's are only allowed as the first character in a file
    	const BOM = 0xfeff
    	if s.ch == BOM {
    		if s.line > 0 || s.col > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 05 19:25:46 UTC 2020
    - 5.7K bytes
    - Viewed (0)
  5. src/regexp/syntax/prog.go

    		return "", i.Op == InstMatch
    	}
    
    	// Have prefix; gather characters.
    	var buf strings.Builder
    	for i.op() == InstRune && len(i.Rune) == 1 && Flags(i.Arg)&FoldCase == 0 && i.Rune[0] != utf8.RuneError {
    		buf.WriteRune(i.Rune[0])
    		i = p.skipNop(i.Out)
    	}
    	return buf.String(), i.Op == InstMatch
    }
    
    // StartCond returns the leading empty-width conditions that must
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. src/log/slog/json_handler.go

    				str(`u00`)
    				char(hex[b>>4])
    				char(hex[b&0xF])
    			}
    			i++
    			start = i
    			continue
    		}
    		c, size := utf8.DecodeRuneInString(s[i:])
    		if c == utf8.RuneError && size == 1 {
    			if start < i {
    				str(s[start:i])
    			}
    			str(`\ufffd`)
    			i += size
    			start = i
    			continue
    		}
    		// U+2028 is LINE SEPARATOR.
    		// U+2029 is PARAGRAPH SEPARATOR.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:18:11 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  7. src/encoding/xml/xml.go

    func isName(s []byte) bool {
    	if len(s) == 0 {
    		return false
    	}
    	c, n := utf8.DecodeRune(s)
    	if c == utf8.RuneError && n == 1 {
    		return false
    	}
    	if !unicode.Is(first, c) {
    		return false
    	}
    	for n < len(s) {
    		s = s[n:]
    		c, n = utf8.DecodeRune(s)
    		if c == utf8.RuneError && n == 1 {
    			return false
    		}
    		if !unicode.Is(first, c) && !unicode.Is(second, c) {
    			return false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  8. src/path/filepath/match.go

    	}
    	if chunk[0] == '\\' && runtime.GOOS != "windows" {
    		chunk = chunk[1:]
    		if len(chunk) == 0 {
    			err = ErrBadPattern
    			return
    		}
    	}
    	r, n := utf8.DecodeRuneInString(chunk)
    	if r == utf8.RuneError && n == 1 {
    		err = ErrBadPattern
    	}
    	nchunk = chunk[n:]
    	if len(nchunk) == 0 {
    		err = ErrBadPattern
    	}
    	return
    }
    
    // Glob returns the names of all files matching pattern or nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modfetch/codehost/git.go

    		if err != nil {
    			r.refsErr = err
    			return
    		}
    		out, gitErr := Run(ctx, r.dir, "git", "ls-remote", "-q", r.remote)
    		release()
    
    		if gitErr != nil {
    			if rerr, ok := gitErr.(*RunError); ok {
    				if bytes.Contains(rerr.Stderr, []byte("fatal: could not read Username")) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 22:10:38 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  10. src/text/scanner/scanner_test.go

    	}
    }
    
    func TestError(t *testing.T) {
    	testError(t, "\x00", "<input>:1:1", "invalid character NUL", 0)
    	testError(t, "\x80", "<input>:1:1", "invalid UTF-8 encoding", utf8.RuneError)
    	testError(t, "\xff", "<input>:1:1", "invalid UTF-8 encoding", utf8.RuneError)
    
    	testError(t, "a\x00", "<input>:1:2", "invalid character NUL", Ident)
    	testError(t, "ab\x80", "<input>:1:3", "invalid UTF-8 encoding", Ident)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
Back to top