- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 124 for SEP (0.03 sec)
-
src/io/ioutil/tempfile_test.go
} defer os.RemoveAll(tmpDir) const sep = string(os.PathSeparator) tests := []struct { pattern string wantErr bool }{ {"ioutil*test", false}, {"ioutil_test*foo", false}, {"ioutil_test" + sep + "foo", true}, {"ioutil_test*" + sep + "foo", true}, {"ioutil_test" + sep + "*foo", true}, {sep + "ioutil_test" + sep + "*foo", true}, {"ioutil_test*foo" + sep, true}, } for _, tt := range tests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 18 00:47:29 UTC 2022 - 5.5K bytes - Viewed (0) -
src/internal/bytealg/index_s390x.s
// sep: string to search for // R1=&s[0], R2=len(s) // R3=&sep[0], R4=len(sep) // R5=&ret (int) // Caller must confirm availability of vx facility before calling. TEXT indexbody<>(SB),NOSPLIT|NOFRAME,$0 CMPBGT R4, R2, notfound ADD R1, R2 SUB R4, R2 // R2=&s[len(s)-len(sep)] (last valid index) CMPBEQ R4, $0, notfound SUB $1, R4 // R4=len(sep)-1 for use as VLL index VLL R4, (R3), V0 // contains first 16 bytes of sep MOVD R1, R7 index2plus:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Mar 04 19:49:44 UTC 2018 - 5.5K bytes - Viewed (0) -
pkg/util/strcase/camelcase_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/arch/arm/armasm/gnu.go
op = strings.Replace(op, "_dot_", ".", -1) op = strings.ToLower(op) buf.WriteString(op) sep := " " for i, arg := range inst.Args { if arg == nil { break } text := gnuArg(&inst, i, arg) if text == "" { continue } buf.WriteString(sep) sep = ", " buf.WriteString(text) } return buf.String() } func gnuArg(inst *Inst, argIndex int, arg Arg) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 14 17:21:52 UTC 2016 - 3.5K bytes - Viewed (0) -
test/linkx_run.go
"os/exec" "strings" ) func main() { // test(" ") // old deprecated & removed syntax test("=") // new syntax } func test(sep string) { // Successful run cmd := exec.Command("go", "run", "-ldflags=-X main.tbd"+sep+"hello -X main.overwrite"+sep+"trumped -X main.nosuchsymbol"+sep+"neverseen", "linkx.go") var out, errbuf bytes.Buffer cmd.Stdout = &out cmd.Stderr = &errbuf err := cmd.Run() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/why.go
} fmt.Printf("%s# %s\n%s", sep, m.Path, why) sep = "\n" } } else { // Resolve to packages. matches, _ := modload.LoadPackages(ctx, loadOpts, args...) modload.LoadPackages(ctx, loadOpts, "all") // rebuild graph, from main module (not from named packages) sep := "" for _, m := range matches { for _, path := range m.Pkgs {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 01 21:32:23 UTC 2023 - 3.8K bytes - Viewed (0) -
src/strings/strings_test.go
begin := rand.Intn(len(s) + 1) end := begin + rand.Intn(len(s)+1-begin) sep := s[begin:end] if i%4 == 0 { pos := rand.Intn(len(sep) + 1) sep = sep[:pos] + "A" + sep[pos:] } want := simpleIndex(s, sep) res := Index(s, sep) if res != want { t.Errorf("Index(%s,%s) = %d; want %d", s, sep, res, want) } } } } } func TestIndexRune(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/report/shortnames.go
name = graph.ShortenFunctionName(name) seps := sepRE.FindAllStringIndex(name, -1) result := make([]string, 0, len(seps)+1) result = append(result, name) for _, sep := range seps { // Suffix starting just after sep if sep[1] < len(name) { result = append(result, name[sep[1]:]) } } return result
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 22 18:58:12 UTC 2022 - 1.2K bytes - Viewed (0) -
src/cmd/compile/internal/base/link.go
func PkgLinksym(prefix, name string, abi obj.ABI) *obj.LSym { if name == "_" { // TODO(mdempsky): Cleanup callers and Fatalf instead. return linksym(prefix, "_", abi) } sep := "." if ReservedImports[prefix] { sep = ":" } return linksym(prefix, prefix+sep+name, abi) } // Linkname returns the linker symbol for the given name as it might // appear within a //go:linkname directive.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 09 11:28:56 UTC 2022 - 1.6K bytes - Viewed (0) -
src/strings/example_test.go
func ExampleCutPrefix() { show := func(s, sep string) { after, found := strings.CutPrefix(s, sep) fmt.Printf("CutPrefix(%q, %q) = %q, %v\n", s, sep, after, found) } show("Gopher", "Go") show("Gopher", "ph") // Output: // CutPrefix("Gopher", "Go") = "pher", true // CutPrefix("Gopher", "ph") = "Gopher", false } func ExampleCutSuffix() { show := func(s, sep string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:05:38 UTC 2023 - 10.7K bytes - Viewed (0)