Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 153 for isSlash (0.16 sec)

  1. src/cmd/go/internal/fsys/fsys.go

    	if l := len(path); l >= 5 && isSlash(path[0]) && isSlash(path[1]) &&
    		!isSlash(path[2]) && path[2] != '.' {
    		// first, leading `\\` and next shouldn't be `\`. its server name.
    		for n := 3; n < l-1; n++ {
    			// second, next '\' shouldn't be repeated.
    			if isSlash(path[n]) {
    				n++
    				// third, following something characters. its share name.
    				if !isSlash(path[n]) {
    					if path[n] == '.' {
    						break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/os/dir_windows.go

    				d.class = windows.FileIdBothDirectoryInfo
    			} else if d.class == windows.FileFullDirectoryRestartInfo {
    				d.class = windows.FileFullDirectoryInfo
    			}
    		}
    		// Drain the buffer
    		var islast bool
    		for n != 0 && !islast {
    			var nextEntryOffset uint32
    			var nameslice []uint16
    			entry := unsafe.Pointer(&(*d.buf)[d.bufp])
    			if d.class == windows.FileIdBothDirectoryInfo {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/superTypes/KtSuperTypesCallArgumentsRenderer.kt

                declarationRenderer: KaDeclarationRenderer,
                printer: PrettyPrinter,
            ) {
                with(analysisSession) {
                    if (type.expandedSymbol?.classKind?.isClass != true) {
                        return
                    }
                    printer.append("()")
                }
            }
        }
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/net/http/routing_tree.go

    		// trailing slash in the pattern).
    		if c.pattern.lastSegment().s != "" {
    			matches = append(matches, pathUnescape(path[1:])) // remove initial slash
    		}
    		return c, matches
    	}
    	return nil, nil
    }
    
    // firstSegment splits path into its first segment, and the rest.
    // The path must begin with "/".
    // If path consists of only a slash, firstSegment returns ("/", "").
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. src/path/filepath/symlink.go

    			// Ignore path component ".".
    			continue
    		} else if path[start:end] == ".." {
    			// Back up to previous component if possible.
    			// Note that volLen includes any leading slash.
    
    			// Set r to the index of the last slash in dest,
    			// after the volume.
    			var r int
    			for r = len(dest) - 1; r >= volLen; r-- {
    				if os.IsPathSeparator(dest[r]) {
    					break
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top