Home
last modified time | relevance | path

Searched +full:remove +full:- +full:trailing +full:- +full:separator (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/external/ktfmt/core/src/main/java/com/facebook/ktfmt/kdoc/
DKDocFormatter.kt8 * http://www.apache.org/licenses/LICENSE-2.0
49 options.maxLineWidth - firstIndentSize - commentType.singleLineOverhead(), in reformatComment()
58 options.maxLineWidth - indentSize - commentType.singleLineOverhead(), in reformatComment()
77 // Remove trailing spaces which can happen when we have a paragraph in reformatComment()
78 // separator in reformatComment()
85 // Remove trailing spaces which can happen when we have an empty line in a in reformatComment()
92 val lineWithoutIndent = options.maxLineWidth - commentType.lineOverhead() in reformatComment()
95 min(options.maxCommentWidth, lineWithoutIndent - indentSize) - quoteAdjustment in reformatComment()
97 if (sb.indexOf('\n') == -1) { in reformatComment()
98 min(options.maxCommentWidth, lineWithoutIndent - firstIndentSize) - quoteAdjustment in reformatComment()
[all …]
/external/python/cpython3/Objects/clinic/
Dbytearrayobject.c.h12 int return_value = -1; in bytearray___init__()
18 Py_ssize_t noptargs = nargs + (kwargs ? PyDict_GET_SIZE(kwargs) : 0) - 0; in bytearray___init__()
23 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 3… in bytearray___init__()
32 if (!--noptargs) { in bytearray___init__()
50 if (!--noptargs) { in bytearray___init__()
76 "--\n"
78 "Remove all items from the bytearray.");
94 "--\n"
112 "--\n"
152 "--\n"
[all …]
/external/skia/tests/
DOSPathTest.cpp4 * Use of this source code is governed by a BSD-style license that can be
22 * end with SkOSPath::SEPARATOR.
24 * contain SkOSPath::SEPARATOR.
28 // If filename contains SkOSPath::SEPARATOR, the tests will fail. in test_dir_with_file()
29 SkASSERT(!filename.contains(SkOSPath::SEPARATOR)); in test_dir_with_file()
33 // fullName should be "dir<SkOSPath::SEPARATOR>file" in test_dir_with_file()
37 // dir did not include the final path separator. in test_dir_with_file()
39 if (!dir.endsWith(SkOSPath::SEPARATOR) && !dir.isEmpty()) { in test_dir_with_file()
50 // dirname should be the same as dir with any trailing seperators removed. in test_dir_with_file()
53 while (strippedDir.size() > 2 && strippedDir[strippedDir.size() - 1] == SkOSPath::SEPARATOR) { in test_dir_with_file()
[all …]
/external/dokka/core/src/main/kotlin/Utilities/
DUri.kt7 // Normalize paths to remove . and .. segments in <lambda>()
16 // Discard trailing segment of base path in <lambda>()
22 …val commonPartsSize = bParts.zip(cParts).takeWhile { (basePart, childPart) -> basePart == childPar… in <lambda>()
23 bParts.drop(commonPartsSize).joinTo(this, separator = "") { "../" } in <lambda>()
24 cParts.drop(commonPartsSize).joinTo(this, separator = "/") in <lambda>()
/external/cronet/third_party/libc++/src/test/std/input.output/filesystems/class.path/path.member/path.gen/
Dlexically_normal.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: availability-filesystem-missing
29 // clang-format off in main()
70 ///===---------------------------------------------------------------===// in main()
72 ///===---------------------------------------------------------------===// in main()
75 // p2: Replace each slash character in the root-name with a preferred in main()
76 // separator. in main()
78 // p3: Replace each directory-separator with a preferred-separator. in main()
[all …]
/external/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/
Dlexically_normal.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
31 // clang-format off in main()
65 ///===---------------------------------------------------------------===// in main()
67 ///===---------------------------------------------------------------===// in main()
70 // p2: Replace each slash character in the root-name with a preferred in main()
71 // separator. in main()
73 // p3: Replace each directory-separator with a preferred-separator. in main()
75 // directory-separator as one or more slashes and preferred-separators. in main()
87 // p4: Remove each dot filename and any immediately following directory in main()
[all …]
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/
DStringWrapper.java7 * http://www.apache.org/licenses/LICENSE-2.0
94 // formatting, so check that the pretty-printed AST is the same before and after reformatting. in wrap()
103 + "https://github.com/google/google-java-format/issues/new" in wrap()
115 String separator = Newlines.guessLineSeparator(input); in getReflowReplacements() local
137 while (Newlines.hasNewlineAt(input, lineEnd) == -1) { in getReflowReplacements()
140 if (lineMap.getColumnNumber(lineEnd) - 1 <= columnLimit) { in getReflowReplacements()
162 // Zero-indexed start column in getReflowReplacements()
163 int startColumn = lineMap.getColumnNumber(getStartPosition(flat.get(0))) - 1; in getReflowReplacements()
165 // Handling leaving trailing non-string tokens at the end of the literal, in getReflowReplacements()
166 // e.g. the trailing `);` in `foo("...");`. in getReflowReplacements()
[all …]
/external/python/cpython2/Lib/
Dstring.py6 a built-in module called strop, but strop is now obsolete itself.
10 whitespace -- a string containing all characters considered whitespace
11 lowercase -- a string containing all characters considered lowercase letters
12 uppercase -- a string containing all characters considered uppercase letters
13 letters -- a string containing all characters considered letters
14 digits -- a string containing all characters considered decimal digits
15 hexdigits -- a string containing all characters considered hexadecimal digits
16 octdigits -- a string containing all characters considered octal digits
17 punctuation -- a string containing all characters considered punctuation
18 printable -- a string containing all characters considered printable
[all …]
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/
DNewlines.java7 * http://www.apache.org/licenses/LICENSE-2.0
23 /** Platform-independent newline handling. */
28 return Iterators.size(lineOffsetIterator(input)) - 1; in count()
31 /** Returns the index of the first break in the input, or {@code -1}. */
35 return it.hasNext() ? it.next() : -1; in firstBreak()
45 /** Returns the length of the newline sequence at the current offset, or {@code -1}. */
52 return -1; in hasNewlineAt()
69 * Returns the first line separator in the text, or {@code "\n"} if the text does not contain a
70 * single line separator.
100 /** Returns an iterator over lines in the input, including trailing whitespace. */
[all …]
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerIOWindows.cpp1 //===- FuzzerIOWindows.cpp - IO utils for Windows. ------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 //===----------------------------------------------------------------------===//
149 V->push_back(FileName); in ListFilesInDirRecursive()
267 return Pos - Offset; in ParseFileName()
270 // Parse a directory ending in separator, like: `SomeDir\`
281 ++Pos; // Include separator. in ParseDir()
282 return Pos - Offset; in ParseDir()
296 return Pos - Offset; in ParseServerAndShare()
[all …]
/external/pdfium/third_party/googletest/custom/gtest/internal/custom/
Dgtest_port_wrapper.cc2 // Use of this source code is governed by a BSD-style license that can be
5 // TODO(crbug.com/1009553): Remove this wrapper after finding a way to plumb a
8 // This wrapper lets us compile gtest-port.cc without its stream redirection
20 // This breaks gtest-death-test.cc, which assumes the existence of
25 #include "third_party/googletest/src/googletest/src/gtest-port.cc"
37 // testing::TempDir() should return a directory with a path separator. in CapturedStream()
39 // implementations with and without a trailing path separator. in CapturedStream()
51 GTEST_CHECK_(captured_fd != -1) in CapturedStream()
58 // string's length. This results in well-defined behavior in C++17. in CapturedStream()
64 GTEST_CHECK_(captured_fd != -1) in CapturedStream()
[all …]
/external/cronet/third_party/googletest/custom/gtest/internal/custom/
Dgtest_port_wrapper.cc2 // Use of this source code is governed by a BSD-style license that can be
5 // TODO(crbug.com/1009553): Remove this wrapper after finding a way to plumb a
8 // This wrapper lets us compile gtest-port.cc without its stream redirection
20 // This breaks gtest-death-test.cc, which assumes the existence of
25 #include "third_party/googletest/src/googletest/src/gtest-port.cc"
37 // testing::TempDir() should return a directory with a path separator. in CapturedStream()
39 // implementations with and without a trailing path separator. in CapturedStream()
51 GTEST_CHECK_(captured_fd != -1) in CapturedStream()
58 // string's length. This results in well-defined behavior in C++17. in CapturedStream()
64 GTEST_CHECK_(captured_fd != -1) in CapturedStream()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/src/
Dgtest-filepath.cc30 #include "gtest/internal/gtest-filepath.h"
33 #include "gtest/internal/gtest-port.h"
34 #include "gtest/gtest-message.h"
46 #include "gtest/internal/gtest-string.h"
62 // On Windows, '\\' is the standard path separator, but many tools and the
63 // Windows API also accept '/' as an alternate path separator. Unless otherwise
84 // Returns whether the given character is a valid path separator.
116 // Returns a copy of the FilePath with the case-insensitive extension removed.
118 // FilePath("dir/file"). If a case-insensitive extension is not
124 0, pathname_.length() - dot_extension.length())); in RemoveExtension()
[all …]
/external/cronet/third_party/googletest/src/googletest/src/
Dgtest-filepath.cc30 #include "gtest/internal/gtest-filepath.h"
34 #include "gtest/gtest-message.h"
35 #include "gtest/internal/gtest-port.h"
48 #include "gtest/internal/gtest-string.h"
64 // On Windows, '\\' is the standard path separator, but many tools and the
65 // Windows API also accept '/' as an alternate path separator. Unless otherwise
86 // Returns whether the given character is a valid path separator.
119 // Returns a copy of the FilePath with the case-insensitive extension removed.
121 // FilePath("dir/file"). If a case-insensitive extension is not
127 pathname_.substr(0, pathname_.length() - dot_extension.length())); in RemoveExtension()
[all …]
/external/libvpx/third_party/googletest/src/src/
Dgtest-filepath.cc30 #include "gtest/internal/gtest-filepath.h"
34 #include "gtest/gtest-message.h"
35 #include "gtest/internal/gtest-port.h"
48 #include "gtest/internal/gtest-string.h"
64 // On Windows, '\\' is the standard path separator, but many tools and the
65 // Windows API also accept '/' as an alternate path separator. Unless otherwise
86 // Returns whether the given character is a valid path separator.
119 // Returns a copy of the FilePath with the case-insensitive extension removed.
121 // FilePath("dir/file"). If a case-insensitive extension is not
127 pathname_.substr(0, pathname_.length() - dot_extension.length())); in RemoveExtension()
[all …]
/external/libaom/third_party/googletest/src/googletest/src/
Dgtest-filepath.cc30 #include "gtest/internal/gtest-filepath.h"
34 #include "gtest/gtest-message.h"
35 #include "gtest/internal/gtest-port.h"
48 #include "gtest/internal/gtest-string.h"
64 // On Windows, '\\' is the standard path separator, but many tools and the
65 // Windows API also accept '/' as an alternate path separator. Unless otherwise
86 // Returns whether the given character is a valid path separator.
119 // Returns a copy of the FilePath with the case-insensitive extension removed.
121 // FilePath("dir/file"). If a case-insensitive extension is not
127 pathname_.substr(0, pathname_.length() - dot_extension.length())); in RemoveExtension()
[all …]
/external/apache-commons-io/src/main/java/org/apache/commons/io/
DFilenameUtils.java9 * http://www.apache.org/licenses/LICENSE-2.0
55 * <li>the prefix - C:\</li>
56 * <li>the path - dev\project\</li>
57 * <li>the full path - C:\dev\project\</li>
58 * <li>the name - file.txt</li>
59 * <li>the base name - file</li>
60 * <li>the extension - txt</li>
63 * Note that this class works best if directory file names end with a separator.
64 * If you omit the last separator, it is impossible to determine if the file name
74 * a\b\c.txt --&gt; "" --&gt; relative
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DPath.h1 //===- llvm/Support/Path.h - Path Operating System Concept ------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 // TR2/boost filesystem (v3), but modified to remove exception handling and the
13 //===----------------------------------------------------------------------===//
37 /// * The root-name element, if present.
38 /// * The root-directory element, if present.
40 /// * Dot, if one or more trailing non-root slash characters are present.
70 ptrdiff_t operator-(const const_iterator &RHS) const;
95 ptrdiff_t operator-(const reverse_iterator &RHS) const;
[all …]
/external/llvm/utils/unittest/googletest/src/
Dgtest-filepath.cc32 #include "gtest/internal/gtest-filepath.h"
33 #include "gtest/internal/gtest-port.h"
60 #include "gtest/internal/gtest-string.h"
66 // On Windows, '\\' is the standard path separator, but many tools and the
67 // Windows API also accept '/' as an alternate path separator. Unless otherwise
88 // Returns whether the given character is a valid path separator.
112 // Returns a copy of the FilePath with the case-insensitive extension removed.
114 // FilePath("dir/file"). If a case-insensitive extension is not
119 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension()
124 // Returns a pointer to the last occurrence of a valid path separator in
[all …]
/external/mesa3d/src/gtest/src/
Dgtest-filepath.cc30 #include "gtest/internal/gtest-filepath.h"
34 #include "gtest/gtest-message.h"
35 #include "gtest/internal/gtest-port.h"
48 #include "gtest/internal/gtest-string.h"
66 // On Windows, '\\' is the standard path separator, but many tools and the
67 // Windows API also accept '/' as an alternate path separator. Unless otherwise
88 // Returns whether the given character is a valid path separator.
121 // Returns a copy of the FilePath with the case-insensitive extension removed.
123 // FilePath("dir/file"). If a case-insensitive extension is not
129 pathname_.substr(0, pathname_.length() - dot_extension.length())); in RemoveExtension()
[all …]
/external/googletest/googletest/src/
Dgtest-filepath.cc30 #include "gtest/internal/gtest-filepath.h"
37 #include "gtest/gtest-message.h"
38 #include "gtest/internal/gtest-port.h"
51 #include "gtest/internal/gtest-string.h"
69 // On Windows, '\\' is the standard path separator, but many tools and the
70 // Windows API also accept '/' as an alternate path separator. Unless otherwise
91 // Returns whether the given character is a valid path separator.
126 // Returns a copy of the FilePath with the case-insensitive extension removed.
128 // FilePath("dir/file"). If a case-insensitive extension is not
134 pathname_.substr(0, pathname_.length() - dot_extension.length())); in RemoveExtension()
[all …]
/external/cronet/third_party/boringssl/src/third_party/googletest/googletest/src/
Dgtest-filepath.cc30 #include "gtest/internal/gtest-filepath.h"
37 #include "gtest/gtest-message.h"
38 #include "gtest/internal/gtest-port.h"
51 #include "gtest/internal/gtest-string.h"
69 // On Windows, '\\' is the standard path separator, but many tools and the
70 // Windows API also accept '/' as an alternate path separator. Unless otherwise
91 // Returns whether the given character is a valid path separator.
126 // Returns a copy of the FilePath with the case-insensitive extension removed.
128 // FilePath("dir/file"). If a case-insensitive extension is not
134 pathname_.substr(0, pathname_.length() - dot_extension.length())); in RemoveExtension()
[all …]
/external/webrtc/test/testsupport/
Dfile_utils.cc4 * Use of this source code is governed by a BSD-style license
78 path.remove_suffix(1); // Remove trailing separator. in DirName()
118 if (fd == -1) { in TempFilename()
142 // Append separator character if needed. in ReadDirectory()
164 // Append separator character if needed. in ReadDirectory()
176 const std::string& name = dirent->d_name; in ReadDirectory()
195 "Path %s exists but is not a directory! Remove this " in CreateDir()
196 "file and re-run to create the directory.\n", in CreateDir()
/external/libchrome/base/files/
Dfile_path.h2 // Use of this source code is governed by a BSD-style license that can be
11 // --------------- ----------------------------------
13 // Encoding unspecified* UTF-16
14 // Separator / \, tolerant of /
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.
32 // POSIX-like platforms, OpenFile might wrap fopen, and on Windows, it might
36 // has an impact on correctness on platforms that do not have well-defined
45 // platform-specific pathname conventions, and do not consult the filesystem
[all …]
/external/cronet/third_party/boringssl/src/third_party/googletest/googletest/test/
Dgoogletest-filepath-test.cc35 // This file is #included from gtest-internal.h.
41 #include "gtest/internal/gtest-filepath.h"
42 #include "src/gtest-internal-inl.h"
56 // Windows CE doesn't have the remove C function.
57 int remove(const char* path) { in remove() function
59 int ret = DeleteFile(wpath) ? 0 : -1; in remove()
68 int ret = RemoveDirectory(wpath) ? 0 : -1; in _rmdir()
110 // RemoveDirectoryName "" -> ""
115 // RemoveDirectoryName "afile" -> "afile"
120 // RemoveDirectoryName "/afile" -> "afile"
[all …]

12345678910>>...22