| /freebsd-12.1/contrib/llvm/tools/lldb/tools/lldb-mi/ |
| H A D | MIUtilString.cpp | 312 if (nPos == std::string::npos) in StripCREndOfLine() 352 if (nPos == std::string::npos) in FindAndReplace() 381 return nPos == std::string::npos; in IsNumber() 437 if (nPos != std::string::npos) in ExtractNumberFromHexadecimal() 504 if (nPos != std::string::npos) { in Trim() 603 if (nPos == std::string::npos) in RemoveRepeatedCharacters() 688 return std::string::npos; in FindFirst() 697 return std::string::npos; in FindFirst() 724 return std::string::npos; in FindFirstNot() 745 if ((nBckSlashPos == std::string::npos) || (nQuotePos == std::string::npos)) in FindFirstQuote() [all …]
|
| H A D | MICmdArgValString.cpp | 253 const bool bHavePosSlash = (vrTxt.find('/') != std::string::npos); in IsStringArgSingleText() 254 const bool bHaveBckSlash = (vrTxt.find('\\') != std::string::npos); in IsStringArgSingleText() 299 if (nPos == std::string::npos) in IsStringArgQuotedText() 319 if (nPos2 == std::string::npos) in IsStringArgQuotedText() 348 if (nPos == std::string::npos) in IsStringArgQuotedTextEmbedded() 358 if (nPos2 == std::string::npos) in IsStringArgQuotedTextEmbedded() 386 if (nPos == std::string::npos) in IsStringArgQuotedQuotedTextEmbedded() 390 if (nPos2 == std::string::npos) in IsStringArgQuotedQuotedTextEmbedded()
|
| H A D | MICmdArgValFile.cpp | 121 if (nPos != std::string::npos) in GetFileNamePath() 139 const bool bHavePosSlash = (vrFileNamePath.find('/') != std::string::npos); in IsFilePath() 140 const bool bHaveBckSlash = (vrFileNamePath.find('\\') != std::string::npos); in IsFilePath() 180 if (s_strSpecialCharacters.find(c) == CMIUtilString::npos) in IsValidChars()
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | StringRef.cpp | 179 return npos; in find() 190 return npos; in find_lower() 201 return npos; in rfind_lower() 217 return npos; in rfind() 229 return npos; in rfind_lower() 245 return npos; in find_first_of() 254 return npos; in find_first_not_of() 270 return npos; in find_first_not_of() 286 return npos; in find_last_of() 295 return npos; in find_last_not_of() [all …]
|
| H A D | FileCheck.cpp | 93 if (End == StringRef::npos) { in ParsePattern() 304 return StringRef::npos; in Match() 310 return StringRef::npos; in Match() 328 return StringRef::npos; in Match() 442 size_t Best = StringRef::npos; in PrintFuzzyMatch() 521 return StringRef::npos; in FindRegexVarEnd() 1023 return StringRef::npos; in Check() 1044 return StringRef::npos; in Check() 1068 return StringRef::npos; in Check() 1077 return StringRef::npos; in Check() [all …]
|
| /freebsd-12.1/sys/contrib/zstd/contrib/gen_html/ |
| H A D | gen_html.cpp | 24 if (string::npos != p) in trim() 53 if (!terminator.empty() && epos!=string::npos) { in get_lines() 71 if (spos!=string::npos) { in print_line() 118 if (line.substr(0,7) == "typedef" && line.find("{")!=string::npos) { in main() 129 …if ((line.find("/**<")!=string::npos || line.find("/*!<")!=string::npos) && line.find("*/")!=strin… in main() 137 if (spos==string::npos) { in main() 139 if (spos==string::npos) in main() 141 if (spos==string::npos) in main() 143 if (spos==string::npos) in main() 145 if (spos==string::npos) in main()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/ |
| H A D | LayoutOverrideSource.cpp | 47 if (LineStr.find("*** Dumping AST Record Layout") != StringRef::npos) { in LayoutOverrideSource() 62 if ((Pos = LineStr.find("struct ")) != StringRef::npos) in LayoutOverrideSource() 64 else if ((Pos = LineStr.find("class ")) != StringRef::npos) in LayoutOverrideSource() 66 else if ((Pos = LineStr.find("union ")) != StringRef::npos) in LayoutOverrideSource() 79 if (Pos != StringRef::npos) { in LayoutOverrideSource() 91 if (Pos != StringRef::npos) { in LayoutOverrideSource() 103 if (Pos != StringRef::npos) { in LayoutOverrideSource() 113 if (Pos != StringRef::npos) { in LayoutOverrideSource() 128 if (Pos == StringRef::npos) in LayoutOverrideSource()
|
| /freebsd-12.1/contrib/libc++/include/ |
| H A D | string_view | 72 static constexpr size_type npos = size_type(-1); 397 return __str_find<value_type, size_type, traits_type, npos> 404 return __str_find<value_type, size_type, traits_type, npos> 412 return __str_find<value_type, size_type, traits_type, npos> 420 return __str_find<value_type, size_type, traits_type, npos> 429 return __str_rfind<value_type, size_type, traits_type, npos> 434 size_type rfind(_CharT __c, size_type __pos = npos) const _NOEXCEPT 436 return __str_rfind<value_type, size_type, traits_type, npos> 444 return __str_rfind<value_type, size_type, traits_type, npos> 449 size_type rfind(const _CharT* __s, size_type __pos=npos) const [all …]
|
| H A D | string | 93 static const size_type npos = -1; 225 basic_string& erase(size_type pos = 0, size_type n = npos); 312 size_type pos2, size_type n2=npos) const; // C++14 788 static const size_type npos = -1; 3338 return __str_find<value_type, size_type, traits_type, npos> 3348 return __str_find<value_type, size_type, traits_type, npos> 3363 return __str_find<value_type, size_type, traits_type, npos> 3374 return __str_find<value_type, size_type, traits_type, npos> 3383 return __str_find<value_type, size_type, traits_type, npos> 3721 if (__pos1 > __sz || __n2 == npos) [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/ADT/ |
| H A D | StringRef.h | 51 static const size_t npos = ~size_t(0); 305 return npos; 328 return npos; 360 size_t rfind(char C, size_t From = npos) const { 368 return npos; 376 size_t rfind_lower(char C, size_t From = npos) const; 421 size_t find_last_of(char C, size_t From = npos) const { 461 return find_lower(Other) != npos; in contains_lower() 598 StringRef substr(size_t Start, size_t N = npos) const { 744 if (Idx == npos) in split() [all …]
|
| H A D | SmallString.h | 163 size_t rfind(char C, size_t From = StringRef::npos) const { 205 size_t find_last_of(char C, size_t From = StringRef::npos) const { 214 StringRef Chars, size_t From = StringRef::npos) const { 246 StringRef substr(size_t Start, size_t N = StringRef::npos) const {
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Format/ |
| H A D | BreakableToken.cpp | 94 while (SpaceOffset != StringRef::npos) { in getCommentSplit() 109 if (SpaceOffset == StringRef::npos || in getCommentSplit() 276 return Split(StringRef::npos, 0); in getSplit() 471 if (EndOfPreviousLine == StringRef::npos) in adjustWhitespace() 477 if (StartOfLine == StringRef::npos) in adjustWhitespace() 591 return Split(StringRef::npos, 0); in getReflowSplit() 600 return Split(StringRef::npos, 0); in getReflowSplit() 642 if (BreakLength != StringRef::npos) in adaptStartOfLine() 693 return Split(StringRef::npos, 0); in getSplitAfterLastLine() 770 if (EndOfLine == StringRef::npos) in BreakableLineCommentSection() [all …]
|
| /freebsd-12.1/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() 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() 351 ATF_REQUIRE(err1.find("/stderr") != std::string::npos); in ATF_TEST_CASE_BODY() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Utility/ |
| H A D | UriParser.cpp | 29 if (pos == std::string::npos) in Parse() 36 if (path_pos != std::string::npos) in Parse() 43 ((path_pos != std::string::npos) ? path_pos : uri.size()) - host_pos); in Parse() 49 if (pos == std::string::npos) in Parse()
|
| /freebsd-12.1/usr.bin/cut/ |
| H A D | cut.c | 227 static size_t npos; in needpos() local 231 if (n > npos) { in needpos() 232 oldnpos = npos; in needpos() 233 if (npos == 0) in needpos() 234 npos = n; in needpos() 235 while (n > npos) in needpos() 236 npos *= 2; in needpos() 237 if ((positions = realloc(positions, npos)) == NULL) in needpos() 239 memset((char *)positions + oldnpos, 0, npos - oldnpos); in needpos()
|
| /freebsd-12.1/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-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | ObjCARCAnalysisUtils.h | 237 if (Section.find("__message_refs") != StringRef::npos || in IsObjCIdentifiedObject() 238 Section.find("__objc_classrefs") != StringRef::npos || in IsObjCIdentifiedObject() 239 Section.find("__objc_superrefs") != StringRef::npos || in IsObjCIdentifiedObject() 240 Section.find("__objc_methname") != StringRef::npos || in IsObjCIdentifiedObject() 241 Section.find("__cstring") != StringRef::npos) in IsObjCIdentifiedObject()
|
| /freebsd-12.1/lib/libdevdctl/ |
| H A D | event.cc | 149 if (find_start == string::npos) { in IsDiskDev() 360 if (end == string::npos) in ParseEventString() 367 if (end == string::npos) in ParseEventString() 389 if (end == string::npos) in ParseEventString() 399 if (start == string::npos) in ParseEventString() 414 if (end == string::npos) in ParseEventString() 430 if (eventString.find("timestamp=") == string::npos) { in TimestampEventString() 461 if (start == string::npos) { in IsWholeDev()
|
| /freebsd-12.1/contrib/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIOPosix.cpp | 51 if (Pos == std::string::npos) return Path; in Basename() 129 if (FileName.find("compiler-rt/lib/") != std::string::npos) in IsInterestingCoverageFile() 131 if (FileName.find("/usr/lib/") != std::string::npos) in IsInterestingCoverageFile() 133 if (FileName.find("/usr/include/") != std::string::npos) in IsInterestingCoverageFile()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/ |
| H A D | ObjCRuntime.cpp | 56 if (dash != StringRef::npos && dash + 1 != input.size() && in tryParse() 58 dash = StringRef::npos; in tryParse() 88 if (dash != StringRef::npos) { in tryParse()
|
| /freebsd-12.1/contrib/llvm/tools/lld/ELF/ |
| H A D | ScriptLexer.cpp | 49 if (Pos != StringRef::npos) in getLine() 104 if (E == StringRef::npos) { in tokenize() 147 if (E == StringRef::npos) { in skipSpace() 156 if (E == StringRef::npos) in skipSpace() 186 if (E == StringRef::npos) { in tokenizeExpr()
|
| /freebsd-12.1/contrib/libstdc++/include/ext/ |
| H A D | vstring.tcc | 278 return __pos <= __size ? __pos : npos; in find() 288 return npos; in find() 297 size_type __ret = npos; in find() 329 return npos; in rfind() 347 return npos; in rfind() 364 return npos; in find_first_of() 386 return npos; in find_last_of() 399 return npos; in find_first_not_of() 411 return npos; in find_first_not_of() 433 return npos; in find_last_not_of() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch/ |
| H A D | ARM.cpp | 456 if (ArchName.find_lower("armv8a") != StringRef::npos || in getARMTargetFeatures() 457 ArchName.find_lower("armv8.1a") != StringRef::npos || in getARMTargetFeatures() 458 ArchName.find_lower("armv8.2a") != StringRef::npos || in getARMTargetFeatures() 459 ArchName.find_lower("armv8.3a") != StringRef::npos || in getARMTargetFeatures() 460 ArchName.find_lower("armv8.4a") != StringRef::npos) { in getARMTargetFeatures() 461 if (ArchName.find_lower("+crypto") != StringRef::npos) { in getARMTargetFeatures() 462 if (ArchName.find_lower("+nosha2") == StringRef::npos) in getARMTargetFeatures() 464 if (ArchName.find_lower("+noaes") == StringRef::npos) in getARMTargetFeatures() 466 } else if (ArchName.find_lower("-crypto") != StringRef::npos) { in getARMTargetFeatures() 467 if (ArchName.find_lower("+sha2") == StringRef::npos) in getARMTargetFeatures() [all …]
|
| /freebsd-12.1/contrib/libstdc++/include/bits/ |
| H A D | basic_string.tcc | 228 __s + npos, __a), __a) in basic_string() 736 return npos; in find() 744 size_type __ret = npos; in find() 775 return npos; in rfind() 792 return npos; in rfind() 807 return npos; in find_first_of() 828 return npos; in find_last_of() 840 return npos; in find_first_not_of() 851 return npos; in find_first_not_of() 872 return npos; in find_last_not_of() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerContext.cpp | 55 if (BName.find(Name) != StringRef::npos) in isCLibraryFunction() 83 if (FName.startswith("__inline") && (FName.find(Name) != StringRef::npos)) in isCLibraryFunction() 87 FName.find(Name) != StringRef::npos) in isCLibraryFunction()
|