Home
last modified time | relevance | path

Searched +full:normalize +full:- +full:path (Results 1 – 25 of 1315) sorted by relevance

12345678910>>...53

/aosp_15_r20/external/sdv/vsomeip/third_party/boost/filesystem/test/
Ddeprecated_test.cpp1 // deprecated_test program --------------------------------------------------//
27 using boost::filesystem::path;
35 void check(const fs::path & source, in check()
49 PATH_CHECK(path("").normalize(), ""); in normalize_test()
50 PATH_CHECK(path("/").normalize(), "/"); in normalize_test()
51 PATH_CHECK(path("//").normalize(), "//"); in normalize_test()
52 PATH_CHECK(path("///").normalize(), "/"); in normalize_test()
53 PATH_CHECK(path("f").normalize(), "f"); in normalize_test()
54 PATH_CHECK(path("foo").normalize(), "foo"); in normalize_test()
55 PATH_CHECK(path("foo/").normalize(), "foo/."); in normalize_test()
[all …]
/aosp_15_r20/external/okio/okio/src/commonTest/kotlin/okio/
H A DPathTest.kt8 * http://www.apache.org/licenses/LICENSE-2.0
24 import okio.Path.Companion.toPath
29 val path = "/".toPath() in unixRoot() constant
30 assertEquals(path, path.normalized()) in unixRoot()
31 assertEquals(path, path.root) in unixRoot()
32 assertEquals(listOf(), path.segments) in unixRoot()
33 assertEquals("/", path.toString()) in unixRoot()
34 assertNull(path.parent) in unixRoot()
35 assertNull(path.volumeLetter) in unixRoot()
36 assertEquals("", path.name) in unixRoot()
[all …]
/aosp_15_r20/external/okio/okio/src/commonMain/kotlin/okio/internal/
H A DPath.kt8 * http://www.apache.org/licenses/LICENSE-2.0
16 @file:JvmName("-Path") // A leading '-' hides this class from Java.
25 import okio.Path
26 import okio.Path.Companion.toPath
44 internal inline fun Path.commonRoot(): Path? { in commonRoot()
46 -1 -> null in commonRoot()
47 else -> Path(bytes.substring(0, rootLength)) in commonRoot()
52 internal inline fun Path.commonSegments(): List<String> { in commonSegments()
58 internal inline fun Path.commonSegmentsBytes(): List<ByteString> { in commonSegmentsBytes()
63 if (segmentStart == -1) { in commonSegmentsBytes()
[all …]
/aosp_15_r20/prebuilts/cmake/linux-x86/share/cmake-3.22/Help/command/
Dcmake_path.rst2 ----------
8 file system. The path may represent a non-existing path or even one that
16 (i.e. the host platform), not the target system. When cross-compiling,
17 if the path contains elements that are not representable on the host
24 .. parsed-literal::
28 `Path Structure And Terminology`_
33 cmake_path(`GET`_ <path-var> :ref:`ROOT_NAME <GET_ROOT_NAME>` <out-var>)
34 cmake_path(`GET`_ <path-var> :ref:`ROOT_DIRECTORY <GET_ROOT_DIRECTORY>` <out-var>)
35 cmake_path(`GET`_ <path-var> :ref:`ROOT_PATH <GET_ROOT_PATH>` <out-var>)
36 cmake_path(`GET`_ <path-var> :ref:`FILENAME <GET_FILENAME>` <out-var>)
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.x_Before_IDEA/src/main/groovy/org/mockftpserver/fake/filesystem/
H A DAbstractFakeFileSystem.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
32 * @version $Revision: $ - $Date: $
53 * @param entry - the subclass of AbstractFileSystemEntry to add
56 def normalized = normalize(entry.path)
58 throw new FileSystemException("The path [" + normalized + "] already exists")
73 * @param path - the path of the filename to create
76 * @throws AssertionError - if path is null
77 * @throws FileSystemException - if an I/O error occurs
79 public boolean createFile(String path) {
80 assert path != null
[all …]
/aosp_15_r20/external/okio/okio/src/commonMain/kotlin/okio/
H A DPath.kt8 * http://www.apache.org/licenses/LICENSE-2.0
18 import okio.Path.Companion.toPath
21 * A hierarchical address on a file system. A path is an identifier only; a [FileSystem] is required
22 * to access the file that a path refers to, if any.
25 * ----------------------
28 * (including Linux, Android, macOS, and iOS), the `/` slash character separates path segments. On
29 * Windows, the `\` backslash character separates path segments. The two platforms each have their
30 * own rules for path resolution. This class implements all rules on all platforms; for example you
31 * can model a Linux path in a native Windows application.
34 * ---------------------------
[all …]
/aosp_15_r20/libcore/ojluni/src/test/java/nio/file/Path/
H A DPathOps.java17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26 * @summary Unit test for java.nio.file.Path path operations
28 package test.java.nio.file.Path;
33 import java.nio.file.Path;
40 private Path path; field in PathOps
45 path = FileSystems.getDefault().getPath(first, more); in PathOps()
53 path = Path.of(uri); in PathOps()
60 if (path == null) { in checkPath()
61 throw new InternalError("path is null"); in checkPath()
71 Assert.fail("Expected is null but result was non-null"); in check()
[all …]
/aosp_15_r20/external/okio/okio/src/jvmMain/kotlin/okio/
H A DPath.kt8 * http://www.apache.org/licenses/LICENSE-2.0
19 import java.nio.file.Path as NioPath
40 actual class Path internal actual constructor( class
42 ) : Comparable<Path> {
43 actual val root: Path?
71 actual val parent: Path?
78 actual operator fun div(child: String): Path = commonResolve(child, normalize = false) in div()
81 actual operator fun div(child: ByteString): Path = commonResolve(child, normalize = false) in div()
84 actual operator fun div(child: Path): Path = commonResolve(child, normalize = false) in div()
86 actual fun resolve(child: String, normalize: Boolean): Path = in div()
[all …]
/aosp_15_r20/external/okio/okio/src/nonJvmMain/kotlin/okio/
H A DPath.kt8 * http://www.apache.org/licenses/LICENSE-2.0
37 actual class Path internal actual constructor( class
39 ) : Comparable<Path> {
40 actual val root: Path?
64 actual val parent: Path?
70 actual operator fun div(child: String): Path = commonResolve(child, normalize = false) in div()
72 actual operator fun div(child: ByteString): Path = commonResolve(child, normalize = false) in div()
74 actual operator fun div(child: Path): Path = commonResolve(child, normalize = false) in div()
76 actual fun resolve(child: String, normalize: Boolean): Path = in div()
77 commonResolve(child, normalize = normalize) in div()
[all …]
/aosp_15_r20/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
21 * @version $Revision$ - $Date$
39 // -------------------------------------------------------------------------
41 // -------------------------------------------------------------------------
57 assert fileSystem.path(null, null) == ""
58 assert fileSystem.path(null, "abc") == "abc"
59 assert fileSystem.path("abc", null) == "abc"
60 assert fileSystem.path("", "") == ""
61 assert fileSystem.path("", "abc") == "abc"
62 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.0.2/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
23 * @version $Revision$ - $Date$
41 // -------------------------------------------------------------------------
43 // -------------------------------------------------------------------------
59 assert fileSystem.path(null, null) == ""
60 assert fileSystem.path(null, "abc") == "abc"
61 assert fileSystem.path("abc", null) == "abc"
62 assert fileSystem.path("", "") == ""
63 assert fileSystem.path("", "abc") == "abc"
64 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.3/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
21 * @version $Revision$ - $Date$
39 // -------------------------------------------------------------------------
41 // -------------------------------------------------------------------------
57 assert fileSystem.path(null, null) == ""
58 assert fileSystem.path(null, "abc") == "abc"
59 assert fileSystem.path("abc", null) == "abc"
60 assert fileSystem.path("", "") == ""
61 assert fileSystem.path("", "abc") == "abc"
62 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.2/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
21 * @version $Revision$ - $Date$
39 // -------------------------------------------------------------------------
41 // -------------------------------------------------------------------------
57 assert fileSystem.path(null, null) == ""
58 assert fileSystem.path(null, "abc") == "abc"
59 assert fileSystem.path("abc", null) == "abc"
60 assert fileSystem.path("", "") == ""
61 assert fileSystem.path("", "abc") == "abc"
62 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.0.1/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
23 * @version $Revision$ - $Date$
41 // -------------------------------------------------------------------------
43 // -------------------------------------------------------------------------
59 assert fileSystem.path(null, null) == ""
60 assert fileSystem.path(null, "abc") == "abc"
61 assert fileSystem.path("abc", null) == "abc"
62 assert fileSystem.path("", "") == ""
63 assert fileSystem.path("", "abc") == "abc"
64 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.4/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
21 * @version $Revision$ - $Date$
39 // -------------------------------------------------------------------------
41 // -------------------------------------------------------------------------
57 assert fileSystem.path(null, null) == ""
58 assert fileSystem.path(null, "abc") == "abc"
59 assert fileSystem.path("abc", null) == "abc"
60 assert fileSystem.path("", "") == ""
61 assert fileSystem.path("", "abc") == "abc"
62 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.5/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
21 * @version $Revision$ - $Date$
39 // -------------------------------------------------------------------------
41 // -------------------------------------------------------------------------
57 assert fileSystem.path(null, null) == ""
58 assert fileSystem.path(null, "abc") == "abc"
59 assert fileSystem.path("abc", null) == "abc"
60 assert fileSystem.path("", "") == ""
61 assert fileSystem.path("", "abc") == "abc"
62 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.1/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
23 * @version $Revision$ - $Date$
41 // -------------------------------------------------------------------------
43 // -------------------------------------------------------------------------
59 assert fileSystem.path(null, null) == ""
60 assert fileSystem.path(null, "abc") == "abc"
61 assert fileSystem.path("abc", null) == "abc"
62 assert fileSystem.path("", "") == ""
63 assert fileSystem.path("", "abc") == "abc"
64 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.0-rc1/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
23 * @version $Revision$ - $Date$
41 // -------------------------------------------------------------------------
43 // -------------------------------------------------------------------------
59 assert fileSystem.path(null, null) == ""
60 assert fileSystem.path(null, "abc") == "abc"
61 assert fileSystem.path("abc", null) == "abc"
62 assert fileSystem.path("", "") == ""
63 assert fileSystem.path("", "abc") == "abc"
64 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
23 * @version $Revision$ - $Date$
41 // -------------------------------------------------------------------------
43 // -------------------------------------------------------------------------
59 assert fileSystem.path(null, null) == ""
60 assert fileSystem.path(null, "abc") == "abc"
61 assert fileSystem.path("abc", null) == "abc"
62 assert fileSystem.path("", "") == ""
63 assert fileSystem.path("", "abc") == "abc"
64 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
23 * @version $Revision$ - $Date$
41 // -------------------------------------------------------------------------
43 // -------------------------------------------------------------------------
59 assert fileSystem.path(null, null) == ""
60 assert fileSystem.path(null, "abc") == "abc"
61 assert fileSystem.path("abc", null) == "abc"
62 assert fileSystem.path("", "") == ""
63 assert fileSystem.path("", "abc") == "abc"
64 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.0/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DWindowsFakeFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
23 * @version $Revision$ - $Date$
41 // -------------------------------------------------------------------------
43 // -------------------------------------------------------------------------
59 assert fileSystem.path(null, null) == ""
60 assert fileSystem.path(null, "abc") == "abc"
61 assert fileSystem.path("abc", null) == "abc"
62 assert fileSystem.path("", "") == ""
63 assert fileSystem.path("", "abc") == "abc"
64 assert fileSystem.path("abc", "") == "abc"
[all …]
/aosp_15_r20/external/mockftpserver/tags/2.x_Before_IDEA/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DFakeWindowsFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
24 * @version $Revision: $ - $Date: $
42 // -------------------------------------------------------------------------
44 // -------------------------------------------------------------------------
60 assert fileSystem.path(null, null) == ""
61 assert fileSystem.path(null, "abc") == "abc"
62 assert fileSystem.path("abc", null) == "abc"
63 assert fileSystem.path("", "") == ""
64 assert fileSystem.path("", "abc") == "abc"
65 assert fileSystem.path("abc", "") == "abc"
[all …]
H A DDefaultFileSystemTest.groovy8 * http://www.apache.org/licenses/LICENSE-2.0
24 * @version $Revision: $ - $Date: $
123 //-------------------------------------------------------------------------
124 // Tests for path-related methods
125 //-------------------------------------------------------------------------
130 assert "" == fileSystem.path(null, null)
131 assert "abc" == fileSystem.path(null, "abc")
132 assert "abc" == fileSystem.path("abc", null)
133 assert "" == fileSystem.path("", "")
134 assert "abc" == fileSystem.path("", "abc")
[all …]
/aosp_15_r20/external/deqp/framework/delibs/decpp/
H A DdeFilePath.cpp1 /*-------------------------------------------------------------------------
3 * -----------------------------
11 * http://www.apache.org/licenses/LICENSE-2.0
21 * \brief Filesystem path class.
22 *//*--------------------------------------------------------------------*/
54 if (!m_path.empty() && !isSeparator(m_path[m_path.size() - 1])) in FilePath()
78 if (pos - curCompStart > 0) in split()
79 components.push_back(m_path.substr(curCompStart, pos - curCompStart)); in split()
85 if (pos - curCompStart > 0) in split()
86 components.push_back(m_path.substr(curCompStart, pos - curCompStart)); in split()
[all …]
/aosp_15_r20/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
H A DAbstractFakeFileSystem.java8 * http://www.apache.org/licenses/LICENSE-2.0
43 * filesystem-specific manner. This property must be initialized by concrete subclasses.
46 * @version $Revision$ - $Date$
68 //-------------------------------------------------------------------------
70 //-------------------------------------------------------------------------
92 * @param entriesToAdd - the List of FileSystemEntry entries to add
104 * @param entry - the FileSystemEntry to add
107 String path = entry.getPath(); in add() local
108 checkForInvalidFilename(path); in add()
109 if (getEntry(path) != null) { in add()
[all …]

12345678910>>...53