Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for runExe (0.19 sec)

  1. 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)
  2. doc/next/6-stdlib/99-minor/unicode/utf16/44940.md

    The [RuneLen] function returns the number of 16-bit words in
    the UTF-16 encoding of the rune. It returns -1 if the rune
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 20:57:18 UTC 2024
    - 162 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    				switch u.Kind() {
    				case types.Byte, types.Rune, types.UntypedRune:
    					continue
    				}
    				V0 = vt
    				break
    			}
    		}
    
    		if V0 == nil {
    			// No source types are non-byte or rune integer types.
    			return
    		}
    
    		convertibleToRune := true // if true, we can suggest a fix
    		for _, t := range vtypes {
    			if !types.ConvertibleTo(t, types.Typ[types.Rune]) {
    				convertibleToRune = false
    				break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/strings/strings.go

    	// the closure once per rune.
    	prev := ' '
    	return Map(
    		func(r rune) rune {
    			if isSeparator(prev) {
    				prev = r
    				return unicode.ToTitle(r)
    			}
    			prev = r
    			return r
    		},
    		s)
    }
    
    // TrimLeftFunc returns a slice of the string s with all leading
    // Unicode code points c satisfying f(c) removed.
    func TrimLeftFunc(s string, f func(rune) bool) string {
    	i := indexFunc(s, f, false)
    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/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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  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