Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 313 for aslash (0.81 sec)

  1. test/fuse.go

    }
    
    func fPhi(a, b string) string {
    	aslash := strings.HasSuffix(a, "/") // ERROR "Redirect Phi based on Phi$"
    	bslash := strings.HasPrefix(b, "/")
    	switch {
    	case aslash && bslash:
    		return a + b[1:]
    	case !aslash && !bslash:
    		return a + "/" + b
    	}
    	return a + b
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. src/archive/tar/testdata/trailing-slash.tar

    Caio Marcelo de Oliveira Filho <******@****.***> 1514852203 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 18:36:49 UTC 2018
    - 2.5K bytes
    - Viewed (0)
  3. src/os/exec_windows.go

    					cmd = cmd[1:]
    				}
    				inquote = !inquote
    			} else {
    				b = append(b, c)
    			}
    			nslash = 0
    			continue
    		case '\\':
    			nslash++
    			continue
    		}
    		b = appendBSBytes(b, nslash)
    		nslash = 0
    		b = append(b, c)
    	}
    	return appendBSBytes(b, nslash), ""
    }
    
    // commandLineToArgv splits a command line into individual argument
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. src/path/path.go

    // slashes are removed.
    // If the path is empty, Dir returns ".".
    // If the path consists entirely of slashes followed by non-slash bytes, Dir
    // returns a single slash. In any other case, the returned path does not end in a
    // slash.
    func Dir(path string) string {
    	dir, _ := Split(path)
    	return Clean(dir)
    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. staging/src/k8s.io/apimachinery/pkg/api/validation/path/name_test.go

    			Prefix:      false,
    			ExpectedMsg: "",
    		},
    		"dot dot,prefix": {
    			Name:        "..",
    			Prefix:      true,
    			ExpectedMsg: "",
    		},
    
    		"slash": {
    			Name:        "foo/bar",
    			Prefix:      false,
    			ExpectedMsg: "/",
    		},
    		"slash,prefix": {
    			Name:        "foo/bar",
    			Prefix:      true,
    			ExpectedMsg: "/",
    		},
    
    		"percent": {
    			Name:        "foo%bar",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 27 13:49:29 UTC 2017
    - 3.8K bytes
    - Viewed (0)
  6. src/cmd/go/internal/web/url_windows.go

    			return "", errors.New("file URL encodes volume in host field: too few slashes?")
    		}
    		return `\\` + host + path, nil
    	}
    
    	// If host is empty, path must contain an initial slash followed by a
    	// drive letter and path. Remove the slash and verify that the path is valid.
    	if vol := filepath.VolumeName(path[1:]); vol == "" || strings.HasPrefix(vol, `\\`) {
    		return "", errors.New("file URL missing drive letter")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:43:51 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/slashpath.txt

    # .a files should use slash-separated paths even on windows
    # This is important for reproducing native builds with cross-compiled builds.
    go build -o x.a text/template
    ! grep 'GOROOT\\' x.a
    ! grep 'text\\template' x.a
    ! grep 'c:\\' x.a
    
    # executables should use slash-separated paths even on windows
    # This is important for reproducing native builds with cross-compiled builds.
    go build -o hello.exe hello.go
    ! grep 'GOROOT\\' hello.exe
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 23:10:31 UTC 2023
    - 596 bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/route/route_cache.go

    		h.WriteString(string(svc.Hostname))
    		h.Write(Slash)
    		h.WriteString(svc.Attributes.Namespace)
    		h.Write(Separator)
    	}
    	h.Write(Separator)
    
    	for _, vs := range r.VirtualServices {
    		for _, cfg := range model.VirtualServiceDependencies(vs) {
    			h.WriteString(cfg.Kind.String())
    			h.Write(Slash)
    			h.WriteString(cfg.Name)
    			h.Write(Slash)
    			h.WriteString(cfg.Namespace)
    			h.Write(Separator)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. platforms/native/testing-native/src/test/groovy/org/gradle/nativeplatform/test/xctest/internal/execution/XCTestSelectionTest.groovy

        }
    
        def "throws IllegalArgumentException when filter contains forward slash [#testFilter]"() {
            when:
            select(testFilter)
    
            then:
            def ex = thrown(IllegalArgumentException)
            ex.message == "'$testFilter' is an invalid pattern. Patterns cannot contain forward slash."
    
            where:
            testFilter << ['/abc', 'a/bc', 'ab/c', 'a/b/c', 'a/bc', 'a.b/c']
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. src/cmd/internal/objabi/path.go

    // last segment of the path, and it makes for happier users if we escape that as
    // little as possible.
    func PathToPrefix(s string) string {
    	slash := strings.LastIndex(s, "/")
    	// check for chars that need escaping
    	n := 0
    	for r := 0; r < len(s); r++ {
    		if c := s[r]; c <= ' ' || (c == '.' && r > slash) || c == '%' || c == '"' || c >= 0x7F {
    			n++
    		}
    	}
    
    	// quick exit
    	if n == 0 {
    		return s
    	}
    
    	// escape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 13:56:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top