Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isPrefixOf (0.21 sec)

  1. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/VfsRelativePathTest.groovy

            "a/b"        | ""    | "a/b"
            ""           | ""    | ""
        }
    
        def "'#relativePath / #offset' #verb a prefix of '#childPath'"() {
            expect:
            VfsRelativePath.of(relativePath, offset).isPrefixOf(childPath, CASE_SENSITIVE) == result
    
            where:
            relativePath | offset         | childPath | result
            "a/b"        | "a/".length()  | "a"       | false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/ChildMap.java

                    } else {
                        return Optional.of(handler.handleAsDescendantOfChild(targetPath.pathFromChild(path), value));
                    }
                } else if (targetPath.length() < path.length() && targetPath.isPrefixOf(path, caseSensitivity)) {
                    return Optional.of(handler.handleAsAncestorOfChild(path, value));
                }
                return Optional.empty();
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/VfsRelativePath.java

            return isPrefix(prefix, 0, absolutePath, offset, caseSensitivity);
        }
    
        /**
         * Checks whether this path is a prefix of another path.
         */
        public boolean isPrefixOf(String otherPath, CaseSensitivity caseSensitivity) {
            return isPrefix(absolutePath, offset, otherPath, 0, caseSensitivity);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 10.2K bytes
    - Viewed (0)
Back to top