Home
last modified time | relevance | path

Searched +full:path +full:- +full:is +full:- +full:absolute (Results 1 – 25 of 1012) sorted by relevance

12345678910>>...41

/third_party/curl/tests/
Dpathhelp.pm10 # This software is licensed as described in the file COPYING, which
15 # copies of the Software, and permit persons to whom the Software is
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 # SPDX-License-Identifier: curl
25 # This Perl package helps with path transforming when running curl tests on
30 # (1) /some/path - absolute path in Unix-style
31 # (2) D:/some/path - absolute path in Win32-style
32 # (3) some/path - relative path
33 # (4) D:some/path - path relative to current directory on Win32 drive (paths
35 # (5) \some/path - path from root directory on current Win32 drive (*)
[all …]
/third_party/gn/src/gn/
Dfilesystem_utils.h2 // Use of this source code is governed by a BSD-style license that can be
20 inline std::string FilePathToUTF8(const base::FilePath& path) { in FilePathToUTF8() argument
21 return FilePathToUTF8(path.value()); in FilePathToUTF8()
25 // Extensions -----------------------------------------------------------------
28 // slash). Returns std::string::npos if not found. Returns path.size() if the
30 size_t FindExtensionOffset(const std::string& path);
34 std::string_view FindExtension(const std::string* path);
36 // Filename parts -------------------------------------------------------------
39 // 0 if no slash was found. Returns path.size() if the path ends with a slash.
41 size_t FindFilenameOffset(const std::string& path);
[all …]
Dfilesystem_utils.cc2 // Use of this source code is governed by a BSD-style license that can be
27 // The given dot is just part of a filename and is not special.
30 // The given dot is the current directory.
33 // The given dot is the first of a double dot that should take us up one.
37 // When we find a dot, this function is called with the character following
38 // that dot to see what it is. The return value indicates what type this dot is
39 // (see above). This code handles the case where the dot is at the end of the
44 DotDisposition ClassifyAfterDot(const std::string& path, in ClassifyAfterDot() argument
47 if (after_dot == path.size()) { in ClassifyAfterDot()
52 if (IsSlash(path[after_dot])) { in ClassifyAfterDot()
[all …]
Dsource_dir.h2 // Use of this source code is governed by a BSD-style license that can be
26 // If there is one slash at the beginning, it will mean a system-absolute file
27 // path. On Windows, absolute system paths will be of the form "/C:/foo/bar".
29 // Two slashes at the beginning indicate a path relative to the source root.
38 // and set the give *err pointer (required). Empty input is always an error.
40 // Passed non null v_value will be used to resolve path (in cases where
42 // In this use case parameter v is used to generate proper error.
44 // If source_root is supplied, these functions will additionally handle the
45 // case where the input is a system-absolute but still inside the source
46 // tree. This is the case for some external tools.
[all …]
Dfunction_rebase_path.cc2 // Use of this source code is governed by a BSD-style license that can be
27 output->push_back(input[input.size() - 1]); in MakeSlashEndingMatchInput()
30 output->resize(output->size() - 1); in MakeSlashEndingMatchInput()
43 while (num_dots < value_size && value[value_size - num_dots - 1] == '.') in ValueLooksLikeDir()
47 return true; // String is all dots. in ValueLooksLikeDir()
49 if (IsSlash(value[value_size - num_dots - 1])) in ValueLooksLikeDir()
50 return true; // String is a [back]slash followed by 0 or more dots. in ValueLooksLikeDir()
71 // System-absolute output special case. in ConvertOnePath()
75 system_path = scope->settings()->build_settings()->GetFullPath( in ConvertOnePath()
78 scope->settings()->build_settings()->root_path_utf8())); in ConvertOnePath()
[all …]
Dfunction_get_path_info.cc2 // Use of this source code is governed by a BSD-style license that can be
30 // |current_dir|), regardless of whether the input is a directory or a file.
38 if (!input_string.empty() && input_string[input_string.size() - 1] == '/') { in DirForInput()
39 // Input is a directory. in DirForInput()
41 input, err, settings->build_settings()->root_path_utf8()); in DirForInput()
44 // Input is a file. in DirForInput()
47 settings->build_settings()->root_path_utf8()) in DirForInput()
74 return file.substr(0, extension_offset - 1); in GetOnePathInfo()
84 // times we don't do this are if the result is "/" and "//" since those in GetOnePathInfo()
90 return std::string(dir_incl_slash.substr(0, dir_incl_slash.size() - 1)); in GetOnePathInfo()
[all …]
Dsource_file.h2 // Use of this source code is governed by a BSD-style license that can be
53 // Takes a known absolute source file. Always begins in a slash.
76 // an empty file path on error.
79 // Returns true if this file starts with a "//" which indicates a path
86 // system-absolute path.
89 // Returns a source-absolute path starting with only one slash at the
90 // beginning (normally source-absolute paths start with two slashes to mark
91 // them as such). This is normally used when concatenating names together.
93 // This function asserts that the file is actually source-absolute. The
97 return std::string_view(&value()[1], value().size() - 1); in SourceAbsoluteWithOneSlash()
[all …]
/third_party/gn/src/base/files/
Dfile_path.h2 // Use of this source code is governed by a BSD-style license that can be
5 // FilePath is a container for pathnames stored in a platform's native string
7 // platform's conventions for pathnames. It supports the following path
11 // --------------- ----------------------------------
13 // Encoding unspecified* UTF-16
15 // Drive letters no case-insensitive A-Z followed by :
19 // POSIX-compliant systems do specify an encoding. Mac OS X uses UTF-8.
20 // Chrome OS also uses UTF-8.
24 // For more arcane bits of path trivia, see below.
32 // POSIX-like platforms, OpenFile might wrap fopen, and on Windows, it might
[all …]
/third_party/python/Doc/library/
Dpathlib.rst2 :mod:`pathlib` --- Object-oriented filesystem paths
6 :synopsis: Object-oriented filesystem paths
12 .. index:: single: path; operations
14 --------------
17 appropriate for different operating systems. Path classes are divided
18 between :ref:`pure paths <pure-paths>`, which provide purely computational
19 operations without I/O, and :ref:`concrete paths <concrete-paths>`, which
22 .. image:: pathlib-inheritance.png
24 :class: invert-in-dark-mode
26 If you've never used this module before or just aren't sure which class is
[all …]
/third_party/python/Lib/
Dntpath.py1 # Module 'ntpath' -- common operations on WinNT/Win95 pathnames
5 module as os.path.
8 # strings representing various path-related bits and pieces
35 def _get_bothseps(path): argument
36 if isinstance(path, bytes):
43 # (this is done by normpath).
81 # Return whether a path is absolute.
83 # For Windows it is absolute if it starts with a slash or backslash (current
84 # volume), or if a pathname after the volume-letter-and-colon or UNC-resource
88 """Test whether a path is absolute"""
[all …]
Dposixpath.py4 this module as os.path. The "os.path" name is an alias for this
6 os.path provides the same operations in a manner specific to that
7 platform, and is an alias to another module (e.g. ntpath).
9 Some of this can actually be useful on non-Posix systems too, e.g.
13 # Strings representing various path-related bits and pieces.
41 def _get_sep(path): argument
42 if isinstance(path, bytes):
48 # On MS-DOS this may also turn slashes into backslashes; however, other
57 # Return whether a path is absolute.
58 # Trivial in Posix, harder on the Mac or MS-DOS.
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DFileSystem.h1 //===- llvm/Support/FileSystem.h - File System OS Concept -------*- C++ -*-===//
5 // This file is distributed under the University of Illinois Open Source
8 //===----------------------------------------------------------------------===//
10 // This file declares the llvm::sys::fs namespace. It is designed after
12 // path class.
15 // argument. The out argument is defined if and only if errc::success is
22 // return errc::not_enough_memory if there is not enough memory to complete the
25 //===----------------------------------------------------------------------===//
68 /// space_info - Self explanatory.
140 /// file_status - Represents the result of a call to stat and friends. It has
[all …]
/third_party/flatbuffers/tests/flatc/
Dflatc_test.py7 # http://www.apache.org/licenses/LICENSE-2.0
10 # distributed under the License is distributed on an "AS IS" BASIS,
18 from pathlib import Path
22 "--flatc", help="path of the Flat C compiler relative to the root directory"
27 # Get the path where this script is located so we can invoke the script from
29 script_path = Path(__file__).parent.resolve()
31 # Get the root path as an absolute path, so all derived paths are absolute.
32 root_path = script_path.parent.parent.absolute()
36 flatc_exe = Path(
42 # Find and assert flatc compiler is present.
[all …]
/third_party/flatbuffers/scripts/
Dutil.py7 # http://www.apache.org/licenses/LICENSE-2.0
10 # distributed under the License is distributed on an "AS IS" BASIS,
18 from pathlib import Path
22 "--flatc",
23 help="path of the Flat C compiler relative to the root directory",
25 parser.add_argument("--cpp-0x", action="store_true", help="use --cpp-std c++ox")
27 "--skip-monster-extra",
32 "--skip-gen-reflection",
38 # Get the path where this script is located so we can invoke the script from
40 script_path = Path(__file__).parent.resolve()
[all …]
Dcheck-grpc-generated-code.py9 # http://www.apache.org/licenses/LICENSE-2.0
12 # distributed under the License is distributed on an "AS IS" BASIS,
20 from pathlib import Path
22 # Get the path where this script is located so we can invoke the script from
24 script_path = Path(__file__).parent.resolve()
26 # Get the root path as an absolute path, so all derived paths are absolute.
27 root_path = script_path.parent.absolute()
32 result = subprocess.run(["git", "diff", "--quiet", "--ignore-cr-at-eol"], cwd=root_path)
44 subprocess.run(["git", "diff", "--binary", "--exit-code"], cwd=root_path)
Dcheck_generate_code.py9 # http://www.apache.org/licenses/LICENSE-2.0
12 # distributed under the License is distributed on an "AS IS" BASIS,
20 from pathlib import Path
22 # Get the path where this script is located so we can invoke the script from
24 script_path = Path(__file__).parent.resolve()
26 # Get the root path as an absolute path, so all derived paths are absolute.
27 root_path = script_path.parent.absolute()
29 result = subprocess.run(["git", "diff", "--quiet", "--ignore-cr-at-eol"], cwd=root_path)
36 "ERROR: * Perhaps there is a difference in the flags for the. *\n"
40 subprocess.run(["git", "diff", "--binary", "--exit-code"], cwd=root_path)
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DFileSystem.h1 //===- llvm/Support/FileSystem.h - File System OS Concept -------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file declares the llvm::sys::fs namespace. It is designed after
11 // path class.
14 // argument. The out argument is defined if and only if errc::success is
21 // return errc::not_enough_memory if there is not enough memory to complete the
24 //===----------------------------------------------------------------------===//
32 #include "llvm/Config/llvm-config.h"
57 // A Win32 HANDLE is a typedef of void*
[all …]
/third_party/libabigail/tests/
Dtest-utils.cc1 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2 // -*- Mode: C++ -*-
4 // Copyright (C) 2013-2023 Red Hat, Inc.
7 #include "test-utils.h"
16 /// Returns the absolute path to the source directory.
18 /// \return the absolute path tho the source directory.
30 /// Returns the absolute path to the build directory.
32 /// \return the absolute path the build directory.
52 /// failed, the exact command is displayed.
54 /// @param passed_count the number of passed tests. This is going to
[all …]
/third_party/curl/lib/
Dhttp1.c10 * This software is licensed as described in the file COPYING, which
15 * copies of the Software, and permit persons to whom the Software is
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * SPDX-License-Identifier: curl
33 #include "urlapi-int.h"
46 parser->max_line_len = max_line_len; in Curl_h1_req_parse_init()
47 Curl_dyn_init(&parser->scratch, max_line_len); in Curl_h1_req_parse_init()
53 Curl_http_req_free(parser->req); in Curl_h1_req_parse_free()
54 Curl_dyn_free(&parser->scratch); in Curl_h1_req_parse_free()
55 parser->req = NULL; in Curl_h1_req_parse_free()
[all …]
/third_party/flatbuffers/tests/annotated_binary/
Dgenerate_annotations.py9 # http://www.apache.org/licenses/LICENSE-2.0
12 # distributed under the License is distributed on an "AS IS" BASIS,
19 from pathlib import Path
21 # Get the path where this script is located so we can invoke the script from
23 script_path = Path(__file__).parent.resolve()
25 # Get the root path as an absolute path, so all derived paths are absolute.
26 root_path = script_path.parent.parent.absolute()
30 flatc_exe = Path(
34 # Find and assert flatc compiler is present.
37 flatc_path = Path(root_path, flatc_exe)
[all …]
/third_party/googletest/googletest/test/
Dgtest_test_utils.py18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32 # pylint: disable-msg=C6204
46 # pylint: enable-msg=C6204
50 # The environment variable for specifying the path to the premature-exit file.
59 if value is not None:
71 # _ParseAndStripGTestFlags() is called, maps a flag to its actual value.
72 _flag_map = {'source_dir': os.path.dirname(sys.argv[0]),
73 'build_dir': os.path.dirname(sys.argv[0])}
78 """Parses and strips Google Test flags from argv. This is idempotent."""
[all …]
/third_party/protobuf/third_party/googletest/googlemock/test/
Dgmock_test_utils.py18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
35 # Determines path to gtest_test_utils and imports it.
36 SCRIPT_DIR = os.path.dirname(__file__) or '.'
39 gtest_tests_util_dir = os.path.join(SCRIPT_DIR, '../../googletest/test')
40 if os.path.isdir(gtest_tests_util_dir):
43 GTEST_TESTS_UTIL_DIR = os.path.join(SCRIPT_DIR, '../../googletest/test')
44 sys.path.append(GTEST_TESTS_UTIL_DIR)
51 """Returns the absolute path of the directory where the .py files are."""
57 """Returns the absolute path of the test binary given its name.
[all …]
/third_party/python/Tools/wasm/
Dwasm_assets.py4 The WASM asset bundles are pre-loaded by the final WASM build. The bundle
7 - a stripped down, pyc-only stdlib zip file, e.g. {PREFIX}/lib/python311.zip
8 - os.py as marker module {PREFIX}/lib/python3.11/os.py
9 - empty lib-dynload directory, to make sure it is copied into the bundle {PREFIX}/lib/python3.11/li…
20 SRCDIR = pathlib.Path(__file__).parent.parent.parent.absolute()
32 WASM_DYNLOAD = WASM_STDLIB / "lib-dynload"
121 "_sysconfigdata__emscripten_wasm32-emscripten",
122 "_sysconfigdata__emscripten_wasm32-emscripten",
123 "_sysconfigdata__wasi_wasm32-wasi",
124 "_sysconfigdata__wasi_wasm64-wasi",
[all …]
/third_party/protobuf/third_party/googletest/googletest/test/
Dgtest_test_utils.py18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32 # pylint: disable-msg=C6204
52 # pylint: enable-msg=C6204
56 # The environment variable for specifying the path to the premature-exit file.
65 if value is not None:
77 # _ParseAndStripGTestFlags() is called, maps a flag to its actual value.
78 _flag_map = {'source_dir': os.path.dirname(sys.argv[0]),
79 'build_dir': os.path.dirname(sys.argv[0])}
84 """Parses and strips Google Test flags from argv. This is idempotent."""
[all …]
/third_party/protobuf/src/google/protobuf/io/
Dio_win32_unittest.cc1 // Protocol Buffers - Google's data interchange format
3 // https://developers.google.com/protocol-buffers/
19 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
35 // Unit tests for long-path-aware open/mkdir/access/etc. on Windows, as well as
38 // This file is only used on Windows, it's empty on other platforms.
69 // utf-8: 11010000 10011111, utf-16: 100 0001 1111 = 0x041F
71 // utf-8: 11010001 10000000, utf-16: 100 0100 0000 = 0x0440
73 // utf-8: 11010000 10111000, utf-16: 100 0011 1000 = 0x0438
75 // utf-8: 11010000 10110010, utf-16: 100 0011 0010 = 0x0432
[all …]

12345678910>>...41