Home
last modified time | relevance | path

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

12345678910>>...41

/third_party/rust/rust/library/std/src/sys/windows/
Dpath.rs4 use crate::path::{Path, PathBuf, Prefix};
15 pub fn is_sep_byte(b: u8) -> bool {
20 pub fn is_verbatim_sep(b: u8) -> bool {
24 pub fn is_verbatim(path: &[u16]) -> bool {
25 path.starts_with(utf16!(r"\\?\")) || path.starts_with(utf16!(r"\??\"))
28 /// Returns true if `path` looks like a lone filename.
29 pub(crate) fn is_file_name(path: &OsStr) -> bool {
30 !path.as_os_str_bytes().iter().copied().any(is_sep_byte)
32 pub(crate) fn has_trailing_slash(path: &OsStr) -> bool {
33 let is_verbatim = path.as_os_str_bytes().starts_with(br"\\?\");
[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 …]
/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/rust/rust/src/tools/rust-analyzer/crates/paths/src/
Dlib.rs1 //! Thin wrappers around `std::path`, distinguishing between absolute and
10 path::{Component, Path, PathBuf},
13 /// Wrapper around an absolute [`PathBuf`].
18 fn from(AbsPathBuf(path_buf): AbsPathBuf) -> PathBuf { in from()
25 fn deref(&self) -> &AbsPath { in deref()
30 impl AsRef<Path> for AbsPathBuf {
31 fn as_ref(&self) -> &Path { in as_ref() argument
37 fn as_ref(&self) -> &AbsPath { in as_ref()
43 fn borrow(&self) -> &AbsPath { in borrow()
50 fn try_from(path_buf: PathBuf) -> Result<AbsPathBuf, PathBuf> { in try_from()
[all …]
/third_party/rust/rust/tests/run-make/remap-path-prefix-dwarf/
DMakefile1 # This test makes sure that --remap-path-prefix has the expected effects on paths in debuginfo.
4 # ignore-windows
19 # The compiler is called with an *ABSOLUTE PATH* as input, and that absolute path *is* within
20 # the working directory of the compiler. We are remapping the path that contains `src`.
22 # We explicitly switch to a directory that *is* a prefix of the directory our
23 # source code is contained in.
24 …R) && $(RUSTC) $(SRC_DIR)/src/quux.rs -o "$(TMPDIR)/abs_input_inside_working_dir.rlib" -Cdebuginfo…
25 # We expect the path to the main source file to be remapped.
26 …"$(LLVM_BIN_DIR)"/llvm-dwarfdump $(TMPDIR)/abs_input_inside_working_dir.rlib | $(CGREP) "REMAPPED/…
28 …"$(LLVM_BIN_DIR)"/llvm-dwarfdump $(TMPDIR)/abs_input_inside_working_dir.rlib | $(CGREP) -v "REMAPP…
[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/rust/rust/src/tools/miri/src/shims/
Dos_str.rs3 use std::path::{Path, PathBuf};
15 /// Represent how path separator conversion should be done.
22 pub fn bytes_to_os_str<'tcx>(bytes: &[u8]) -> InterpResult<'tcx, &OsStr> { in bytes_to_os_str()
26 pub fn bytes_to_os_str<'tcx>(bytes: &[u8]) -> InterpResult<'tcx, &OsStr> { in bytes_to_os_str()
29 .map_err(|_| err_unsup_format!("{:?} is not a valid utf-8 string", bytes))?; in bytes_to_os_str()
35 /// Helper function to read an OsString from a null-terminated sequence of bytes, which is what
40 ) -> InterpResult<'tcx, &'a OsStr> in read_os_str_from_c_str()
50 /// Helper function to read an OsString from a 0x0000-terminated sequence of u16,
51 /// which is what the Windows APIs usually handle.
55 ) -> InterpResult<'tcx, OsString> in read_os_str_from_wide_str()
[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/skia/m133/modules/svg/src/
DSkSVGRect.cpp4 * Use of this source code is governed by a BSD-style license that can be
30 // 1. If both rx and ry have a computed value of auto (since auto is the initial value for both in ResolveOptionalRadii()
32 // author-supplied values are invalid), then the used value of both rx and ry is 0. in ResolveOptionalRadii()
34 // 2. Otherwise, convert specified values to absolute values as follows: in ResolveOptionalRadii()
35 // 1. If rx is set to a length value or a percentage, but ry is auto, calculate an absolute in ResolveOptionalRadii()
37 // rectangle; the absolute value for ry is the same. in ResolveOptionalRadii()
38 // 2. If ry is set to a length value or a percentage, but rx is auto, calculate the absolute in ResolveOptionalRadii()
40 // rectangle; the absolute value for rx is the same. in ResolveOptionalRadii()
41 // 3. If both rx and ry were set to lengths or percentages, absolute values are generated in ResolveOptionalRadii()
59 this->setX(SkSVGAttributeParser::parse<SkSVGLength>("x", n, v)) || in parseAndSetAttribute()
[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)
/third_party/grpc/src/csharp/Grpc.Tools.Tests/scripts/
Dfakeprotoc.py8 # http://www.apache.org/licenses/LICENSE-2.0
11 # distributed under the License is distributed on an "AS IS" BASIS,
17 # unit tests. Its purpose is to be called from the Grpc.Tools
20 # - parses the command line arguments
21 # - generates expected dependencies file
22 # - generates dummy .cs files that are expected by the tests
23 # - writes a JSON results file containing the arguments passed in
25 # Configuration is done via environment variables as it is not possible
29 # FAKEPROTOC_PROJECTDIR - project directory
30 # FAKEPROTOC_OUTDIR - output directory for generated files and output file
[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
36 def _get_bothseps(path): argument
37 if isinstance(path, bytes):
44 # (this is done by normpath).
82 # Return whether a path is absolute.
84 # For Windows it is absolute if it starts with a slash or backslash (current
85 # volume), or if a pathname after the volume-letter-and-colon or UNC-resource
89 """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/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/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/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/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/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/rust/rust/src/doc/unstable-book/src/compiler-flags/
Dremap-cwd-prefix.md1 # `remap-cwd-prefix`
3 The tracking issue for this feature is: [#87325](https://github.com/rust-lang/rust/issues/87325).
5 ------------------------
7 This flag will rewrite absolute paths under the current working directory,
10 The given value may be absolute or relative, or empty. This switch takes
11 precedence over `--remap-path-prefix` in case they would both match a given
12 path.
21 # This would produce an absolute path to main.rs in build outputs of
23 rustc -Z remap-cwd-prefix=. main.rs

12345678910>>...41