- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for comparePaths (0.29 sec)
-
src/net/http/pattern_test.go
} { pat1 := mustParsePattern(t, test.p1) pat2 := mustParsePattern(t, test.p2) if g := pat1.comparePaths(pat1); g != equivalent { t.Errorf("%s does not match itself; got %s", pat1, g) } if g := pat2.comparePaths(pat2); g != equivalent { t.Errorf("%s does not match itself; got %s", pat2, g) } got := pat1.comparePaths(pat2) if got != test.want { t.Errorf("%s vs %s: got %s, want %s", test.p1, test.p2, got, test.want)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 16:36:30 UTC 2024 - 15K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/PathUtil.java
private static final Comparator<String> CASE_SENSITIVE_COMPARATOR = (path1, path2) -> comparePaths(path1, path2, CASE_SENSITIVE); private static final Comparator<String> CASE_INSENSITIVE_COMPARATOR = (path1, path2) -> comparePaths(path1, path2, CASE_INSENSITIVE); /** * Whether the given char is a file separator.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:34:50 UTC 2023 - 8.2K bytes - Viewed (0) -
src/net/http/pattern.go
} func (p1 *pattern) comparePathsAndMethods(p2 *pattern) relationship { mrel := p1.compareMethods(p2) // Optimization: avoid a call to comparePaths. if mrel == disjoint { return disjoint } prel := p1.comparePaths(p2) return combineRelationships(mrel, prel) } // compareMethods determines the relationship between the method // part of patterns p1 and p2. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 16:36:30 UTC 2024 - 15.3K bytes - Viewed (0)