- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 618 for Trune (0.1 sec)
-
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) -
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) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/object_count_tracker.go
wait.PollUntil( pruneInterval, func() (bool, error) { // always prune at every pruneInterval return false, t.prune(pruneInterval) }, stopCh) klog.InfoS("StorageObjectCountTracker pruner is exiting") } func (t *objectCountTracker) prune(threshold time.Duration) error { oldestLastUpdatedAtAllowed := t.clock.Now().Add(-threshold) // lock for writing
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 16 09:12:00 UTC 2022 - 5K 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) -
cluster/addons/addon-manager/kube-addons.sh
KUBECTL_OPTS=${KUBECTL_OPTS:-} # KUBECTL_PRUNE_WHITELIST is a list of resources whitelisted by default. # This is currently the same with the default in: # https://github.com/kubernetes/kubectl/blob/master/pkg/cmd/apply/prune.go. # To override the default list with other values, set # KUBECTL_PRUNE_WHITELIST_OVERRIDE environment variable to space-separated # names of resources to whitelist. if [ -z "${KUBECTL_PRUNE_WHITELIST_OVERRIDE:-}" ]; then
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Oct 15 05:40:38 UTC 2023 - 10.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)