Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 596 for aslash (0.26 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/net/http/httputil/reverseproxy.go

    	}
    	// Same as singleJoiningSlash, but uses EscapedPath to determine
    	// whether a slash should be added
    	apath := a.EscapedPath()
    	bpath := b.EscapedPath()
    
    	aslash := strings.HasSuffix(apath, "/")
    	bslash := strings.HasPrefix(bpath, "/")
    
    	switch {
    	case aslash && bslash:
    		return a.Path + b.Path[1:], apath + bpath[1:]
    	case !aslash && !bslash:
    		return a.Path + "/" + b.Path, apath + "/" + bpath
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 23:37:42 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go

    // See-also: https://github.com/golang/go/issues/44290
    func singleJoiningSlash(a, b string) string {
    	aslash := strings.HasSuffix(a, "/")
    	bslash := strings.HasPrefix(b, "/")
    	switch {
    	case aslash && bslash:
    		return a + b[1:]
    	case !aslash && !bslash:
    		return a + "/" + b
    	}
    	return a + b
    }
    
    func (h *UpgradeAwareHandler) DialForUpgrade(req *http.Request) (net.Conn, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/go/doc/comment/print.go

    	if l.ImportPath != "" {
    		slash := ""
    		if strings.HasSuffix(baseURL, "/") {
    			slash = "/"
    		} else {
    			baseURL += "/"
    		}
    		switch {
    		case l.Name == "":
    			return baseURL + l.ImportPath + slash
    		case l.Recv != "":
    			return baseURL + l.ImportPath + slash + "#" + l.Recv + "." + l.Name
    		default:
    			return baseURL + l.ImportPath + slash + "#" + l.Name
    		}
    	}
    	if l.Recv != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top