- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 505 for runExe (0.42 sec)
-
test/initialize.go
func f12(b []byte) [2][]byte { return [2][]byte{b, b} } var a12 = f12([]byte("hello")) var a13 = f12([]byte{1, 2, 3}) var a14 = f12(make([]byte, 1)) func f15(b []rune) [2][]rune { return [2][]rune{b, b} } var a15 = f15([]rune("hello")) var a16 = f15([]rune{1, 2, 3}) type Same struct { a, b interface{} } var same = []Same{ {a1, b1}, {a2, b2}, {a3, b3}, {a4, b4}, {a5, b5}, {a6, b6},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 04:04:52 UTC 2022 - 2.2K bytes - Viewed (0) -
src/cmd/go/internal/work/exec_test.go
rBuffer := make([]rune, nRunes) buf := bytes.NewBuffer([]byte(string(rBuffer))) seed := time.Now().UnixNano() t.Logf("rand seed: %v", seed) rng := rand.New(rand.NewSource(seed)) for i := 0; i < 50; i++ { // Generate a random string of runes. buf.Reset() for buf.Len() < sys.ExecArgLengthLimit+1 { var r rune for { r = rune(rng.Intn(utf8.MaxRune + 1)) if utf8.ValidRune(r) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 02 13:15:42 UTC 2021 - 1.8K bytes - Viewed (0) -
src/vendor/golang.org/x/text/unicode/bidi/prop.go
return c } // IsBracket reports whether the rune is a bracket. func (p Properties) IsBracket() bool { return p.entry&0xF0 != 0 } // IsOpeningBracket reports whether the rune is an opening bracket. // IsBracket must return true. func (p Properties) IsOpeningBracket() bool { return p.entry&openMask != 0 } // TODO: find a better API and expose. func (p Properties) reverseBracket(r rune) rune { return xorMasks[p.entry>>xorMaskShift] ^ r }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 20:28:54 UTC 2019 - 5.7K bytes - Viewed (0) -
test/utf.go
package main import "unicode/utf8" func main() { var chars [6]rune chars[0] = 'a' chars[1] = 'b' chars[2] = 'c' chars[3] = '\u65e5' chars[4] = '\u672c' chars[5] = '\u8a9e' s := "" for i := 0; i < 6; i++ { s += string(chars[i]) } var l = len(s) for w, i, j := 0, 0, 0; i < l; i += w { var r rune r, w = utf8.DecodeRuneInString(s[i:len(s)]) if w == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 00:48:19 UTC 2012 - 1.2K bytes - Viewed (0) -
test/alias3.dir/a.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a import "go/build" type ( Float64 = float64 Rune = rune ) type ( Int int IntAlias = Int IntAlias2 = IntAlias S struct { Int IntAlias IntAlias2 } ) type ( Context = build.Context ) type (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 20 05:55:53 UTC 2017 - 540 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/term/terminal.go
} } return utf8.RuneError, b } // queue appends data to the end of t.outBuf func (t *Terminal) queue(data []rune) { t.outBuf = append(t.outBuf, []byte(string(data))...) } var space = []rune{' '} func isPrintable(key rune) bool { isInSurrogateArea := key >= 0xd800 && key <= 0xdbff return key >= 32 && !isInSurrogateArea }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 22 17:16:14 UTC 2022 - 22.5K bytes - Viewed (0) -
src/internal/fuzz/encoding.go
} else { fmt.Fprintf(b, "%T(%v)\n", t, t) } case string: fmt.Fprintf(b, "string(%q)\n", t) case rune: // int32 // Although rune and int32 are represented by the same type, only a subset // of valid int32 values can be expressed as rune literals. Notably, // negative numbers, surrogate halves, and values above unicode.MaxRune // have no quoted representation. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 16:39:12 UTC 2022 - 11K bytes - Viewed (0) -
src/internal/types/testdata/spec/conversions.go
func _[T ~string](x []rune) T { return T(x) } func _[X ~[]byte, T ~string](x X) T { return T(x) } func _[X ~[]rune, T ~string](x X) T { return T(x) } func _[X Integer | ~[]byte | ~[]rune, T ~string](x X) T { return T(x) } func _[X Integer | ~[]byte | ~[]rune, T ~*string](x X) T {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 7.4K bytes - Viewed (0) -
src/strings/example_test.go
func ExampleContainsFunc() { f := func(r rune) bool { return r == 'a' || r == 'e' || r == 'i' || r == 'o' || r == 'u' } fmt.Println(strings.ContainsFunc("hello", f)) fmt.Println(strings.ContainsFunc("rhythms", f)) // Output: // true // false } func ExampleCount() { fmt.Println(strings.Count("cheese", "e")) fmt.Println(strings.Count("five", "")) // before & after each rune // Output: // 3 // 5 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:05:38 UTC 2023 - 10.7K bytes - Viewed (0) -
test/alias.go
// (uint8 vs byte, int32 vs. rune). // Does not compile. package main import ( "fmt" "unicode/utf8" ) func f(byte) {} func g(uint8) {} func main() { var x float64 f(x) // ERROR "byte" g(x) // ERROR "uint8" // Test across imports. var ff fmt.Formatter var fs fmt.State ff.Format(fs, x) // ERROR "rune" utf8.RuneStart(x) // ERROR "byte"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 588 bytes - Viewed (0)