- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 67 for Colon (0.05 sec)
-
src/cmd/compile/internal/syntax/parser_test.go
{"//line\n", valid, filename, 2, 1}, // missing colon {"//line foo\n", valid, filename, 2, 1}, // missing colon {" //line foo:\n", valid, filename, 2, 1}, // not a line start {"// line foo:\n", valid, filename, 2, 1}, // space between // and line // invalid //line directives with one colon {"//line :\n", "invalid line number: ", filename, 1, 9},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 16:30:19 UTC 2024 - 12.2K bytes - Viewed (0) -
src/net/ipsock.go
case len(hostport): // There can't be a ':' behind the ']' now. return addrErr(hostport, missingPort) case i: // The expected result. default: // Either ']' isn't followed by a colon, or it is // followed by a colon that is not the last one. if hostport[end+1] == ':' { return addrErr(hostport, tooManyColons) } return addrErr(hostport, missingPort) } host = hostport[1:end]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 9.4K bytes - Viewed (0) -
src/go/ast/ast.go
return true } // "//[a-z0-9]+:[a-z0-9]" // (The // has been removed.) colon := strings.Index(c, ":") if colon <= 0 || colon+1 >= len(c) { return false } for i := 0; i <= colon+1; i++ { if i == colon { continue } b := c[i] if !('a' <= b && b <= 'z' || '0' <= b && b <= '9') { return false } } return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 35.6K bytes - Viewed (0) -
src/encoding/pem/pem.go
continue } result[n] = b n++ } return result[0:n] } var pemStart = []byte("\n-----BEGIN ") var pemEnd = []byte("\n-----END ") var pemEndOfLine = []byte("-----") var colon = []byte(":") // Decode will find the next PEM formatted block (certificate, private key // etc) in the input. It returns that block and the remainder of the input. If
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.6K bytes - Viewed (0) -
src/cmd/asm/internal/asm/parse.go
} if len(items) > 0 { operands = append(operands, items) if colon >= 0 && len(operands) == colon+2 { // AX:DX becomes DX, AX. operands[colon], operands[colon+1] = operands[colon+1], operands[colon] colon = -1 } } else if len(operands) > 0 || tok == ',' || colon >= 0 { // Had a separator with nothing after. p.errorf("missing operand") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 14:34:57 UTC 2024 - 36.9K bytes - Viewed (0) -
src/net/url/url.go
func splitHostPort(hostPort string) (host, port string) { host = hostPort colon := strings.LastIndexByte(host, ':') if colon != -1 && validOptionalPort(host[colon:]) { host, port = host[:colon], host[colon+1:] } if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") { host = host[1 : len(host)-1] } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 36.1K bytes - Viewed (0) -
src/net/textproto/reader.go
} for { kv, err := r.readContinuedLineSlice(maxMemory, mustHaveFieldNameColon) if len(kv) == 0 { return m, err } // Key ends at first colon. k, v, ok := bytes.Cut(kv, colon) if !ok { return m, ProtocolError("malformed MIME header line: " + string(kv)) } key, ok := canonicalMIMEHeaderKey(k) if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 22.1K bytes - Viewed (0) -
src/os/user/lookup.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package user import "sync" const ( userFile = "/etc/passwd" groupFile = "/etc/group" ) var colon = []byte{':'} // Current returns the current user. // // The first call will cache the current user information. // Subsequent calls will return the cached value and will not reflect // changes to the current user.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 1.8K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/positions.go
case *RangeClause: m = n.X case *CaseClause: if l := lastStmt(n.Body); l != nil { m = l continue } return n.Colon case *CommClause: if l := lastStmt(n.Body); l != nil { m = l continue } return n.Colon default: return n.Pos() } } } func lastDecl(list []Decl) Decl { if l := len(list); l > 0 { return list[l-1] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0) -
src/net/textproto/reader_test.go
func TestReadMIMEHeaderMalformed(t *testing.T) { inputs := []string{ "No colon first line\r\nFoo: foo\r\n\r\n", " No colon first line with leading space\r\nFoo: foo\r\n\r\n", "\tNo colon first line with leading tab\r\nFoo: foo\r\n\r\n", " First: line with leading space\r\nFoo: foo\r\n\r\n", "\tFirst: line with leading tab\r\nFoo: foo\r\n\r\n", "Foo: foo\r\nNo colon second line\r\n\r\n", "Foo-\n\tBar: foo\r\n\r\n",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 05 18:31:56 UTC 2024 - 14.7K bytes - Viewed (0)