- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 284 for isSlash (0.14 sec)
-
src/syscall/exec_windows.go
if n <= uint32(len(buf)) { return UTF16ToString(buf[:n]), nil } } } func isSlash(c uint8) bool { return c == '\\' || c == '/' } func normalizeDir(dir string) (name string, err error) { ndir, err := FullPath(dir) if err != nil { return "", err } if len(ndir) > 2 && isSlash(ndir[0]) && isSlash(ndir[1]) { // dir cannot have \\server\share\path form return "", EINVAL }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 28 18:29:48 UTC 2023 - 10.3K bytes - Viewed (0) -
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) -
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) -
test/fuse.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 23 00:02:36 UTC 2024 - 5.3K bytes - Viewed (0) -
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) -
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) -
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) -
staging/src/k8s.io/apimachinery/pkg/fields/selector.go
if len(fieldSelector) == 0 { return nil } terms := make([]string, 0, 1) startIndex := 0 inSlash := false for i, c := range fieldSelector { switch { case inSlash: inSlash = false case c == '\\': inSlash = true case c == ',': terms = append(terms, fieldSelector[startIndex:i]) startIndex = i + 1 } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 23 20:40:07 UTC 2020 - 12.3K bytes - Viewed (0) -
platforms/core-execution/build-cache-packaging/src/main/java/org/gradle/caching/internal/packaging/impl/RelativePathParser.java
import com.google.common.base.CharMatcher; import org.gradle.internal.file.FilePathUtil; import java.util.ArrayDeque; import java.util.Deque; public class RelativePathParser { private static final CharMatcher IS_SLASH = CharMatcher.is('/'); private final Deque<String> directoryPaths = new ArrayDeque<>(); private final Deque<String> directoryNames = new ArrayDeque<>(); private final int rootLength;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:43:12 UTC 2023 - 3.3K bytes - Viewed (0) -
src/go/printer/comment.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 07:35:19 UTC 2022 - 3.5K bytes - Viewed (0)