Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 266 for aslash (0.2 sec)

  1. 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)
  2. 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)
  3. src/cmd/doc/main.go

    	// work.
    	var period int
    	// slash+1: if there's no slash, the value is -1 and start is 0; otherwise
    	// start is the byte after the slash.
    	for start := slash + 1; start < len(arg); start = period + 1 {
    		period = strings.Index(arg[start:], ".")
    		symbol := ""
    		if period < 0 {
    			period = len(arg)
    		} else {
    			period += start
    			symbol = arg[period+1:]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. cmd/metacache-walk.go

    	// ReportNotFound will return errFileNotFound if all disks reports the BaseDir cannot be found.
    	ReportNotFound bool
    
    	// FilterPrefix will only return results with given prefix within folder.
    	// Should never contain a slash.
    	FilterPrefix string
    
    	// ForwardTo will forward to the given object path.
    	ForwardTo string
    
    	// Limit the number of returned objects if > 0.
    	Limit int
    
    	// DiskID contains the disk ID of the disk.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. src/path/filepath/path.go

    	return filepathlite.Localize(path)
    }
    
    // ToSlash returns the result of replacing each separator character
    // in path with a slash ('/') character. Multiple separators are
    // replaced by multiple slashes.
    func ToSlash(path string) string {
    	return filepathlite.ToSlash(path)
    }
    
    // FromSlash returns the result of replacing each slash ('/') character
    // in path with a separator character. Multiple slashes are replaced
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/DefaultPluginRegistryTest.groovy

            unqualified.asClass() == TestPlugin1
    
            def qualified = pluginRegistry.lookup(DefaultPluginId.of("org.gradle.somePlugin"))
            qualified.pluginId == DefaultPluginId.of("org.gradle.somePlugin")
            unqualified.displayName.displayName == "plugin 'org.gradle.somePlugin'"
            qualified.asClass() == TestPlugin1
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:52:06 UTC 2021
    - 13K bytes
    - Viewed (0)
  7. src/path/filepath/path_test.go

    	// “A pathname that contains at least one non- <slash> character and that ends
    	// with one or more trailing <slash> characters shall not be resolved
    	// successfully unless the last pathname component before the trailing <slash>
    	// characters names an existing directory [...].”
    	//
    	// Since Walk does not traverse symlinks itself, its behavior should depend on
    	// whether the path passed to Walk ends in a slash: if it does not end in a slash,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/plugins/DefaultPluginManager.java

            }
        }
    
        @Override
        public <P extends Plugin> P addImperativePlugin(PluginImplementation<P> plugin) {
            doApply(plugin);
            Class<? extends P> pluginClass = plugin.asClass();
            return pluginClass.cast(instances.get(pluginClass));
        }
    
        @Override
        public <P extends Plugin> P addImperativePlugin(Class<P> type) {
            return addImperativePlugin(pluginRegistry.inspect(type));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        List<String> b = asList("c", "d");
        ImmutableSortedMultiset<String> multiset =
            ImmutableSortedMultiset.<String>naturalOrder().addAll(a).addAll(b).build();
        assertEquals(HashMultiset.create(asList("a", "b", "c", "d")), multiset);
      }
    
      public void testBuilderAddAllMultiset() {
        Multiset<String> a = HashMultiset.create(asList("a", "b", "b"));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. src/embed/embed.go

    // many patterns. The patterns are interpreted relative to the package directory
    // containing the source file. The path separator is a forward slash, even on
    // Windows systems. Patterns may not contain ‘.’ or ‘..’ or empty path elements,
    // nor may they begin or end with a slash. To match everything in the current
    // directory, use ‘*’ instead of ‘.’. To allow for naming files with spaces in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top