Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for runPlan (0.22 sec)

  1. cmd/kubeadm/app/cmd/upgrade/plan.go

    		Name:           name,
    		CurrentVersion: currentVersion,
    		NewVersion:     newVersion,
    		NodeName:       nodeName,
    	}
    }
    
    // runPlan takes care of outputting available versions to upgrade to for the user
    func runPlan(flagSet *pflag.FlagSet, flags *planFlags, args []string, printer output.Printer) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 03:03:29 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. src/mime/encodedword.go

    		io.WriteString(w, s)
    		w.Close()
    		return
    	}
    
    	var currentLen, last, runeLen int
    	for i := 0; i < len(s); i += runeLen {
    		// Multi-byte characters must not be split across encoded-words.
    		// See RFC 2047, section 5.3.
    		_, runeLen = utf8.DecodeRuneInString(s[i:])
    
    		if currentLen+runeLen <= maxBase64Len {
    			currentLen += runeLen
    		} else {
    			io.WriteString(w, s[last:i])
    			w.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. src/cmd/go/internal/clean/clean.go

    	cleanFuzzcache bool // clean -fuzzcache flag
    	cleanModcache  bool // clean -modcache flag
    	cleanTestcache bool // clean -testcache flag
    )
    
    func init() {
    	// break init cycle
    	CmdClean.Run = runClean
    
    	CmdClean.Flag.BoolVar(&cleanI, "i", false, "")
    	CmdClean.Flag.BoolVar(&cleanR, "r", false, "")
    	CmdClean.Flag.BoolVar(&cleanCache, "cache", false, "")
    	CmdClean.Flag.BoolVar(&cleanFuzzcache, "fuzzcache", false, "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/switch.go

    			}
    			return si < sj
    		})
    
    		// runLen returns the string length associated with a
    		// particular run of exprClauses.
    		runLen := func(run []exprClause) int64 { return int64(len(ir.StringVal(run[0].lo))) }
    
    		// Collapse runs of consecutive strings with the same length.
    		var runs [][]exprClause
    		start := 0
    		for i := 1; i < len(cc); i++ {
    			if runLen(cc[start:]) != runLen(cc[i:]) {
    				runs = append(runs, cc[start:i])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  5. src/unicode/utf8/utf8_test.go

    	{MaxRune, 4},
    	{0xD800, -1},
    	{0xDFFF, -1},
    	{MaxRune + 1, -1},
    	{-1, -1},
    }
    
    func TestRuneLen(t *testing.T) {
    	for _, tt := range runelentests {
    		if size := RuneLen(tt.r); size != tt.size {
    			t.Errorf("RuneLen(%#U) = %d, want %d", tt.r, size, tt.size)
    		}
    	}
    }
    
    type ValidTest struct {
    	in  string
    	out bool
    }
    
    var validTests = []ValidTest{
    	{"", true},
    	{"a", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 06:17:15 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top