Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for runPlan (0.12 sec)

  1. src/html/template/html.go

    	r, w := rune(0), 0
    	for i := 0; i < len(s); i += w {
    		// Cannot use 'for range s' because we need to preserve the width
    		// of the runes in the input. If we see a decoding error, the input
    		// width will not be utf8.Runelen(r) and we will overrun the buffer.
    		r, w = utf8.DecodeRuneInString(s[i:])
    		if int(r) < len(replacementTable) {
    			if repl := replacementTable[r]; len(repl) != 0 {
    				if written == 0 {
    					b.Grow(len(s))
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 19:42:28 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. src/unicode/utf8/utf8.go

    	}
    	r, size = DecodeRuneInString(s[start:end])
    	if start+size != end {
    		return RuneError, 1
    	}
    	return r, size
    }
    
    // RuneLen returns the number of bytes in the UTF-8 encoding of the rune.
    // It returns -1 if the rune is not a valid value to encode in UTF-8.
    func RuneLen(r rune) int {
    	switch {
    	case r < 0:
    		return -1
    	case r <= rune1Max:
    		return 1
    	case r <= rune2Max:
    		return 2
    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. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go

    	buf := bytes.NewBuffer(nil)
    	for _, r := range m {
    		// Ignore non-printable characters
    		if !unicode.IsPrint(r) {
    			continue
    		}
    		// Only append if we have room for it
    		if buf.Len()+utf8.RuneLen(r) > validation.FieldManagerMaxLength {
    			break
    		}
    		buf.WriteRune(r)
    	}
    	return buf.String()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:19:46 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  4. api/go1.23.txt

    pkg syscall (windows-386), const WSAENOPROTOOPT Errno #62254
    pkg syscall (windows-amd64), const WSAENOPROTOOPT = 10042 #62254
    pkg syscall (windows-amd64), const WSAENOPROTOOPT Errno #62254
    pkg unicode/utf16, func RuneLen(int32) int #44940
    pkg unique, func Make[$0 comparable]($0) Handle[$0] #62483
    pkg unique, method (Handle[$0]) Value() $0 #62483
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 20:48:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/inl_test.go

    			"byLiteral.Swap",
    			"(*dictDecoder).tryWriteCopy",
    		},
    		"encoding/base64": {
    			"assemble32",
    			"assemble64",
    		},
    		"unicode/utf8": {
    			"FullRune",
    			"FullRuneInString",
    			"RuneLen",
    			"AppendRune",
    			"ValidRune",
    		},
    		"unicode/utf16": {
    			"Decode",
    		},
    		"reflect": {
    			"Value.Bool",
    			"Value.Bytes",
    			"Value.CanAddr",
    			"Value.CanComplex",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. src/fmt/format.go

    	i := len(buf)
    
    	// For %#U we want to add a space and a quoted character at the end of the buffer.
    	if f.sharp && u <= utf8.MaxRune && strconv.IsPrint(rune(u)) {
    		i--
    		buf[i] = '\''
    		i -= utf8.RuneLen(rune(u))
    		utf8.EncodeRune(buf[i:], rune(u))
    		i--
    		buf[i] = '\''
    		i--
    		buf[i] = ' '
    	}
    	// Format the Unicode code point u as a hexadecimal number.
    	for u >= 16 {
    		i--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. src/encoding/csv/reader.go

    		}
    		break
    	}
    	if errRead == io.EOF {
    		return nil, errRead
    	}
    
    	// Parse each field in the record.
    	var err error
    	const quoteLen = len(`"`)
    	commaLen := utf8.RuneLen(r.Comma)
    	recLine := r.numLine // Starting line for record
    	r.recordBuffer = r.recordBuffer[:0]
    	r.fieldIndexes = r.fieldIndexes[:0]
    	r.fieldPositions = r.fieldPositions[:0]
    	pos := position{line: r.numLine, col: 1}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  8. src/bytes/buffer_test.go

    		buf.Reset()
    		for i := 0; i < n; i++ {
    			buf.WriteByte('x')
    		}
    	}
    }
    
    func BenchmarkWriteRune(b *testing.B) {
    	const n = 4 << 10
    	const r = '☺'
    	b.SetBytes(int64(n * utf8.RuneLen(r)))
    	buf := NewBuffer(make([]byte, n*utf8.UTFMax))
    	for i := 0; i < b.N; i++ {
    		buf.Reset()
    		for i := 0; i < n; i++ {
    			buf.WriteRune(r)
    		}
    	}
    }
    
    // From Issue 5154.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. src/go/internal/gccgoimporter/parser.go

    	}(p.scanner.Whitespace)
    	p.scanner.Whitespace = 0
    
    	got := 0
    	for got < want {
    		r := p.scanner.Next()
    		if r == scanner.EOF {
    			p.error("unexpected EOF")
    		}
    		got += utf8.RuneLen(r)
    	}
    }
    
    // Types = "types" maxp1 exportedp1 (offset length)* .
    func (p *parser) parseTypes(pkg *types.Package) {
    	maxp1 := p.parseInt()
    	exportedp1 := p.parseInt()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  10. src/strings/strings.go

    			continue
    		}
    
    		var width int
    		if c == utf8.RuneError {
    			c, width = utf8.DecodeRuneInString(s[i:])
    			if width != 1 && r == c {
    				continue
    			}
    		} else {
    			width = utf8.RuneLen(c)
    		}
    
    		b.Grow(len(s) + utf8.UTFMax)
    		b.WriteString(s[:i])
    		if r >= 0 {
    			b.WriteRune(r)
    		}
    
    		s = s[i+width:]
    		break
    	}
    
    	// Fast path for unchanged input
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top