Home
last modified time | relevance | path

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

1234567

/freebsd-10-stable/contrib/llvm/include/llvm/ADT/
DStringRef.h45 static const size_t npos = ~size_t(0); variable
237 return npos;
250 size_t rfind(char C, size_t From = npos) const {
258 return npos;
291 size_t find_last_of(char C, size_t From = npos) const {
299 size_t find_last_of(StringRef Chars, size_t From = npos) const;
303 size_t find_last_not_of(char C, size_t From = npos) const;
309 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
392 StringRef substr(size_t Start, size_t N = npos) const {
439 if (Idx == npos) in split()
[all …]
DSmallString.h166 size_t rfind(char C, size_t From = StringRef::npos) const {
208 size_t find_last_of(char C, size_t From = StringRef::npos) const {
217 StringRef Chars, size_t From = StringRef::npos) const {
249 StringRef substr(size_t Start, size_t N = StringRef::npos) const {
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Frontend/
DLayoutOverrideSource.cpp47 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-10-stable/contrib/libc++/include/experimental/
Dstring_view74 static constexpr size_type npos = size_type(-1);
123 constexpr basic_string_view substr(size_type pos = 0, size_type n = npos) const;
136 constexpr size_type rfind(basic_string_view s, size_type pos = npos) const noexcept;
137 constexpr size_type rfind(charT c, size_type pos = npos) const noexcept;
139 constexpr size_type rfind(const charT* s, size_type pos = npos) const;
144 constexpr size_type find_last_of(basic_string_view s, size_type pos = npos) const noexcept;
145 constexpr size_type find_last_of(charT c, size_type pos = npos) const noexcept;
147 constexpr size_type find_last_of(const charT* s, size_type pos = npos) const;
152 … constexpr size_type find_last_not_of(basic_string_view s, size_type pos = npos) const noexcept;
153 constexpr size_type find_last_not_of(charT c, size_type pos = npos) const noexcept;
[all …]
/freebsd-10-stable/contrib/atf/atf-c++/
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-10-stable/contrib/llvm/lib/Support/
DStringRef.cpp21 const size_t StringRef::npos; member in StringRef
146 return npos; in find()
153 return npos; in find()
157 return npos; in find()
176 return npos; in find()
186 return npos; in rfind()
192 return npos; in rfind()
208 return npos; in find_first_of()
217 return npos; in find_first_not_of()
233 return npos; in find_first_not_of()
[all …]
DPath.cpp96 if (pos == StringRef::npos) in filename_pos()
100 if (pos == StringRef::npos || in filename_pos()
120 return StringRef::npos; in root_dir_start()
134 return StringRef::npos; in root_dir_start()
151 return StringRef::npos; in parent_path_end()
421 if (end_pos == StringRef::npos) in parent_path()
429 if (end_pos != StringRef::npos) in remove_filename()
440 if (pos != StringRef::npos && pos >= filename_pos(p)) in replace_extension()
474 if (pos == StringRef::npos) in stem()
487 if (pos == StringRef::npos) in extension()
[all …]
DStringExtras.cpp25 return StringRef::npos; in StrInStrNoCase()
29 return StringRef::npos; in StrInStrNoCase()
/freebsd-10-stable/usr.bin/cut/
Dcut.c219 static size_t npos; in needpos() local
223 if (n > npos) { in needpos()
224 oldnpos = npos; in needpos()
225 if (npos == 0) in needpos()
226 npos = n; in needpos()
227 while (n > npos) in needpos()
228 npos *= 2; in needpos()
229 if ((positions = realloc(positions, npos)) == NULL) in needpos()
231 memset((char *)positions + oldnpos, 0, npos - oldnpos); in needpos()
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Target/
DCPPLanguageRuntime.cpp100 while ( (pos = target.find(pattern)) != std::string::npos ) in replace()
253 size_t pos = llvm::StringRef::npos) in ReverseFindMatchingChars()
256 left_pos = llvm::StringRef::npos; in ReverseFindMatchingChars()
260 if (pos == llvm::StringRef::npos || s[pos] == left_char) in ReverseFindMatchingChars()
267 if (pos == llvm::StringRef::npos) in ReverseFindMatchingChars()
309 size_t context_end = llvm::StringRef::npos; in Parse()
319 if (context_end == llvm::StringRef::npos) in Parse()
322 if (context_end == llvm::StringRef::npos) in Parse()
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Format/
DBreakableToken.cpp48 return BreakableToken::Split(StringRef::npos, 0); in getCommentSplit()
64 if (SpaceOffset == StringRef::npos || in getCommentSplit()
66 Text.find_last_not_of(Blanks, SpaceOffset) == StringRef::npos) { in getCommentSplit()
70 if (FirstNonWhitespace == StringRef::npos) in getCommentSplit()
72 return BreakableToken::Split(StringRef::npos, 0); in getCommentSplit()
76 if (SpaceOffset != StringRef::npos && SpaceOffset != 0) { in getCommentSplit()
82 return BreakableToken::Split(StringRef::npos, 0); in getCommentSplit()
92 return BreakableToken::Split(StringRef::npos, 0); in getStringSplit()
94 return BreakableToken::Split(StringRef::npos, 0); in getStringSplit()
135 return BreakableToken::Split(StringRef::npos, 0); in getStringSplit()
[all …]
/freebsd-10-stable/contrib/atf/atf-c++/detail/
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()
Dexceptions_test.cpp95 std::string::npos); in ATF_TEST_CASE_BODY()
129 ATF_REQUIRE(msg.find("The message") != std::string::npos); in ATF_TEST_CASE_BODY()
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Basic/
DObjCRuntime.cpp50 if (dash != StringRef::npos && dash + 1 != input.size() && in tryParse()
52 dash = StringRef::npos; in tryParse()
80 if (dash != StringRef::npos) { in tryParse()
/freebsd-10-stable/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp49 if (BName.find(Name) != StringRef::npos) in isCLibraryFunction()
81 if (FName.startswith("__inline") && (FName.find(Name) != StringRef::npos)) in isCLibraryFunction()
85 FName.find(Name) != StringRef::npos) in isCLibraryFunction()
/freebsd-10-stable/sys/nfs/
Dnfs_common.c176 caddr_t ptr, npos = NULL; in nfsm_disct() local
209 npos = mtod(mp2, caddr_t); in nfsm_disct()
225 npos = mtod(mp2, caddr_t); in nfsm_disct()
231 bcopy(*dposp, npos, mp2->m_len); in nfsm_disct()
232 mp2->m_data = npos; in nfsm_disct()
233 *dposp = npos; in nfsm_disct()
/freebsd-10-stable/contrib/llvm/utils/TableGen/
DX86RecognizableInstr.cpp257 IsSSE = (HasOpSizePrefix && (Name.find("16") == Name.npos)) || in RecognizableInstr()
258 (Name.find("CRC32") != Name.npos); in RecognizableInstr()
268 if (Predicates[i]->getName().find("32Bit") != Name.npos) { in RecognizableInstr()
272 if (Predicates[i]->getName().find("64Bit") != Name.npos) { in RecognizableInstr()
285 Rec->getName().find("MOV64") != Name.npos || in RecognizableInstr()
286 Rec->getName().find("PUSH64") != Name.npos || in RecognizableInstr()
287 Rec->getName().find("POP64") != Name.npos; in RecognizableInstr()
497 (IsCodeGenOnly && Name.find("_REV") == Name.npos && in filter()
498 Name.find("INC32") == Name.npos && Name.find("DEC32") == Name.npos)) in filter()
505 if (Name.find("_Int") != Name.npos || in filter()
[all …]
DCodeGenInstruction.cpp163 if (DotIdx != std::string::npos) { in ParseOperandName()
206 if (wpos == std::string::npos) in ParseConstraint()
221 assert(pos != std::string::npos && "Unrecognized constraint"); in ParseConstraint()
227 if (wpos == std::string::npos) in ParseConstraint()
234 if (wpos == std::string::npos) in ParseConstraint()
260 while (bidx != std::string::npos) { in ParseConstraints()
262 if (eidx == std::string::npos) in ParseConstraints()
/freebsd-10-stable/contrib/libstdc++/include/ext/
Dvstring.tcc46 __versa_string<_CharT, _Traits, _Alloc, _Base>::npos;
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()
[all …]
Dvstring.h78 static const size_type npos = static_cast<size_type>(-1); in _GLIBCXX_BEGIN_NAMESPACE() local
156 size_type __n = npos) in _GLIBCXX_BEGIN_NAMESPACE()
198 __s + npos, __a) { } in _GLIBCXX_BEGIN_NAMESPACE()
885 erase(size_type __pos = 0, size_type __n = npos) in _GLIBCXX_BEGIN_NAMESPACE()
1346 rfind(const __versa_string& __str, size_type __pos = npos) const in _GLIBCXX_BEGIN_NAMESPACE()
1374 rfind(const _CharT* __s, size_type __pos = npos) const in _GLIBCXX_BEGIN_NAMESPACE()
1391 rfind(_CharT __c, size_type __pos = npos) const; in _GLIBCXX_BEGIN_NAMESPACE()
1465 find_last_of(const __versa_string& __str, size_type __pos = npos) const in _GLIBCXX_BEGIN_NAMESPACE()
1493 find_last_of(const _CharT* __s, size_type __pos = npos) const in _GLIBCXX_BEGIN_NAMESPACE()
1512 find_last_of(_CharT __c, size_type __pos = npos) const in _GLIBCXX_BEGIN_NAMESPACE()
[all …]
/freebsd-10-stable/contrib/libstdc++/include/bits/
Dbasic_string.tcc64 _Rep::_S_max_size = (((npos - sizeof(_Rep_base))/sizeof(_CharT)) - 1) / 4;
73 basic_string<_CharT, _Traits, _Alloc>::npos; member in basic_string<_CharT, _Traits, _Alloc>
228 __s + npos, __a), __a) in basic_string()
726 return __pos <= __size ? __pos : npos; in find()
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()
[all …]
Dbasic_string.h272 static const size_type npos = static_cast<size_type>(-1); in _GLIBCXX_BEGIN_NAMESPACE()
443 size_type __n = npos); in _GLIBCXX_BEGIN_NAMESPACE()
1130 erase(size_type __pos = 0, size_type __n = npos) in _GLIBCXX_BEGIN_NAMESPACE()
1621 rfind(const basic_string& __str, size_type __pos = npos) const in _GLIBCXX_BEGIN_NAMESPACE()
1649 rfind(const _CharT* __s, size_type __pos = npos) const in _GLIBCXX_BEGIN_NAMESPACE()
1666 rfind(_CharT __c, size_type __pos = npos) const; in _GLIBCXX_BEGIN_NAMESPACE()
1740 find_last_of(const basic_string& __str, size_type __pos = npos) const in _GLIBCXX_BEGIN_NAMESPACE()
1768 find_last_of(const _CharT* __s, size_type __pos = npos) const in _GLIBCXX_BEGIN_NAMESPACE()
1787 find_last_of(_CharT __c, size_type __pos = npos) const in _GLIBCXX_BEGIN_NAMESPACE()
1860 find_last_not_of(const basic_string& __str, size_type __pos = npos) const in _GLIBCXX_BEGIN_NAMESPACE()
[all …]
/freebsd-10-stable/contrib/subversion/subversion/libsvn_delta/
Dsvndiff.c426 apr_size_t tpos = 0, npos = 0; in count_and_verify_instructions() local
464 if (op.length > new_len - npos) in count_and_verify_instructions()
469 npos += op.length; in count_and_verify_instructions()
478 if (npos != new_len) in count_and_verify_instructions()
514 apr_size_t npos; in decode_window() local
559 npos = 0; in decode_window()
568 op->offset = npos; in decode_window()
569 npos += op->length; in decode_window()
/freebsd-10-stable/contrib/libstdc++/include/debug/
Dstring74 using _Base::npos;
87 : _Base(__str, 0, _Base::npos, __str.get_allocator()), _Safe_base()
93 size_type __n = _Base::npos,
445 erase(size_type __pos = 0, size_type __n = _Base::npos)
625 rfind(const basic_string& __str, size_type __pos = _Base::npos) const
636 rfind(const _CharT* __s, size_type __pos = _Base::npos) const
643 rfind(_CharT __c, size_type __pos = _Base::npos) const
670 size_type __pos = _Base::npos) const
681 find_last_of(const _CharT* __s, size_type __pos = _Base::npos) const
688 find_last_of(_CharT __c, size_type __pos = _Base::npos) const
[all …]
/freebsd-10-stable/contrib/llvm/lib/MC/
DMCWin64EH.cpp233 if (dollar == StringRef::npos && dot == StringRef::npos) in GetSectionSuffix()
235 if (dot == StringRef::npos) in GetSectionSuffix()
237 if (dollar == StringRef::npos || dot < dollar) in GetSectionSuffix()

1234567