Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for slashPos (1.17 sec)

  1. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/ntlm/NTLMCredentials.java

            int slashPos = username.indexOf('\\');
            slashPos = slashPos >= 0 ? slashPos : username.indexOf('/');
            if (slashPos >= 0) {
                domain = username.substring(0, slashPos);
                username = username.substring(slashPos + 1);
            } else {
                domain = System.getProperty("http.auth.ntlm.domain", DEFAULT_DOMAIN);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. pkg/volume/util/atomic_writer.go

    func (w *AtomicWriter) createUserVisibleFiles(payload map[string]FileProjection) error {
    	for userVisiblePath := range payload {
    		slashpos := strings.Index(userVisiblePath, string(os.PathSeparator))
    		if slashpos == -1 {
    			slashpos = len(userVisiblePath)
    		}
    		linkname := userVisiblePath[:slashpos]
    		_, err := os.Readlink(filepath.Join(w.targetDir, linkname))
    		if err != nil && os.IsNotExist(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. src/path/path.go

    		}
    	}
    	return ""
    }
    
    // Base returns the last element of path.
    // Trailing slashes are removed before extracting the last element.
    // If the path is empty, Base returns ".".
    // If the path consists entirely of slashes, Base returns "/".
    func Base(path string) string {
    	if path == "" {
    		return "."
    	}
    	// Strip trailing slashes.
    	for len(path) > 0 && path[len(path)-1] == '/' {
    		path = path[0 : len(path)-1]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 23 17:33:57 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/windows/exec_windows.go

    		qs[j] = '"'
    		j++
    	}
    	slashes := 0
    	for i := 0; i < len(s); i++ {
    		switch s[i] {
    		default:
    			slashes = 0
    			qs[j] = s[i]
    		case '\\':
    			slashes++
    			qs[j] = s[i]
    		case '"':
    			for ; slashes > 0; slashes-- {
    				qs[j] = '\\'
    				j++
    			}
    			qs[j] = '\\'
    			j++
    			qs[j] = s[i]
    		}
    		j++
    	}
    	if hasSpace {
    		for ; slashes > 0; slashes-- {
    			qs[j] = '\\'
    			j++
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  5. src/syscall/exec_windows.go

    	}
    
    	if hasSpace {
    		b = append(b, '"')
    	}
    	slashes := 0
    	for i := 0; i < len(s); i++ {
    		c := s[i]
    		switch c {
    		default:
    			slashes = 0
    		case '\\':
    			slashes++
    		case '"':
    			for ; slashes > 0; slashes-- {
    				b = append(b, '\\')
    			}
    			b = append(b, '\\')
    		}
    		b = append(b, c)
    	}
    	if hasSpace {
    		for ; slashes > 0; slashes-- {
    			b = append(b, '\\')
    		}
    		b = append(b, '"')
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 18:29:48 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/api/artifacts/repositories/IvyPatternRepositoryLayout.java

        /**
         * Tells whether a Maven style layout is to be used for the 'organisation' part, replacing any dots with forward slashes.
         * Defaults to {@code false}.
         */
        boolean getM2Compatible();
    
        /**
         * Sets whether a Maven style layout is to be used for the 'organisation' part, replacing any dots with forward slashes.
         * Defaults to {@code false}.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 11 10:01:04 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  7. src/os/path_unix.go

    	// Remove all but one leading slash.
    	for len(path) > 1 && path[0] == '/' && path[1] == '/' {
    		path = path[1:]
    	}
    
    	i := len(path) - 1
    
    	// Remove trailing slashes.
    	for ; i > 0 && path[i] == '/'; i-- {
    		path = path[:i]
    	}
    
    	// if no slashes in path, base is path
    	basename := path
    
    	// Remove leading directory path
    	for i--; i >= 0; i-- {
    		if path[i] == '/' {
    			if i == 0 {
    				dirname = path[:1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. pkg/util/filesystem/util.go

    limitations under the License.
    */
    
    package filesystem
    
    import (
    	"path/filepath"
    )
    
    // IsPathClean will replace slashes to Separator (which is OS-specific).
    // This will make sure that all slashes are the same before comparing.
    func IsPathClean(path string) bool {
    	return filepath.ToSlash(filepath.Clean(path)) == filepath.ToSlash(path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 876 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/build_cache_pgo.txt

    stderr 'preprofile.*default\.pgo'
    
    # ... building a different package should not run preprofile again, instead
    # using a profile from cache.
    #
    # Note we can't directly look for $GOCACHE in the regex below because the
    # Windows slashes would need to be escaped. Instead just look for the "gocache"
    # component (specified above) as an approximation.
    go build -x -pgo=default.pgo lib2.go
    ! stderr 'preprofile.*default\.pgo'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 18:28:25 UTC 2024
    - 927 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_get_go_file.txt

    # argument has .go suffix, doesn't exist and has no slashes
    ! go get test_missing.go
    stderr 'arguments must be package or module paths'
    
    # argument has .go suffix, is a file and exists in sub-directory
    ! go get test/test.go
    stderr 'go: test/test.go exists as a file, but ''go get'' requires package arguments'
    
    # argument has .go suffix, doesn't exist and has slashes
    ! go get test/test_missing.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:08 UTC 2021
    - 2.3K bytes
    - Viewed (0)
Back to top