Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for runnerFor (0.12 sec)

  1. src/unicode/utf8/utf8_test.go

    		panic("utf8.MaxRune is wrong")
    	}
    	if RuneError != unicode.ReplacementChar {
    		panic("utf8.RuneError is wrong")
    	}
    }
    
    // Validate the constants redefined from unicode.
    func TestConstants(t *testing.T) {
    	if MaxRune != unicode.MaxRune {
    		t.Errorf("utf8.MaxRune is wrong: %x should be %x", MaxRune, unicode.MaxRune)
    	}
    	if RuneError != unicode.ReplacementChar {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 06:17:15 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  2. src/unicode/utf8/utf8.go

    	if n < sz {
    		return RuneError, 1
    	}
    	b1 := p[1]
    	if b1 < accept.lo || accept.hi < b1 {
    		return RuneError, 1
    	}
    	if sz <= 2 { // <= instead of == to help the compiler eliminate some bounds checks
    		return rune(p0&mask2)<<6 | rune(b1&maskx), 2
    	}
    	b2 := p[2]
    	if b2 < locb || hicb < b2 {
    		return RuneError, 1
    	}
    	if sz <= 3 {
    		return rune(p0&mask3)<<12 | rune(b1&maskx)<<6 | rune(b2&maskx), 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/idna/idna10.0.0.go

    func (e labelError) code() string { return e.code_ }
    func (e labelError) Error() string {
    	return fmt.Sprintf("idna: invalid label %q", e.label)
    }
    
    type runeError rune
    
    func (e runeError) code() string { return "P1" }
    func (e runeError) Error() string {
    	return fmt.Sprintf("idna: disallowed rune %U", e)
    }
    
    // process implements the algorithm described in section 4 of UTS #46,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  4. src/strings/strings.go

    // r, or -1 if rune is not present in s.
    // If r is utf8.RuneError, it returns the first instance of any
    // invalid UTF-8 byte sequence.
    func IndexRune(s string, r rune) int {
    	switch {
    	case 0 <= r && r < utf8.RuneSelf:
    		return IndexByte(s, byte(r))
    	case r == utf8.RuneError:
    		for i, r := range s {
    			if r == utf8.RuneError {
    				return i
    			}
    		}
    		return -1
    	case !utf8.ValidRune(r):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modfetch/codehost/codehost.go

    		os.RemoveAll(dir)
    		return "", "", err
    	}
    	return dir, lockfile, nil
    }
    
    type RunError struct {
    	Cmd      string
    	Err      error
    	Stderr   []byte
    	HelpText string
    }
    
    func (e *RunError) Error() string {
    	text := e.Cmd + ": " + e.Err.Error()
    	stderr := bytes.TrimRight(e.Stderr, "\n")
    	if len(stderr) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/net/idna/idna9.0.0.go

    func (e labelError) code() string { return e.code_ }
    func (e labelError) Error() string {
    	return fmt.Sprintf("idna: invalid label %q", e.label)
    }
    
    type runeError rune
    
    func (e runeError) code() string { return "P1" }
    func (e runeError) Error() string {
    	return fmt.Sprintf("idna: disallowed rune %U", e)
    }
    
    // process implements the algorithm described in section 4 of UTS #46,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  7. src/strconv/quote.go

    	}
    	buf = append(buf, quote)
    	for width := 0; len(s) > 0; s = s[width:] {
    		r := rune(s[0])
    		width = 1
    		if r >= utf8.RuneSelf {
    			r, width = utf8.DecodeRuneInString(s)
    		}
    		if width == 1 && r == utf8.RuneError {
    			buf = append(buf, `\x`...)
    			buf = append(buf, lowerhex[s[0]>>4])
    			buf = append(buf, lowerhex[s[0]&0xF])
    			continue
    		}
    		buf = appendEscapedRune(buf, r, quote, ASCIIonly, graphicOnly)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/term/terminal.go

    )
    
    // bytesToKey tries to parse a key sequence from b. If successful, it returns
    // the key and the remainder of the input. Otherwise it returns utf8.RuneError.
    func bytesToKey(b []byte, pasteActive bool) (rune, []byte) {
    	if len(b) == 0 {
    		return utf8.RuneError, nil
    	}
    
    	if !pasteActive {
    		switch b[0] {
    		case 1: // ^A
    			return keyHome, b[1:]
    		case 2: // ^B
    			return keyLeft, b[1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 22.5K bytes
    - Viewed (0)
  9. src/net/mail/message.go

    Loop:
    	for {
    		r, size := utf8.DecodeRuneInString(p.s[i:])
    
    		switch {
    		case size == 0:
    			return "", errors.New("mail: unclosed quoted-string")
    
    		case size == 1 && r == utf8.RuneError:
    			return "", fmt.Errorf("mail: invalid utf-8 in quoted-string: %q", p.s)
    
    		case escaped:
    			//  quoted-pair = ("\" (VCHAR / WSP))
    
    			if !isVchar(r) && !isWSP(r) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. 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)
Back to top