Home
last modified time | relevance | path

Searched refs:npos (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DStringRef.cpp22 constexpr size_t StringRef::npos; member in StringRef
132 return npos; in find()
142 return npos; in find()
145 return Ptr == nullptr ? npos : Ptr - Data; in find()
159 return npos; in find()
169 return npos; in find()
188 return npos; in find()
199 return npos; in find_insensitive()
210 return npos; in rfind_insensitive()
224 return npos; in rfind_insensitive()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DStringRef.h52 static constexpr size_t npos = ~size_t(0);
304 return npos;
332 [[nodiscard]] size_t rfind(char C, size_t From = npos) const {
339 return npos;
346 [[nodiscard]] size_t rfind_insensitive(char C, size_t From = npos) const;
385 [[nodiscard]] size_t find_last_of(char C, size_t From = npos) const {
394 size_t From = npos) const;
398 [[nodiscard]] size_t find_last_not_of(char C, size_t From = npos) const;
405 size_t From = npos) const;
410 return find(Other) != npos; in contains()
[all …]
H A DSmallString.h153 [[nodiscard]] size_t rfind(char C, size_t From = StringRef::npos) const {
195 size_t From = StringRef::npos) const {
204 size_t From = StringRef::npos) const {
233 size_t N = StringRef::npos) const {
/freebsd/contrib/atf/atf-c++/
H A Dcheck_test.cpp339 ATF_REQUIRE(out1.find("check.XXXXXX") == std::string::npos); in ATF_TEST_CASE_BODY()
340 ATF_REQUIRE(out2.find("check.XXXXXX") == std::string::npos); in ATF_TEST_CASE_BODY()
341 ATF_REQUIRE(err1.find("check.XXXXXX") == std::string::npos); in ATF_TEST_CASE_BODY()
342 ATF_REQUIRE(err2.find("check.XXXXXX") == std::string::npos); in ATF_TEST_CASE_BODY()
344 ATF_REQUIRE(out1.find("/check") != std::string::npos); in ATF_TEST_CASE_BODY()
345 ATF_REQUIRE(out2.find("/check") != std::string::npos); in ATF_TEST_CASE_BODY()
346 ATF_REQUIRE(err1.find("/check") != std::string::npos); in ATF_TEST_CASE_BODY()
347 ATF_REQUIRE(err2.find("/check") != std::string::npos); in ATF_TEST_CASE_BODY()
349 ATF_REQUIRE(out1.find("/stdout") != std::string::npos); in ATF_TEST_CASE_BODY()
350 ATF_REQUIRE(out2.find("/stdout") != std::string::npos); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Format/
H A DBreakableToken.cpp76 return BreakableToken::Split(StringRef::npos, 0); in getCommentSplit()
97 if (SpaceOffset != StringRef::npos && SpaceOffset + 1 < Text.size() && in getCommentSplit()
107 while (SpaceOffset != StringRef::npos) { in getCommentSplit()
116 if (LastNonBlank != StringRef::npos && Text[LastNonBlank] == '\\') { in getCommentSplit()
139 if (SpaceOffset == StringRef::npos || in getCommentSplit()
141 Text.find_last_not_of(Blanks, SpaceOffset) == StringRef::npos) { in getCommentSplit()
145 if (FirstNonWhitespace == StringRef::npos) { in getCommentSplit()
147 return BreakableToken::Split(StringRef::npos, 0); in getCommentSplit()
152 if (SpaceOffset != StringRef::npos && SpaceOffset != 0) { in getCommentSplit()
158 return BreakableToken::Split(StringRef::npos, 0); in getCommentSplit()
[all …]
H A DIntegerLiteralSeparatorFixer.cpp120 Pos != StringRef::npos) { in process()
125 if ((IsBase10 && Text.find_last_of(".eEfFdDmM") != StringRef::npos) || in process()
126 (IsBase16 && Text.find_last_of(".pP") != StringRef::npos)) { in process()
131 if (End == StringRef::npos) in process()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dstring_view87 static constexpr size_type npos = size_type(-1);
132 constexpr basic_string_view substr(size_type pos = 0, size_type n = npos) const;
145 constexpr size_type rfind(basic_string_view s, size_type pos = npos) const noexcept;
146 constexpr size_type rfind(charT c, size_type pos = npos) const noexcept;
148 …constexpr size_type rfind(const charT* s, size_type pos = npos) const noexcept; // noexcept as an …
153 constexpr size_type find_last_of(basic_string_view s, size_type pos = npos) const noexcept;
154 constexpr size_type find_last_of(charT c, size_type pos = npos) const noexcept;
156 …constexpr size_type find_last_of(const charT* s, size_type pos = npos) const noexcept; // noexcept…
161 … constexpr size_type find_last_not_of(basic_string_view s, size_type pos = npos) const noexcept;
162 constexpr size_type find_last_not_of(charT c, size_type pos = npos) const noexcept;
[all …]
/freebsd/contrib/kyua/drivers/
H A Dlist_tests_helpers.cpp90 if (enabled.find("config_in_head") != std::string::npos) in ATF_INIT_TEST_CASES()
92 if (enabled.find("crash_list") != std::string::npos) in ATF_INIT_TEST_CASES()
94 if (enabled.find("no_properties") != std::string::npos) in ATF_INIT_TEST_CASES()
96 if (enabled.find("some_properties") != std::string::npos) in ATF_INIT_TEST_CASES()
/freebsd/usr.bin/cut/
H A Dcut.c218 static size_t npos; in needpos() local
222 if (n > npos) { in needpos()
223 oldnpos = npos; in needpos()
224 if (npos == 0) in needpos()
225 npos = n; in needpos()
226 while (n > npos) in needpos()
227 npos *= 2; in needpos()
228 if ((positions = realloc(positions, npos)) == NULL) in needpos()
230 memset((char *)positions + oldnpos, 0, npos - oldnpos); in needpos()
/freebsd/contrib/kyua/utils/text/
H A Doperations.cpp98 while (last_pos != std::string::npos) { in quote()
137 if (pos == std::string::npos || pos < start + 1) { in refill()
139 if (width == std::string::npos) in refill()
148 INV(width != std::string::npos); in refill()
194 while ((pos = input.find(search, lastpos)) != std::string::npos) { in replace_all()
219 while (pos != std::string::npos) { in split()
H A Dtemplates.cpp459 while (last_pos != std::string::npos) { in evaluate()
462 if (open_pos == std::string::npos) { in evaluate()
464 last_pos = std::string::npos; in evaluate()
468 if (close_pos == std::string::npos) { in evaluate()
470 last_pos = std::string::npos; in evaluate()
701 if (paren_open == std::string::npos) { in evaluate()
706 if (paren_close == std::string::npos) in evaluate()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DUriParser.cpp33 if (pos == std::string::npos) in Parse()
40 if (path_pos != std::string::npos) in Parse()
47 ((path_pos != std::string::npos) ? path_pos : uri.size()) - host_pos); in Parse()
53 if (pos == std::string::npos) in Parse()
H A DStreamString.cpp43 if (last_line_begin_pos == std::string::npos) { in GetSizeOfLastLine()
56 if (last_line_begin_pos == std::string::npos) { in FillLastLineToColumn()
/freebsd/contrib/atf/atf-c++/detail/
H A Dtext.cpp95 while (pos < str.length() && newpos != std::string::npos) { in split()
111 if (pos1 == std::string::npos && pos2 == std::string::npos) in trim()
113 else if (pos1 == std::string::npos) in trim()
115 else if (pos2 == std::string::npos) in trim()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DMarkup.cpp118 if (BeginPos == StringRef::npos) in parseElement()
121 if (EndPos == StringRef::npos) in parseElement()
175 if (BeginPos == StringRef::npos) in parseMultiLineBegin()
182 if (EndPos != StringRef::npos) in parseMultiLineBegin()
187 if (EndTagPos == StringRef::npos) in parseMultiLineBegin()
199 if (EndPos == StringRef::npos) in parseMultiLineEnd()
H A DDIPrinter.cpp54 size_t FirstLinePos = StringRef::npos, Pos = 0; in pruneSource()
59 if (Pos == StringRef::npos) in pruneSource()
62 if (FirstLinePos == StringRef::npos) in pruneSource()
64 return Source->substr(FirstLinePos, (Pos == StringRef::npos) in pruneSource()
65 ? StringRef::npos in pruneSource()
92 Pos, (PosEnd == StringRef::npos) ? StringRef::npos : (PosEnd - Pos)); in format()
101 if (PosEnd == StringRef::npos) in format()
/freebsd/contrib/kyua/bootstrap/
H A Datf_helpers.cpp65 if (enabled.find("fails") != std::string::npos) in ATF_INIT_TEST_CASES()
67 if (enabled.find("passes") != std::string::npos) in ATF_INIT_TEST_CASES()
69 if (enabled.find("skips") != std::string::npos) in ATF_INIT_TEST_CASES()
/freebsd/contrib/kyua/utils/format/
H A Dformatter.cpp70 while (begin != std::string::npos && expansion[begin + 1] == '%') in find_next_placeholder()
72 if (begin == std::string::npos) in find_next_placeholder()
82 placeholder.find('%', 1) != std::string::npos) in find_next_placeholder()
141 if (dot != std::string::npos) { in new_ostringstream()
168 while (pos != std::string::npos) { in strip_double_percent()
/freebsd/lib/libdevdctl/
H A Devent.cc146 if (find_start == string::npos) { in IsDiskDev()
362 if (end == string::npos) in ParseEventString()
369 if (end == string::npos) in ParseEventString()
391 if (end == string::npos) in ParseEventString()
401 if (start == string::npos) in ParseEventString()
416 if (end == string::npos) in ParseEventString()
432 if (eventString.find(" timestamp=") == string::npos) { in TimestampEventString()
463 if (start == string::npos) { in IsWholeDev()
/freebsd/contrib/kyua/utils/fs/
H A Dpath.cpp71 if (next_pos == std::string::npos) in normalize()
75 } while (pos != std::string::npos); in normalize()
125 if (end_pos == std::string::npos) in branch_path()
142 if (beg_pos == std::string::npos) in leaf_name()
/freebsd/contrib/llvm-project/llvm/lib/TargetParser/
H A DARMTargetParserCommon.cpp55 size_t offset = StringRef::npos; in getCanonicalArchName()
82 if (offset != StringRef::npos && A.substr(offset, 2) == "eb") in getCanonicalArchName()
88 if (offset != StringRef::npos) in getCanonicalArchName()
96 if (offset != StringRef::npos) { in getCanonicalArchName()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DObjCRuntime.cpp55 if (dash != StringRef::npos && dash + 1 != input.size() && in tryParse()
57 dash = StringRef::npos; in tryParse()
87 if (dash != StringRef::npos) { in tryParse()
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerIOPosix.cpp50 if (Pos == std::string::npos) return Path; in Basename()
149 if (FileName.find("compiler-rt/lib/") != std::string::npos) in IsInterestingCoverageFile()
151 if (FileName.find("/usr/lib/") != std::string::npos) in IsInterestingCoverageFile()
153 if (FileName.find("/usr/include/") != std::string::npos) in IsInterestingCoverageFile()
/freebsd/contrib/llvm-project/lld/ELF/
H A DScriptLexer.cpp45 if (pos != StringRef::npos) in getLine()
120 if (e == StringRef::npos) { in tokenize()
167 if (e == StringRef::npos) { in skipSpace()
176 if (e == StringRef::npos) in skipSpace()
206 if (e == StringRef::npos) { in tokenizeExpr()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DDXContainerPSVInfo.cpp19 static constexpr size_t npos = StringRef::npos; variable
24 return npos; in FindSequence()
31 return npos; in FindSequence()
59 if (Idx == npos) { in ProcessElementList()

12345678910>>...13