Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 330 for separators (0.23 sec)

  1. internal/lock/lock_windows.go

    	// The extended form disables evaluation of . and .. path
    	// elements and disables the interpretation of / as equivalent
    	// to \. The conversion here rewrites / to \ and elides
    	// . elements as well as trailing or duplicate separators. For
    	// simplicity it avoids the conversion entirely for relative
    	// paths or paths containing .. elements. For now,
    	// \\server\share paths are not converted to
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. src/path/filepath/match_test.go

    			t.Errorf("Glob(%#q) = %#v want []", pattern, matches)
    		}
    	}
    }
    
    func TestCVE202230632(t *testing.T) {
    	// Prior to CVE-2022-30632, this would cause a stack exhaustion given a
    	// large number of separators (more than 4,000,000). There is now a limit
    	// of 10,000.
    	_, err := Glob("/*" + strings.Repeat("/", 10001))
    	if err != ErrBadPattern {
    		t.Fatalf("Glob returned err=%v, want ErrBadPattern", err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. src/io/fs/fs.go

    // Paths containing other characters such as backslash and colon
    // are accepted as valid, but those characters must never be
    // interpreted by an [FS] implementation as path element separators.
    func ValidPath(name string) bool {
    	if !utf8.ValidString(name) {
    		return false
    	}
    
    	if name == "." {
    		// special case
    		return true
    	}
    
    	// Iterate over elements in name, checking each.
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 15 21:21:41 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/init_mlir.cc

          "https://github.com/tensorflow/tensorflow/issues with the trace "
          "below.\n");
    
      constexpr char kSeparator[] = "--";
    
      // Find index of separator between two sets of flags.
      int pass_remainder = 1;
      bool split = false;
      for (int i = 0; i < *argc; ++i) {
        if (llvm::StringRef((*argv)[i]) == kSeparator) {
          pass_remainder = i;
          *argc -= (i + 1);
          split = true;
          break;
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 10:03:56 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/pathelement.go

    	// Key indicates that the content of this path element is a key value map
    	Key = "k"
    
    	// Separator separates the type of a path element from the contents
    	Separator = ":"
    )
    
    // NewPathElement parses a serialized path element
    func NewPathElement(s string) (fieldpath.PathElement, error) {
    	split := strings.SplitN(s, Separator, 2)
    	if len(split) < 2 {
    		return fieldpath.PathElement{}, fmt.Errorf("missing colon: %v", s)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/io/src/main/java/org/gradle/internal/io/LineBufferingOutputStream.java

            output.write(b);
            counter++;
            if (endsWithLineSeparator(b) || counter >= lineMaxLength) {
                flush();
            }
        }
    
        // only check for the last byte of a multi-byte line separator
        // besides this, always check for '\n'
        // this handles '\r' (MacOSX 9), '\r\n' (Windows) and '\n' (Linux/Unix/MacOSX 10)
        private boolean endsWithLineSeparator(int b) {
            byte currentByte = (byte) (b & 0xff);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/route/route_cache.go

    	h := hash.New()
    
    	h.WriteString(r.RouteName)
    	h.Write(Separator)
    	h.WriteString(r.ProxyVersion)
    	h.Write(Separator)
    	h.WriteString(r.ClusterID)
    	h.Write(Separator)
    	h.WriteString(r.DNSDomain)
    	h.Write(Separator)
    	h.WriteString(strconv.FormatBool(r.DNSCapture))
    	h.Write(Separator)
    	h.WriteString(strconv.FormatBool(r.DNSAutoAllocate))
    	h.Write(Separator)
    	h.WriteString(strconv.FormatBool(r.AllowAny))
    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. pkg/jwt/routing_test.go

    		},
    		{
    			// if `.` exists, use `.` as separator
    			name: "@request.auth.claims.[key1]",
    			want: RoutingClaim{Match: true, Separator: Dot, Claims: []string{"[key1]"}},
    		},
    		{
    			name: "@request.auth.claims[key1]",
    			want: RoutingClaim{Match: true, Separator: Square, Claims: []string{"key1"}},
    		},
    		{
    			name: "@request.auth.claims[key1][key2]",
    			want: RoutingClaim{Match: true, Separator: Square, Claims: []string{"key1", "key2"}},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 16:38:57 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/cluster_cache.go

    	h := hash.New()
    	h.WriteString(t.clusterName)
    	h.Write(Separator)
    	h.WriteString(t.proxyVersion)
    	h.Write(Separator)
    	h.WriteString(util.LocalityToString(t.locality))
    	h.Write(Separator)
    	h.WriteString(t.proxyClusterID)
    	h.Write(Separator)
    	h.WriteString(strconv.FormatBool(t.proxySidecar))
    	h.Write(Separator)
    	h.WriteString(strconv.FormatBool(t.http2))
    	h.Write(Separator)
    	h.WriteString(strconv.FormatBool(t.downstreamAuto))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. src/os/path_plan9.go

    // license that can be found in the LICENSE file.
    
    package os
    
    const (
    	PathSeparator     = '/'    // OS-specific path separator
    	PathListSeparator = '\000' // OS-specific path list separator
    )
    
    // IsPathSeparator reports whether c is a directory separator character.
    func IsPathSeparator(c uint8) bool {
    	return PathSeparator == c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:09 UTC 2024
    - 443 bytes
    - Viewed (0)
Back to top