Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,195 for SplitV (0.11 sec)

  1. cmd/signature-v4-parser.go

    	creds := strings.SplitN(strings.TrimSpace(credElement), "=", 2)
    	if len(creds) != 2 {
    		return ch, ErrMissingFields
    	}
    	if creds[0] != "Credential" {
    		return ch, ErrMissingCredTag
    	}
    	credElements := strings.Split(strings.TrimSpace(creds[1]), SlashSeparator)
    	if len(credElements) < 5 {
    		return ch, ErrCredMalformed
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. cmd/leak-detect_test.go

    	buf := debug.Stack()
    	// runtime stack of go routines will be listed with 2 blank spaces between each of them, so split on "\n\n" .
    	for _, g := range strings.Split(string(buf), "\n\n") {
    		// Again split on a new line, the first line of the second half contains the info about the go routine.
    		sl := strings.SplitN(g, "\n", 2)
    		if len(sl) != 2 {
    			continue
    		}
    		stack := strings.TrimSpace(sl[1])
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. src/strings/example_test.go

    	// Output:
    	// moo moo moo
    }
    
    func ExampleSplit() {
    	fmt.Printf("%q\n", strings.Split("a,b,c", ","))
    	fmt.Printf("%q\n", strings.Split("a man a plan a canal panama", "a "))
    	fmt.Printf("%q\n", strings.Split(" xyz ", ""))
    	fmt.Printf("%q\n", strings.Split("", "Bernardo O'Higgins"))
    	// Output:
    	// ["a" "b" "c"]
    	// ["" "man " "plan " "canal panama"]
    	// [" " "x" "y" "z" " "]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:05:38 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. staging/src/k8s.io/apimachinery/pkg/util/version/version.go

    type Version struct {
    	components    []uint
    	semver        bool
    	preRelease    string
    	buildMetadata string
    }
    
    var (
    	// versionMatchRE splits a version string into numeric and "extra" parts
    	versionMatchRE = regexp.MustCompile(`^\s*v?([0-9]+(?:\.[0-9]+)*)(.*)*$`)
    	// extraMatchRE splits the "extra" part of versionMatchRE into semver pre-release and build metadata; it does not validate the "no leading zeroes" constraint for pre-release
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 18 19:25:29 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  9. src/cmd/fix/typecheck.go

    				}
    				return split(s[i:j]), split(out)
    			}
    		}
    	}
    	return nil, nil
    }
    
    // joinFunc is the inverse of splitFunc.
    func joinFunc(in, out []string) string {
    	outs := ""
    	if len(out) == 1 {
    		outs = " " + out[0]
    	} else if len(out) > 1 {
    		outs = " (" + join(out) + ")"
    	}
    	return "func(" + join(in) + ")" + outs
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  10. 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)
Back to top