/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | StringRef.cpp | 22 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 D | StringRef.h | 52 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 D | SmallString.h | 153 [[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 D | check_test.cpp | 339 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 D | BreakableToken.cpp | 76 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 D | IntegerLiteralSeparatorFixer.cpp | 120 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 D | string_view | 87 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 D | list_tests_helpers.cpp | 90 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 D | cut.c | 218 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 D | operations.cpp | 98 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 D | templates.cpp | 459 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 D | UriParser.cpp | 33 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 D | StreamString.cpp | 43 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 D | text.cpp | 95 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 D | Markup.cpp | 118 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 D | DIPrinter.cpp | 54 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 D | atf_helpers.cpp | 65 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 D | formatter.cpp | 70 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 D | event.cc | 146 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 D | path.cpp | 71 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 D | ARMTargetParserCommon.cpp | 55 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 D | ObjCRuntime.cpp | 55 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 D | FuzzerIOPosix.cpp | 50 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 D | ScriptLexer.cpp | 45 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 D | DXContainerPSVInfo.cpp | 19 static constexpr size_t npos = StringRef::npos; variable 24 return npos; in FindSequence() 31 return npos; in FindSequence() 59 if (Idx == npos) { in ProcessElementList()
|