Searched refs:npos (Results 1 - 25 of 298) sorted by relevance

1234567891011>>

/freebsd-current/contrib/kyua/bootstrap/
H A Datf_helpers.cpp65 if (enabled.find("fails") != std::string::npos)
67 if (enabled.find("passes") != std::string::npos)
69 if (enabled.find("skips") != std::string::npos)
/freebsd-current/contrib/kyua/drivers/
H A Dlist_tests_helpers.cpp90 if (enabled.find("config_in_head") != std::string::npos)
92 if (enabled.find("crash_list") != std::string::npos)
94 if (enabled.find("no_properties") != std::string::npos)
96 if (enabled.find("some_properties") != std::string::npos)
/freebsd-current/contrib/llvm-project/lldb/source/Utility/
H A DUriParser.cpp33 if (pos == std::string::npos)
40 if (path_pos != std::string::npos)
47 ((path_pos != std::string::npos) ? path_pos : uri.size()) - host_pos);
53 if (pos == std::string::npos)
H A DStreamString.cpp43 if (last_line_begin_pos == std::string::npos) {
56 if (last_line_begin_pos == std::string::npos) {
/freebsd-current/contrib/llvm-project/clang/lib/Frontend/
H A DLayoutOverrideSource.cpp74 if ((Pos = LineStr.find("struct ")) != StringRef::npos)
76 else if ((Pos = LineStr.find("class ")) != StringRef::npos)
78 else if ((Pos = LineStr.find("union ")) != StringRef::npos)
91 if (Pos != StringRef::npos) {
103 if (Pos != StringRef::npos) {
116 if (Pos != StringRef::npos) {
126 if (Pos != StringRef::npos) {
141 if (Pos != StringRef::npos) {
156 if (Pos != StringRef::npos) {
172 if (Pos != StringRef::npos) {
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Basic/
H A DObjCRuntime.cpp55 if (dash != StringRef::npos && dash + 1 != input.size() &&
57 dash = StringRef::npos;
87 if (dash != StringRef::npos) {
/freebsd-current/contrib/llvm-project/llvm/lib/IR/
H A DPassInstrumentation.cpp36 if (Pos != StringRef::npos)
/freebsd-current/contrib/llvm-project/llvm/lib/Support/
H A DStringRef.cpp22 constexpr size_t StringRef::npos;
128 /// \return - The index of the first occurrence of \arg Str, or npos if not
132 return npos;
142 return npos;
145 return Ptr == nullptr ? npos : Ptr - Data;
159 return npos;
169 return npos;
188 return npos;
199 return npos;
210 return npos;
[all...]
H A DStringExtras.cpp22 /// the offset of s2 in s1 or npos if s2 cannot be found.
26 return StringRef::npos;
30 return StringRef::npos;
/freebsd-current/contrib/llvm-project/lldb/source/Host/common/
H A DZipFileResolver.cpp33 if (pos == std::string::npos)
37 if (pos == std::string::npos) {
/freebsd-current/contrib/atf/atf-c++/detail/
H A Dtext.cpp95 while (pos < str.length() && newpos != std::string::npos) {
111 if (pos1 == std::string::npos && pos2 == std::string::npos)
113 else if (pos1 == std::string::npos)
115 else if (pos2 == std::string::npos)
H A Dexceptions_test.cpp95 std::string::npos);
129 ATF_REQUIRE(msg.find("The message") != std::string::npos);
/freebsd-current/contrib/llvm-project/llvm/include/llvm/ADT/
H A DStringRef.h52 static constexpr size_t npos = ~size_t(0); member in class:llvm::StringRef
291 /// \returns The index of the first occurrence of \p C, or npos if not
299 /// \returns The index of the first occurrence of \p C, or npos if not
306 /// \p From, or npos if not found.
315 return npos;
321 /// from \p From, or npos if not found.
329 /// \returns The index of the first occurrence of \p Str, or npos if not
335 /// \returns The index of the first occurrence of \p Str, or npos if not
341 /// \returns The index of the last occurrence of \p C, or npos if not
343 [[nodiscard]] size_t rfind(char C, size_t From = npos) cons
[all...]
/freebsd-current/usr.bin/cut/
H A Dcut.c218 static size_t npos; local
222 if (n > npos) {
223 oldnpos = npos;
224 if (npos == 0)
225 npos = n;
226 while (n > npos)
227 npos *= 2;
228 if ((positions = realloc(positions, npos)) == NULL)
230 memset((char *)positions + oldnpos, 0, npos - oldnpos);
/freebsd-current/contrib/atf/atf-c++/
H A Dcheck_test.cpp339 ATF_REQUIRE(out1.find("check.XXXXXX") == std::string::npos);
340 ATF_REQUIRE(out2.find("check.XXXXXX") == std::string::npos);
341 ATF_REQUIRE(err1.find("check.XXXXXX") == std::string::npos);
342 ATF_REQUIRE(err2.find("check.XXXXXX") == std::string::npos);
344 ATF_REQUIRE(out1.find("/check") != std::string::npos);
345 ATF_REQUIRE(out2.find("/check") != std::string::npos);
346 ATF_REQUIRE(err1.find("/check") != std::string::npos);
347 ATF_REQUIRE(err2.find("/check") != std::string::npos);
349 ATF_REQUIRE(out1.find("/stdout") != std::string::npos);
350 ATF_REQUIRE(out2.find("/stdout") != std::string::npos);
[all...]
/freebsd-current/contrib/kyua/utils/fs/
H A Dpath.cpp71 if (next_pos == std::string::npos)
75 } while (pos != std::string::npos);
125 if (end_pos == std::string::npos)
142 if (beg_pos == std::string::npos)
/freebsd-current/bin/pax/
H A Dtables.h163 off_t npos; /* position in file where this dir name starts */ member in struct:dirdata
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/
H A DTypeName.h53 assert(AnglePos != StringRef::npos && "Unable to find the closing '>'!");
/freebsd-current/contrib/llvm-project/llvm/lib/TargetParser/
H A DARMTargetParserCommon.cpp55 size_t offset = StringRef::npos;
82 if (offset != StringRef::npos && A.substr(offset, 2) == "eb")
88 if (offset != StringRef::npos)
96 if (offset != StringRef::npos) {
/freebsd-current/contrib/llvm-project/clang/lib/Format/
H A DMatchFilePath.cpp55 const bool NoMoreSeparatorsInFilePath = K == StringRef::npos;
81 K != StringRef::npos && Pattern[K] == ']' && K > I + 1) {
H A DBreakableToken.cpp76 return BreakableToken::Split(StringRef::npos, 0);
97 if (SpaceOffset != StringRef::npos && SpaceOffset + 1 < Text.size() &&
107 while (SpaceOffset != StringRef::npos) {
116 if (LastNonBlank != StringRef::npos && Text[LastNonBlank] == '\\') {
139 if (SpaceOffset == StringRef::npos ||
141 Text.find_last_not_of(Blanks, SpaceOffset) == StringRef::npos) {
145 if (FirstNonWhitespace == StringRef::npos) {
147 return BreakableToken::Split(StringRef::npos, 0);
152 if (SpaceOffset != StringRef::npos && SpaceOffset != 0) {
158 return BreakableToken::Split(StringRef::npos,
[all...]
/freebsd-current/contrib/llvm-project/clang/include/clang/Basic/
H A DJsonSupport.h39 if (Pos == std::string::npos)
58 if (Pos == std::string::npos)
/freebsd-current/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DMarkup.cpp118 if (BeginPos == StringRef::npos)
121 if (EndPos == StringRef::npos)
175 if (BeginPos == StringRef::npos)
182 if (EndPos != StringRef::npos)
187 if (EndTagPos == StringRef::npos)
199 if (EndPos == StringRef::npos)
/freebsd-current/contrib/kyua/utils/format/
H A Dformatter.cpp70 while (begin != std::string::npos && expansion[begin + 1] == '%')
72 if (begin == std::string::npos)
82 placeholder.find('%', 1) != std::string::npos)
141 if (dot != std::string::npos) {
168 while (pos != std::string::npos) {
/freebsd-current/contrib/llvm-project/lld/ELF/
H A DScriptLexer.cpp50 if (pos != StringRef::npos)
125 if (e == StringRef::npos) {
172 if (e == StringRef::npos) {
181 if (e == StringRef::npos)
211 if (e == StringRef::npos) {

Completed in 241 milliseconds

1234567891011>>