- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for parseStrings (0.42 sec)
-
maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptorBuilder.java
} extensionDescriptor.setExportedPackages(parseStrings(dom.getChild("exportedPackages"))); extensionDescriptor.setExportedArtifacts(parseStrings(dom.getChild("exportedArtifacts"))); return extensionDescriptor; } private List<String> parseStrings(XmlNode dom) { List<String> strings = null; if (dom != null) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Mar 25 10:50:01 UTC 2024 - 4.2K bytes - Viewed (0) -
internal/s3select/sql/parser_test.go
} for i, tc := range validCases { err := p.ParseString(tc, &id) if err != nil { t.Fatalf("%d: %v", i, err) } // repr.Println(id, repr.Indent(" "), repr.OmitEmpty(true)) } invalidCases := []string{ "+a", "-a", "1a", `"ab`, `abc"`, `aa""a`, `"a"a"`, } for i, tc := range invalidCases { err := p.ParseString(tc, &id) if err == nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.2K bytes - Viewed (0) -
src/archive/tar/reader.go
ustar := tr.blk.toUSTAR() hdr.Uname = p.parseString(ustar.userName()) hdr.Gname = p.parseString(ustar.groupName()) hdr.Devmajor = p.parseNumeric(ustar.devMajor()) hdr.Devminor = p.parseNumeric(ustar.devMinor()) var prefix string switch { case format.has(FormatUSTAR | FormatPAX): hdr.Format = format ustar := tr.blk.toUSTAR() prefix = p.parseString(ustar.prefix())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 01:59:14 UTC 2024 - 26.8K bytes - Viewed (0) -
internal/jwt/parser.go
return errors.New("accessKey: Expected string") } c.AccessKey, err = jsonparser.ParseString(value) return err } if string(key) == "aud" { if dataType != jsonparser.String { return errors.New("aud: Expected string") } c.Audience, err = jsonparser.ParseString(value) return err } case 'e': if string(key) == "exp" {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 09 07:53:08 UTC 2023 - 13.9K bytes - Viewed (0) -
src/archive/tar/strconv.go
} type parser struct { err error // Last error seen } type formatter struct { err error // Last error seen } // parseString parses bytes as a NUL-terminated C-style string. // If a NUL byte is not found then the whole slice is returned as a string. func (*parser) parseString(b []byte) string { if i := bytes.IndexByte(b, 0); i >= 0 { return string(b[:i]) } return string(b) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 14:28:42 UTC 2023 - 9K bytes - Viewed (0) -
internal/s3select/sql/jsonpath_test.go
{"s.publicationHistory[0].pages", []interface{}{256.0, 336.0, Missing{}}}, } for i, tc := range cases { t.Run(tc.str, func(t *testing.T) { jp := JSONPath{} err := p.ParseString(tc.str, &jp) // fmt.Println(jp) if err != nil { t.Fatalf("parse failed!: %d %v %s", i, err, tc) } // Read only the first json object from the file recs, err := getJSONStructs(b)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 2.8K bytes - Viewed (0) -
src/go/internal/gccgoimporter/parser.go
} func (p *parser) expectKeyword(keyword string) { lit := p.expect(scanner.Ident) if lit != keyword { p.errorf("expected keyword %s, got %q", keyword, lit) } } func (p *parser) parseString() string { str, err := strconv.Unquote(p.expect(scanner.String)) if err != nil { p.error(err) } return str } // unquotedString = { unquotedStringChar } .
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 02 23:14:07 UTC 2024 - 31.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/rule.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 46.5K bytes - Viewed (0) -
pkg/kubelet/container/runtime.go
func ParseContainerID(containerID string) ContainerID { var id ContainerID if err := id.ParseString(containerID); err != nil { klog.ErrorS(err, "Parsing containerID failed") } return id } // ParseString converts given string into ContainerID func (c *ContainerID) ParseString(data string) error { // Trim the quotes and split the type and ID. parts := strings.Split(strings.Trim(data, "\""), "://")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:23 UTC 2024 - 27.8K bytes - Viewed (0) -
internal/s3select/sql/statement.go
} // ParseSelectStatement - parses a select query from the given string // and analyzes it. func ParseSelectStatement(s string) (stmt SelectStatement, err error) { var selectAST Select err = SQLParser.ParseString(s, &selectAST) if err != nil { err = errQueryParseFailure(err) return } // Check if select is "SELECT s.* from S3Object s" if !selectAST.Expression.All && len(selectAST.Expression.Expressions) == 1 &&
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jan 09 17:19:11 UTC 2024 - 8.9K bytes - Viewed (0)