- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for chars (0.12 sec)
-
src/fmt/fmt_test.go
if i >= 0 && i < len(s) { var pattern, chars string switch { case strings.HasPrefix(tt.out[i:], "PTR_b"): pattern = "PTR_b" chars = "01" case strings.HasPrefix(tt.out[i:], "PTR_o"): pattern = "PTR_o" chars = "01234567" case strings.HasPrefix(tt.out[i:], "PTR_d"): pattern = "PTR_d" chars = "0123456789" case strings.HasPrefix(tt.out[i:], "PTR_x"):
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/sys/windows/syscall_windows.go
// in the form of "{XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}". func (guid GUID) String() string { var str [100]uint16 chars := stringFromGUID2(&guid, &str[0], int32(len(str))) if chars <= 1 { return "" } return string(utf16.Decode(str[:chars-1])) } // KnownFolderPath returns a well-known folder path for the current user, specified by one of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 22:18:42 UTC 2024 - 82.8K bytes - Viewed (0) -
src/strings/strings_test.go
} } return -1 } func TestIndexRandom(t *testing.T) { const chars = "abcdefghijklmnopqrstuvwxyz0123456789" for times := 0; times < 10; times++ { for strLen := 5 + rand.Intn(5); strLen < 140; strLen += 10 { // Arbitrary s1 := make([]byte, strLen) for i := range s1 { s1[i] = chars[rand.Intn(len(chars))] } s := string(s1) for i := 0; i < 50; i++ { begin := rand.Intn(len(s) + 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0) -
src/go/printer/nodes.go
break } } } c.size += len(p) return len(p), nil } // nodeSize determines the size of n in chars after formatting. // The result is <= maxSize if the node fits on one line with at // most maxSize chars and the formatted output doesn't contain // any control chars. Otherwise, the result is > maxSize. func (p *printer) nodeSize(n ast.Node, maxSize int) (size int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/setupapi_windows.go
ERROR_NO_SUCH_INTERFACE_DEVICE Errno = ERROR_NO_SUCH_DEVICE_INTERFACE ) const ( MAX_DEVICE_ID_LEN = 200 MAX_DEVNODE_ID_LEN = MAX_DEVICE_ID_LEN MAX_GUID_STRING_LEN = 39 // 38 chars + terminator null MAX_CLASS_NAME_LEN = 32 MAX_PROFILE_LEN = 80 MAX_CONFIG_VALUE = 9999 MAX_INSTANCE_VALUE = 9999 CONFIGMG_VERSION = 0x0400 ) // Maximum string length constants const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 00:11:50 UTC 2022 - 67.2K bytes - Viewed (0) -
src/go/types/expr.go
// allows for separators between all digits. const limit = 10000 if len(e.Value) > limit { check.errorf(e, InvalidConstVal, "excessively long constant: %s... (%d chars)", e.Value[:10], len(e.Value)) goto Error } } x.setConst(e.Kind, e.Value) if x.mode == invalid { // The parser already establishes syntactic correctness.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/go/printer/testdata/parser.go
func (p *parser) consumeComment() (comment *ast.Comment, endline int) { // /*-style comments may end on a different line than where they start. // Scan the comment for '\n' chars and adjust endline accordingly. endline = p.file.Line(p.pos) if p.lit[1] == '*' { // don't use range here - no need to decode Unicode code points for i := 0; i < len(p.lit); i++ { if p.lit[i] == '\n' {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0) -
src/encoding/xml/marshal_test.go
desc: "end element with no name", toks: []Token{ EndElement{Name{"space", ""}}, }, err: "xml: end tag with no name", }, { desc: "char data", toks: []Token{ CharData("foo"), }, want: `foo`, }, { desc: "char data with escaped chars", toks: []Token{ CharData(" \t\n"), }, want: " 	\n", }, { desc: "comment", toks: []Token{ Comment("foo"), },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 66K bytes - Viewed (0) -
src/bytes/bytes_test.go
} }) if allocs != 0 { t.Errorf("expected no allocations, got %f", allocs) } } func runIndexAnyTests(t *testing.T, f func(s []byte, chars string) int, funcName string, testCases []BinOpTest) { for _, test := range testCases { a := []byte(test.a) actual := f(a, test.b) if actual != test.i {
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/cmd/compile/internal/types2/expr.go
// allows for separators between all digits. const limit = 10000 if len(e.Value) > limit { check.errorf(e, InvalidConstVal, "excessively long constant: %s... (%d chars)", e.Value[:10], len(e.Value)) goto Error } } x.setConst(e.Kind, e.Value) if x.mode == invalid { // The parser already establishes syntactic correctness.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0)