- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 377 for parseList (0.12 sec)
-
test/ken/rob2.go
} func Expect(c int) { if token != c { print("parse error: expected ", c, "\n") panic("parse") } NextToken() } // Parse a non-parenthesized list up to a closing paren or EOF func ParseList() *Slist { var slist, retval *Slist slist = new(Slist) slist.list.car = nil slist.list.cdr = nil slist.isatom = false slist.isstring = false retval = slist for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 4.3K bytes - Viewed (0) -
pkg/test/framework/components/echo/deployment/builder.go
expected := sets.New[string]() for _, subset := range config.Subsets { expected.InsertAll(parseList(subset.Annotations[annotation.InjectTemplates.Name])...) } if b.templates == nil || b.templates[c.Name()] == nil { return expected.IsEmpty() } return b.templates[c.Name()].SupersetOf(expected) } func parseList(s string) []string { if len(strings.TrimSpace(s)) == 0 { return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 12K bytes - Viewed (0) -
src/go/parser/parser.go
typ = p.tryIdentOrType() if p.tok == token.ASSIGN { p.next() values = p.parseList(true) } } case token.VAR: if p.tok != token.ASSIGN { typ = p.parseType() } if p.tok == token.ASSIGN { p.next() values = p.parseList(true) } default: panic("unreachable") } comment := p.expectSemi() spec := &ast.ValueSpec{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
src/net/mail/message.go
return (&addrParser{s: address, dec: p.WordDecoder}).parseSingleAddress() } // ParseList parses the given string as a list of comma-separated addresses // of the form "Gogh Fir <******@****.***>" or "******@****.***". func (p *AddressParser) ParseList(list string) ([]*Address, error) { return (&addrParser{s: list, dec: p.WordDecoder}).parseAddressList() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:31:03 UTC 2024 - 23.5K bytes - Viewed (0) -
src/net/mail/message_test.go
continue } if !reflect.DeepEqual([]*Address{addr}, test.exp) { t.Errorf("Parse (single) of %q: got %+v, want %+v", test.addrsStr, addr, test.exp) } } addrs, err := ap.ParseList(test.addrsStr) if err != nil { t.Errorf("Failed parsing (list) %q: %v", test.addrsStr, err) continue } if !reflect.DeepEqual(addrs, test.exp) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:31:03 UTC 2024 - 30.4K bytes - Viewed (0) -
api/go1.5.txt
pkg net/http/fcgi, var ErrRequestAborted error pkg net/http/pprof, func Trace(http.ResponseWriter, *http.Request) pkg net/mail, method (*AddressParser) Parse(string) (*Address, error) pkg net/mail, method (*AddressParser) ParseList(string) ([]*Address, error) pkg net/mail, type AddressParser struct pkg net/mail, type AddressParser struct, WordDecoder *mime.WordDecoder pkg net/smtp, method (*Client) TLSConnectionState() (tls.ConnectionState, bool)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 30 21:14:09 UTC 2015 - 46.6K bytes - Viewed (0) -
src/strconv/atoi_test.go
testErr := test.errStub("ParseInt", test.arg) _, err := ParseInt("0", 0, test.arg) if !equalError(testErr, err) { t.Errorf("ParseInt(\"0\", 0, %v) = 0, %v want 0, %v", test.arg, err, testErr) } } } func TestParseUintBitSize(t *testing.T) { for i := range parseBitSizeTests { test := &parseBitSizeTests[i] testErr := test.errStub("ParseUint", test.arg)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 21 05:09:21 UTC 2023 - 17.1K bytes - Viewed (0) -
src/internal/fuzz/encoding.go
} } // parseUint returns an unsigned integer of value val and type typ. func parseUint(val, typ string) (any, error) { switch typ { case "uint": i, err := strconv.ParseUint(val, 0, 64) return uint(i), err case "uint8", "byte": i, err := strconv.ParseUint(val, 0, 8) return uint8(i), err case "uint16": i, err := strconv.ParseUint(val, 0, 16) return uint16(i), err case "uint32":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 16:39:12 UTC 2022 - 11K bytes - Viewed (0) -
src/strconv/strconv_test.go
})) t.Run("ParseBool", checkNoAllocs(func() { Sink.Bool, Sink.Error = ParseBool(string(bytes.Bool)) })) t.Run("ParseInt", checkNoAllocs(func() { Sink.Int64, Sink.Error = ParseInt(string(bytes.Number), 10, 64) })) t.Run("ParseUint", checkNoAllocs(func() { Sink.Uint64, Sink.Error = ParseUint(string(bytes.Number), 10, 64) })) t.Run("ParseFloat", checkNoAllocs(func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 20:29:22 UTC 2022 - 4.7K bytes - Viewed (0) -
src/strconv/doc.go
// s := strconv.Itoa(-42) // // These assume decimal and the Go int type. // // [ParseBool], [ParseFloat], [ParseInt], and [ParseUint] convert strings to values: // // b, err := strconv.ParseBool("true") // f, err := strconv.ParseFloat("3.1415", 64) // i, err := strconv.ParseInt("-42", 10, 64) // u, err := strconv.ParseUint("42", 10, 64) // // The parse functions return the widest type (float64, int64, and uint64),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 1.9K bytes - Viewed (0)