- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 950 for SplitV (0.13 sec)
-
src/path/path.go
if out.w == 0 { return "." } return out.string() } // Split splits path immediately following the final slash, // separating it into a directory and file name component. // If there is no slash in path, Split returns an empty dir and // file set to path. // The returned values have the property that path = dir+file. func Split(path string) (dir, file string) { i := bytealg.LastIndexByteString(path, '/')
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 23 17:33:57 UTC 2023 - 5.9K bytes - Viewed (0) -
src/go/types/eval_test.go
str, typ := split(s[2:len(s)-2], ", ") str, val := split(str, "=>") testEval(t, fset, pkg, comment.Pos(), str, nil, typ, val) } } } } } // gotypesalias controls the use of Alias types. var gotypesalias = godebug.New("#gotypesalias") // split splits string s at the first occurrence of s, trimming spaces. func split(s, sep string) (string, string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 19:56:15 UTC 2024 - 8.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import.cc
return op.emitOpError("failed to open vocabulary file") << " (" << filename << "): " << error_message; } // Splits into lines. SmallVector<StringRef, 8> lines; file->getBuffer().split(lines, "\n", -1, false); // The resize method is used since split operator puts tail value in the end // without splitting the leftovers. if (op.getVocabSize() != -1) lines.resize(op.getVocabSize());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 6.1K bytes - Viewed (0) -
pkg/credentialprovider/keyring.go
parsed.Scheme = "" return parsed, nil } // SplitURL splits the host name into parts, as well as the port func SplitURL(url *url.URL) (parts []string, port string) { host, port, err := net.SplitHostPort(url.Host) if err != nil { // could not parse port host, port = url.Host, "" } return strings.Split(host, "."), port }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 9.2K bytes - Viewed (0) -
pkg/fieldpath/fieldpath.go
} return "", fmt.Errorf("unsupported fieldPath: %v", fieldPath) } // SplitMaybeSubscriptedPath checks whether the specified fieldPath is // subscripted, and // - if yes, this function splits the fieldPath into path and subscript, and // returns (path, subscript, true). // - if no, this function returns (fieldPath, "", false). // // Example inputs and outputs: //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 02 06:26:55 UTC 2023 - 3.7K bytes - Viewed (0) -
pkg/version/version.go
func NewBuildInfoFromOldString(oldOutput string) (BuildInfo, error) { res := BuildInfo{} lines := strings.Split(oldOutput, "\n") for _, line := range lines { if strings.TrimSpace(line) == "" { continue } fields := strings.SplitN(line, ":", 2) if fields != nil { if len(fields) != 2 { return BuildInfo{}, fmt.Errorf("invalid BuildInfo input, field '%s' is not valid", fields[0])
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 29 14:15:26 UTC 2023 - 3.8K bytes - Viewed (0) -
internal/arn/arn.go
// the ARN would not match any configured ARNs in the server. if ps[4] != "" { err = errors.New("invalid ARN - unsupported account-id field") return } res := strings.SplitN(ps[5], "/", 2) if len(res) != 2 { err = errors.New("invalid ARN - resource does not contain a \"/\"") return } if res[0] != string(arnResourceTypeRole) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 08:31:34 UTC 2024 - 3.5K bytes - Viewed (0) -
tests/util/leak/check.go
func (g goroutineByID) Less(i, j int) bool { return g[i].id < g[j].id } func (g goroutineByID) Swap(i, j int) { g[i], g[j] = g[j], g[i] } func interestingGoroutine(g string) (*goroutine, error) { sl := strings.SplitN(g, "\n", 2) if len(sl) != 2 { return nil, fmt.Errorf("error parsing stack: %q", g) } stack := strings.TrimSpace(sl[1]) if strings.HasPrefix(stack, "testing.RunTests") { return nil, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 20 10:22:38 UTC 2023 - 6.9K bytes - Viewed (0) -
cmd/kubeadm/app/util/arguments.go
} // Remove the starting -- arg = strings.TrimPrefix(arg, "--") // Split the string on =. Return only two substrings, since we want only key/value, but the value can include '=' as well keyvalSlice := strings.SplitN(arg, "=", 2) // Make sure both a key and value is present if len(keyvalSlice) != 2 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 06 11:01:00 UTC 2023 - 3.7K bytes - Viewed (0) -
src/cmd/gofmt/gofmt_test.go
// process flags *simplifyAST = false *rewriteRule = "" info, err := os.Lstat(in) if err != nil { t.Error(err) return } for _, flag := range strings.Split(gofmtFlags(in, 20), " ") { elts := strings.SplitN(flag, "=", 2) name := elts[0] value := "" if len(elts) == 2 { value = elts[1] } switch name { case "": // no flags case "-r": *rewriteRule = value
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 19:22:49 UTC 2022 - 4.3K bytes - Viewed (0)