- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 3,835 for runes (0.05 sec)
-
src/bytes/bytes_test.go
t.Errorf("%s(%q) = %q; want %q", funcName, tc.in, actual, tc.out) } } } func tenRunes(r rune) string { runes := make([]rune, 10) for i := range runes { runes[i] = r } return string(runes) } // User-defined self-inverse mapping function func rot13(r rune) rune { const step = 13 if r >= 'a' && r <= 'z' { return ((r - 'a' + step) % 26) + 'a' }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 56.5K bytes - Viewed (0) -
src/fmt/fmt_test.go
{"%#+q", "abc\xffdef", `"abc\xffdef"`}, // Runes that are not printable. {"%q", "\U0010ffff", `"\U0010ffff"`}, {"%+q", "\U0010ffff", `"\U0010ffff"`}, {"%#q", "\U0010ffff", "``"}, {"%#+q", "\U0010ffff", "``"}, // Runes that are not valid. {"%q", string(rune(0x110000)), `"�"`}, {"%+q", string(rune(0x110000)), `"\ufffd"`}, {"%#q", string(rune(0x110000)), "`�`"}, {"%#+q", string(rune(0x110000)), "`�`"}, // characters
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/unicode/norm/iter.go
package norm import ( "fmt" "unicode/utf8" ) // MaxSegmentSize is the maximum size of a byte buffer needed to consider any // sequence of starter and non-starter runes for the purpose of normalization. const MaxSegmentSize = maxByteBufferSize // An Iter iterates over a string or byte slice, while normalizing it // to a given Form. type Iter struct { rb reorderBuffer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/internal/archive/archive_test.go
got := exactly16Bytes(str) if len(got) != 16 { t.Errorf("exactly16Bytes(%q) is %q, length %d", str, got, len(got)) } // Make sure it is full runes. for _, c := range got { if c == utf8.RuneError { t.Errorf("exactly16Bytes(%q) is %q, has partial rune", str, got) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 02 19:27:33 UTC 2023 - 7.9K bytes - Viewed (0) -
src/reflect/all_test.go
{V([]byte("bytes2")), V(MyString("bytes2"))}, {V([]byte("bytes3")), V([]byte("bytes3"))}, {V(MyString("runes♝")), V([]rune("runes♝"))}, {V([]rune("runes♕")), V(MyString("runes♕"))}, {V([]rune("runes🙈🙉🙊")), V([]rune("runes🙈🙉🙊"))}, {V([]rune("runes🙈🙉🙊")), V(MyRunes("runes🙈🙉🙊"))}, {V(MyRunes("runes🙈🙉🙊")), V([]rune("runes🙈🙉🙊"))}, {V(int('a')), V(MyString("a"))}, {V(int8('a')), V(MyString("a"))},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
src/strings/builder_test.go
t.Errorf("%s: panicked = %v; want %v", tt.name, got, tt.wantPanic) } } } func TestBuilderWriteInvalidRune(t *testing.T) { // Invalid runes, including negative ones, should be written as // utf8.RuneError. for _, r := range []rune{-1, utf8.MaxRune + 1} { var b Builder b.WriteRune(r) check(t, &b, "\uFFFD") } } var someBytes = []byte("some bytes sdljlk jsklj3lkjlk djlkjw")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 19:51:15 UTC 2024 - 8.1K bytes - Viewed (0) -
src/strconv/quote_test.go
{string(rune(14)), false}, {string(rune(15)), false}, {string(rune(16)), false}, {string(rune(17)), false}, {string(rune(18)), false}, {string(rune(19)), false}, {string(rune(20)), false}, {string(rune(21)), false}, {string(rune(22)), false}, {string(rune(23)), false}, {string(rune(24)), false}, {string(rune(25)), false}, {string(rune(26)), false}, {string(rune(27)), false}, {string(rune(28)), false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 31 20:37:15 UTC 2022 - 9.6K bytes - Viewed (0) -
src/regexp/backtrack.go
pc = inst.Arg goto CheckAndLoop } else { b.push(re, pc, pos, true) pc = inst.Out goto CheckAndLoop } case syntax.InstAltMatch: // One opcode consumes runes; the other leads to match. switch re.prog.Inst[inst.Out].Op { case syntax.InstRune, syntax.InstRune1, syntax.InstRuneAny, syntax.InstRuneAnyNotNL: // inst.Arg is the match. b.push(re, inst.Arg, pos, false)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 17:25:39 UTC 2023 - 8.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/common/schemas.go
return dyn } // We ignore XPreserveUnknownFields since we don't support validation rules on // data that we don't have schema information for. if isResourceRoot { // 'apiVersion', 'kind', 'metadata.name' and 'metadata.generateName' are always accessible to validator rules // at the root of resources, even if not specified in the schema.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 09 18:00:45 UTC 2023 - 10.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/cases/map.go
// A mapFunc takes a context set to the current rune and writes the mapped // version to the same context. It may advance the context to the next rune. It // returns whether a checkpoint is possible: whether the pDst bytes written to // dst so far won't need changing as we see more source bytes. type mapFunc func(*context) bool // A spanFunc takes a context set to the current rune and returns whether this
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 22.7K bytes - Viewed (0)