Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 505 for runExe (0.16 sec)

  1. src/runtime/string.go

    	}
    	copy(b, s)
    	return b
    }
    
    func stringtoslicerune(buf *[tmpStringBufSize]rune, s string) []rune {
    	// two passes.
    	// unlike slicerunetostring, no race because strings are immutable.
    	n := 0
    	for range s {
    		n++
    	}
    
    	var a []rune
    	if buf != nil && n <= len(buf) {
    		*buf = [tmpStringBufSize]rune{}
    		a = buf[:n]
    	} else {
    		a = rawruneslice(n)
    	}
    
    	n = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/fmt/print.go

    	Flag(c int) bool
    }
    
    // Formatter is implemented by any value that has a Format method.
    // The implementation controls how [State] and rune are interpreted,
    // and may call [Sprint] or [Fprint](f) etc. to generate its output.
    type Formatter interface {
    	Format(f State, verb rune)
    }
    
    // Stringer is implemented by any value that has a String method,
    // which defines the “native” format for that value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/idna/trie12.0.0.go

    // license that can be found in the LICENSE file.
    
    //go:build !go1.16
    
    package idna
    
    // appendMapping appends the mapping for the respective rune. isMapped must be
    // true. A mapping is a categorization of a rune as defined in UTS #46.
    func (c info) appendMapping(b []byte, s string) []byte {
    	index := int(c >> indexShift)
    	if c&xorBit == 0 {
    		s := mappings[index:]
    		return append(b, s[1:s[0]+1]...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 852 bytes
    - Viewed (0)
  4. src/strconv/doc.go

    //
    //	q := strconv.Quote("Hello, 世界")
    //	q := strconv.QuoteToASCII("Hello, 世界")
    //
    // [QuoteRune] and [QuoteRuneToASCII] are similar but accept runes and
    // return quoted Go rune literals.
    //
    // [Unquote] and [UnquoteChar] unquote Go string and rune literals.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. src/go/types/object_test.go

    		{NewTypeName(nopos, pkg, "int32", Typ[Int32]), true},              // type name is declared in user-defined package (outside Universe)
    		{NewTypeName(nopos, nil, "rune", Typ[Rune]), true},                // type name refers to basic type rune which is an alias already
    		{t5, false}, // type name refers to type parameter and vice versa
    	} {
    		check(test.name, test.alias)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/doc.go

    // from integers to strings.
    //
    // # Analyzer stringintconv
    //
    // stringintconv: check for string(int) conversions
    //
    // This checker flags conversions of the form string(x) where x is an integer
    // (but not byte or rune) type. Such conversions are discouraged because they
    // return the UTF-8 representation of the Unicode code point x, and not a decimal
    // string representation of x as one might expect. Furthermore, if x denotes an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 982 bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/object_test.go

    		{NewTypeName(nopos, pkg, "int32", Typ[Int32]), true},              // type name is declared in user-defined package (outside Universe)
    		{NewTypeName(nopos, nil, "rune", Typ[Rune]), true},                // type name refers to basic type rune which is an alias already
    		{t5, false}, // type name refers to type parameter and vice versa
    	} {
    		check(test.name, test.alias)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. src/bytes/bytes_test.go

    	}
    
    	// 5. Drop
    	dropNotLatin := func(r rune) rune {
    		if unicode.Is(unicode.Latin, r) {
    			return r
    		}
    		return -1
    	}
    	m = Map(dropNotLatin, []byte("Hello, 세계"))
    	expect = "Hello"
    	if string(m) != expect {
    		t.Errorf("drop: expected %q got %q", expect, m)
    	}
    
    	// 6. Invalid rune
    	invalidRune := func(r rune) rune {
    		return utf8.MaxRune + 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  9. test/gcgort.go

    		mapPointerKeyT: func() {
    			a := make(map[*rune]rune)
    			for i := 0; i < length; i++ {
    				a[new(rune)] = rune(i)
    				runtime.Gosched()
    			}
    			for i := 0; i < mods; i++ {
    				for k, _ := range a {
    					a[k]++
    					runtime.Gosched()
    				}
    			}
    		},
    		chanT: func() {
    			a := make(chan rune)
    			for i := 0; i < mods; i++ {
    				go func() { a <- rune(i) }()
    				<-a
    				runtime.Gosched()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 08 21:15:48 UTC 2018
    - 34.5K bytes
    - Viewed (0)
  10. src/runtime/runtime_test.go

    			b.ReportMetric(float64(latencies[len(latencies)*99/100]), "p99-ns")
    		}
    		return func(b *testing.B) {
    			b.Run("idle", runOne)
    
    			b.Run("loaded", func(b *testing.B) {
    				stop := applyGCLoad(b)
    				runOne(b)
    				// Make sure to stop the timer before we wait! The load created above
    				// is very heavy-weight and not easy to stop, so we could end up
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top