Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,853 for runUse (0.12 sec)

  1. src/cmd/link/internal/benchmark/bench.go

    	m.curMark = nil
    }
    
    // shouldPProf returns true if we should be doing pprof runs.
    func (m *Metrics) shouldPProf() bool {
    	return m != nil && len(m.filebase) > 0
    }
    
    // makeBenchString makes a benchmark string consumable by Go's benchmarking tools.
    func makeBenchString(name string) string {
    	needCap := true
    	ret := []rune("Benchmark")
    	for _, r := range name {
    		if unicode.IsSpace(r) {
    			needCap = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. src/strings/strings_test.go

    	{"x \xc0\xc0 ", "x \xc0\xc0"},
    	{"x ☺\xc0\xc0 ", "x ☺\xc0\xc0"},
    	{"x ☺ ", "x ☺"},
    }
    
    func tenRunes(ch rune) string {
    	r := make([]rune, 10)
    	for i := range r {
    		r[i] = ch
    	}
    	return string(r)
    }
    
    // User-defined self-inverse mapping function
    func rot13(r rune) rune {
    	step := rune(13)
    	if r >= 'a' && r <= 'z' {
    		return ((r - 'a' + step) % 26) + 'a'
    	}
    	if r >= 'A' && r <= 'Z' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/transform/transform.go

    	return dstL.n, srcL.p, err
    }
    
    // Deprecated: Use runes.Remove instead.
    func RemoveFunc(f func(r rune) bool) Transformer {
    	return removeF(f)
    }
    
    type removeF func(r rune) bool
    
    func (removeF) Reset() {}
    
    // Transform implements the Transformer interface.
    func (t removeF) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
    	for r, sz := rune(0), 0; len(src) > 0; src = src[sz:] {
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  4. src/unicode/utf16/utf16_test.go

    	}
    }
    
    type decodeTest struct {
    	in  []uint16
    	out []rune
    }
    
    var decodeTests = []decodeTest{
    	{[]uint16{1, 2, 3, 4}, []rune{1, 2, 3, 4}},
    	{[]uint16{0xffff, 0xd800, 0xdc00, 0xd800, 0xdc01, 0xd808, 0xdf45, 0xdbff, 0xdfff},
    		[]rune{0xffff, 0x10000, 0x10001, 0x12345, 0x10ffff}},
    	{[]uint16{0xd800, 'a'}, []rune{0xfffd, 'a'}},
    	{[]uint16{0xdfff}, []rune{0xfffd}},
    }
    
    func TestAllocationsDecode(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. test/convert1.go

    package main
    
    type Tbyte []byte
    type Trune []rune
    type Tint64 []int64
    type Tstring string
    
    func main() {
    	s := "hello"
    	sb := []byte("hello")
    	sr := []rune("hello")
    	si := []int64{'h', 'e', 'l', 'l', 'o'}
    
    	ts := Tstring(s)
    	tsb := Tbyte(sb)
    	tsr := Trune(sr)
    	tsi := Tint64(si)
    
    	_ = string(s)
    	_ = []byte(s)
    	_ = []rune(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 3.4K bytes
    - Viewed (0)
  6. src/regexp/syntax/perl_groups.go

    	0x30, 0x39,
    }
    
    var code10 = []rune{ /* [:graph:] */
    	0x21, 0x7e,
    }
    
    var code11 = []rune{ /* [:lower:] */
    	0x61, 0x7a,
    }
    
    var code12 = []rune{ /* [:print:] */
    	0x20, 0x7e,
    }
    
    var code13 = []rune{ /* [:punct:] */
    	0x21, 0x2f,
    	0x3a, 0x40,
    	0x5b, 0x60,
    	0x7b, 0x7e,
    }
    
    var code14 = []rune{ /* [:space:] */
    	0x9, 0xd,
    	0x20, 0x20,
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. tools/docker-builder/main.go

    	"docker.io/istio",
    	"istio",
    	"gcr.io/istio-release",
    	"gcr.io/istio-testing",
    )
    
    var rootCmd = &cobra.Command{
    	SilenceUsage: true,
    	Short:        "Builds Istio docker images",
    	RunE: func(cmd *cobra.Command, _ []string) error {
    		t0 := time.Now()
    		defer func() {
    			log.WithLabels("runtime", time.Since(t0)).Infof("build complete")
    		}()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 26 13:23:41 UTC 2023
    - 10K bytes
    - Viewed (0)
  8. src/unicode/graphic_test.go

    func TestIsControlLatin1(t *testing.T) {
    	for i := rune(0); i <= MaxLatin1; i++ {
    		got := IsControl(i)
    		want := false
    		switch {
    		case 0x00 <= i && i <= 0x1F:
    			want = true
    		case 0x7F <= i && i <= 0x9F:
    			want = true
    		}
    		if got != want {
    			t.Errorf("%U incorrect: got %t; want %t", i, got, want)
    		}
    	}
    }
    
    func TestIsLetterLatin1(t *testing.T) {
    	for i := rune(0); i <= MaxLatin1; i++ {
    		got := IsLetter(i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.6K bytes
    - Viewed (0)
  9. src/unicode/graphic.go

    	}
    	return isExcludingLatin(Letter, r)
    }
    
    // IsMark reports whether the rune is a mark character (category [M]).
    func IsMark(r rune) bool {
    	// There are no mark characters in Latin-1.
    	return isExcludingLatin(Mark, r)
    }
    
    // IsNumber reports whether the rune is a number (category [N]).
    func IsNumber(r rune) bool {
    	if uint32(r) <= MaxLatin1 {
    		return properties[uint8(r)]&pN != 0
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 20:02:46 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PerformanceTestSpec.java

        }
    
        public void setTestClassName(String testClassName) {
            this.testClassName = testClassName;
        }
    
        public Integer getRuns() {
            return runs;
        }
    
        public void setRuns(Integer runs) {
            this.runs = runs;
        }
    
        public Integer getWarmUpRuns() {
            return warmUpRuns;
        }
    
        public void setWarmUpRuns(Integer warmUpRuns) {
            this.warmUpRuns = warmUpRuns;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top