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

1234567891011

/freebsd-11-stable/contrib/llvm-project/lldb/source/Utility/
H A DUriParser.cpp26 if (pos == std::string::npos)
33 if (path_pos != std::string::npos)
40 ((path_pos != std::string::npos) ? path_pos : uri.size()) - host_pos);
46 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-11-stable/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) {
H A DVersion.cpp49 if (Start != StringRef::npos)
67 if (Start != StringRef::npos)
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/
H A DLayoutOverrideSource.cpp46 if (LineStr.find("*** Dumping AST Record Layout") != StringRef::npos) {
61 if ((Pos = LineStr.find("struct ")) != StringRef::npos)
63 else if ((Pos = LineStr.find("class ")) != StringRef::npos)
65 else if ((Pos = LineStr.find("union ")) != StringRef::npos)
78 if (Pos != StringRef::npos) {
90 if (Pos != StringRef::npos) {
102 if (Pos != StringRef::npos) {
112 if (Pos != StringRef::npos) {
127 if (Pos == StringRef::npos)
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DStringRef.cpp22 const size_t StringRef::npos; member in class:StringRef
131 /// \return - The index of the first occurrence of \arg Str, or npos if not
135 return npos;
145 return npos;
148 return Ptr == nullptr ? npos : Ptr - Data;
160 return npos;
179 return npos;
190 return npos;
201 return npos;
206 /// \return - The index of the last occurrence of \arg Str, or npos i
[all...]
H A DStringExtras.cpp20 /// the offset of s2 in s1 or npos if s2 cannot be found.
24 return StringRef::npos;
28 return StringRef::npos;
/freebsd-11-stable/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-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DStringRef.h56 static const size_t npos = ~size_t(0); member in class:llvm::StringRef
303 /// \returns The index of the first occurrence of \p C, or npos if not
313 return npos;
318 /// \returns The index of the first occurrence of \p C, or npos if not
326 /// \p From, or npos if not found.
335 return npos;
341 /// from \p From, or npos if not found.
349 /// \returns The index of the first occurrence of \p Str, or npos if not
356 /// \returns The index of the first occurrence of \p Str, or npos if not
363 /// \returns The index of the last occurrence of \p C, or npos i
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Format/
H A DBreakableToken.cpp74 return BreakableToken::Split(StringRef::npos, 0);
92 while (SpaceOffset != StringRef::npos) {
107 if (SpaceOffset == StringRef::npos ||
109 Text.find_last_not_of(Blanks, SpaceOffset) == StringRef::npos) {
113 if (FirstNonWhitespace == StringRef::npos)
115 return BreakableToken::Split(StringRef::npos, 0);
119 if (SpaceOffset != StringRef::npos && SpaceOffset != 0) {
125 return BreakableToken::Split(StringRef::npos, 0);
134 return BreakableToken::Split(StringRef::npos, 0);
142 return BreakableToken::Split(StringRef::npos,
[all...]
/freebsd-11-stable/usr.bin/cut/
H A Dcut.c219 static size_t npos; local
223 if (n > npos) {
224 oldnpos = npos;
225 if (npos == 0)
226 npos = n;
227 while (n > npos)
228 npos *= 2;
229 if ((positions = realloc(positions, npos)) == NULL)
231 memset((char *)positions + oldnpos, 0, npos - oldnpos);
/freebsd-11-stable/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-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp54 if (BName.find(Name) != StringRef::npos)
82 if (FName.startswith("__inline") && (FName.find(Name) != StringRef::npos))
86 FName.find(Name) != StringRef::npos)
/freebsd-11-stable/bin/pax/
H A Dtables.h164 off_t npos; /* position in file where this dir name starts */ member in struct:dirdata
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DTypeName.h53 assert(AnglePos != StringRef::npos && "Unable to find the closing '>'!");
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/
H A DJsonSupport.h38 if (Pos == std::string::npos)
57 if (Pos == std::string::npos)
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DObjCARCAnalysisUtils.h236 if (Section.find("__message_refs") != StringRef::npos ||
237 Section.find("__objc_classrefs") != StringRef::npos ||
238 Section.find("__objc_superrefs") != StringRef::npos ||
239 Section.find("__objc_methname") != StringRef::npos ||
240 Section.find("__cstring") != StringRef::npos)
/freebsd-11-stable/contrib/llvm-project/lld/ELF/
H A DScriptLexer.cpp48 if (pos != StringRef::npos)
105 if (e == StringRef::npos) {
148 if (e == StringRef::npos) {
157 if (e == StringRef::npos)
187 if (e == StringRef::npos) {
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerCommand.h86 return Arg.compare(0, std::string::npos, Other, 0, Arg.length()) == 0;
97 return Arg.compare(0, std::string::npos, Other, 0, Arg.length()) == 0;
117 return Arg.compare(0, std::string::npos, Other, 0, Arg.length()) == 0;
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DStringView.h28 static const size_t npos = ~size_t(0); member in class:StringView
51 return npos;
/freebsd-11-stable/lib/libdevdctl/
H A Devent.cc149 if (find_start == string::npos) {
360 if (end == string::npos)
367 if (end == string::npos)
389 if (end == string::npos)
399 if (start == string::npos)
414 if (end == string::npos)
430 if (eventString.find(" timestamp=") == string::npos) {
461 if (start == string::npos) {
/freebsd-11-stable/contrib/llvm-project/llvm/lib/MC/
H A DMCSectionWasm.cpp27 "ABCDEFGHIJKLMNOPQRSTUVWXYZ") == Name.npos) {
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/
H A DReplacementsYaml.h40 while (lineBreakPos != std::string::npos) {
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DStringToOffsetTable.h84 assert(AggregateString.find(')') == std::string::npos &&

Completed in 287 milliseconds

1234567891011