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

12345

/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Basic/
H A DObjCRuntime.cpp50 if (dash != StringRef::npos && dash + 1 != input.size() &&
52 dash = StringRef::npos;
80 if (dash != StringRef::npos) {
H A DVersion.cpp50 if (Start != StringRef::npos)
68 if (Start != StringRef::npos)
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp49 if (BName.find(Name) != StringRef::npos)
81 if (FName.startswith("__inline") && (FName.find(Name) != StringRef::npos))
85 FName.find(Name) != StringRef::npos)
/freebsd-9.3-release/contrib/llvm/include/llvm/ADT/
H A DStringRef.h45 static const size_t npos = ~size_t(0); member in class:llvm::StringRef
231 /// \returns The index of the first occurrence of \p C, or npos if not
237 return npos;
242 /// \returns The index of the first occurrence of \p Str, or npos if not
248 /// \returns The index of the last occurrence of \p C, or npos if not
250 size_t rfind(char C, size_t From = npos) const {
258 return npos;
263 /// \returns The index of the last occurrence of \p Str, or npos if not
267 /// Find the first character in the string that is \p C, or npos if not
273 /// Find the first character in the string that is in \p Chars, or npos i
[all...]
H A DSmallString.h148 /// \return - The index of the first occurrence of \p C, or npos if not
156 /// \returns The index of the first occurrence of \p Str, or npos if not
164 /// \returns The index of the last occurrence of \p C, or npos if not
166 size_t rfind(char C, size_t From = StringRef::npos) const {
172 /// \returns The index of the last occurrence of \p Str, or npos if not
178 /// Find the first character in the string that is \p C, or npos if not
184 /// Find the first character in the string that is in \p Chars, or npos if
192 /// Find the first character in the string that is not \p C or npos if not
199 /// \p Chars, or npos if not found.
206 /// Find the last character in the string that is \p C, or npos i
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Frontend/
H A DLayoutOverrideSource.cpp47 if (LineStr.find("*** Dumping AST Record Layout") != StringRef::npos) {
62 if ((Pos = LineStr.find("struct ")) != StringRef::npos)
64 else if ((Pos = LineStr.find("class ")) != StringRef::npos)
66 else if ((Pos = LineStr.find("union ")) != StringRef::npos)
79 if (Pos != StringRef::npos) {
91 if (Pos != StringRef::npos) {
103 if (Pos != StringRef::npos) {
113 if (Pos != StringRef::npos) {
128 if (Pos == StringRef::npos)
H A DTextDiagnosticBuffer.cpp49 if (Pos == StringRef::npos)
/freebsd-9.3-release/contrib/llvm/lib/Support/
H A DStringExtras.cpp21 /// the offset of s2 in s1 or npos if s2 cannot be found.
25 return StringRef::npos;
29 return StringRef::npos;
H A DStringRef.cpp21 const size_t StringRef::npos; member in class:StringRef
141 /// \return - The index of the first occurrence of \arg Str, or npos if not
146 return npos;
153 return npos;
157 return npos;
176 return npos;
181 /// \return - The index of the last occurrence of \arg Str, or npos if not
186 return npos;
192 return npos;
196 /// Chars, or npos i
[all...]
H A DPath.cpp96 if (pos == StringRef::npos)
100 if (pos == StringRef::npos ||
120 return StringRef::npos;
134 return StringRef::npos;
151 return StringRef::npos;
421 if (end_pos == StringRef::npos)
429 if (end_pos != StringRef::npos)
440 if (pos != StringRef::npos && pos >= filename_pos(p))
474 if (pos == StringRef::npos)
487 if (pos == StringRef::npos)
[all...]
/freebsd-9.3-release/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-9.3-release/bin/pax/
H A Dtables.h164 off_t npos; /* position in file where this dir name starts */ member in struct:dirdata
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Format/
H A DBreakableToken.cpp48 return BreakableToken::Split(StringRef::npos, 0);
64 if (SpaceOffset == StringRef::npos ||
66 Text.find_last_not_of(Blanks, SpaceOffset) == StringRef::npos) {
70 if (FirstNonWhitespace == StringRef::npos)
72 return BreakableToken::Split(StringRef::npos, 0);
76 if (SpaceOffset != StringRef::npos && SpaceOffset != 0) {
82 return BreakableToken::Split(StringRef::npos, 0);
92 return BreakableToken::Split(StringRef::npos, 0);
94 return BreakableToken::Split(StringRef::npos, 0);
135 return BreakableToken::Split(StringRef::npos,
[all...]
H A DEncoding.h82 if (TabPos == StringRef::npos)
/freebsd-9.3-release/contrib/llvm/utils/TableGen/
H A DX86RecognizableInstr.cpp257 IsSSE = (HasOpSizePrefix && (Name.find("16") == Name.npos)) ||
258 (Name.find("CRC32") != Name.npos);
268 if (Predicates[i]->getName().find("32Bit") != Name.npos) {
272 if (Predicates[i]->getName().find("64Bit") != Name.npos) {
285 Rec->getName().find("MOV64") != Name.npos ||
286 Rec->getName().find("PUSH64") != Name.npos ||
287 Rec->getName().find("POP64") != Name.npos;
497 (IsCodeGenOnly && Name.find("_REV") == Name.npos &&
498 Name.find("INC32") == Name.npos && Name.find("DEC32") == Name.npos))
[all...]
H A DAsmWriterInst.cpp69 if (DollarPos == std::string::npos) DollarPos = AsmString.size();
124 != std::string::npos) {
H A DCodeGenInstruction.cpp163 if (DotIdx != std::string::npos) {
206 if (wpos == std::string::npos)
221 assert(pos != std::string::npos && "Unrecognized constraint");
227 if (wpos == std::string::npos)
234 if (wpos == std::string::npos)
260 while (bidx != std::string::npos) {
262 if (eidx == std::string::npos)
/freebsd-9.3-release/sys/nfs/
H A Dnfs_common.c176 caddr_t ptr, npos = NULL; local
209 npos = mtod(mp2, caddr_t);
225 npos = mtod(mp2, caddr_t);
231 bcopy(*dposp, npos, mp2->m_len);
232 mp2->m_data = npos;
233 *dposp = npos;
/freebsd-9.3-release/contrib/llvm/lib/MC/
H A DMCWin64EH.cpp233 if (dollar == StringRef::npos && dot == StringRef::npos)
235 if (dot == StringRef::npos)
237 if (dollar == StringRef::npos || dot < dollar)
H A DMCSectionELF.cpp38 "ABCDEFGHIJKLMNOPQRSTUVWXYZ") == Name.npos) {
/freebsd-9.3-release/contrib/libstdc++/include/ext/
H A Dvstring.h78 static const size_type npos = static_cast<size_type>(-1); member in class:__versa_string
156 size_type __n = npos)
198 __s + npos, __a) { }
885 erase(size_type __pos = 0, size_type __n = npos) argument
1286 * begins. If not found, returns npos.
1299 * found, returns npos.
1313 * found, returns npos.
1330 * returns npos.
1343 * found, returns npos.
1346 rfind(const __versa_string& __str, size_type __pos = npos) cons
155 __versa_string(const __versa_string& __str, size_type __pos, size_type __n = npos) argument
[all...]
/freebsd-9.3-release/contrib/libstdc++/include/bits/
H A Dbasic_string.h163 // value that will be returned by max_size(). (Whereas npos
168 // npos = sizeof(_Rep) + (m * sizeof(_CharT)) + sizeof(_CharT)
170 // m = ((npos - sizeof(_Rep))/sizeof(CharT)) - 1
272 static const size_type npos = static_cast<size_type>(-1); member in class:basic_string
443 size_type __n = npos);
1130 erase(size_type __pos = 0, size_type __n = npos) argument
1561 * begins. If not found, returns npos.
1574 * found, returns npos.
1588 * found, returns npos.
1605 * returns npos
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/tools/driver/
H A Ddriver.cpp112 Edit.slice(2, Edit.size()-1).find('/') != StringRef::npos) {
126 std::string Option = Edit.substr(1, std::string::npos);
258 if (LastComponent != StringRef::npos)
264 if (LastComponent == StringRef::npos)
/freebsd-9.3-release/contrib/llvm/tools/clang/utils/TableGen/
H A DNeonEmitter.cpp960 if (typestr.find("Q") != StringRef::npos) {
1426 if (proto.find('i') != std::string::npos)
1431 if (proto.find('p') != std::string::npos ||
1432 proto.find('c') != std::string::npos)
1593 if (found == std::string::npos)
2302 return (proto.find('s') != std::string::npos
2303 || proto.find('z') != std::string::npos
2304 || proto.find('r') != std::string::npos
2305 || proto.find('b') != std::string::npos
2306 || proto.find('$') != std::string::npos
[all...]
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/jdtrace/
H A DJDTrace.java113 int npos = i;
115 for (; (npos < len) &&
116 (!Character.isWhitespace(ch = req.s.charAt(npos)) ||
117 inBlock); ++npos) {
136 while (i < npos) {
137 for (; (i < npos) && (req.s.charAt(i) != '{'); ++i);
139 if ((i < npos) || ((i > 0) && (req.s.charAt(i - 1) != '}'))) {
144 if (i < npos) {

Completed in 323 milliseconds

12345