Home
last modified time | relevance | path

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

12345678910>>...17

/external/chromium/base/
Dstring_piece_unittest.cc166 ASSERT_EQ(StringPiece::npos, std::string::npos); in TEST()
169 ASSERT_EQ(a.find(b, 1), StringPiece::npos); in TEST()
172 ASSERT_EQ(a.find(c, StringPiece::npos), StringPiece::npos); in TEST()
173 ASSERT_EQ(b.find(c), StringPiece::npos); in TEST()
174 ASSERT_EQ(b.find(c, StringPiece::npos), StringPiece::npos); in TEST()
180 ASSERT_EQ(a.find(g), StringPiece::npos); in TEST()
182 ASSERT_EQ(d.find(b), StringPiece::npos); in TEST()
183 ASSERT_EQ(e.find(b), StringPiece::npos); in TEST()
184 ASSERT_EQ(d.find(b, 4), StringPiece::npos); in TEST()
185 ASSERT_EQ(e.find(b, 7), StringPiece::npos); in TEST()
[all …]
Dstring_piece.cc39 return npos; in find()
44 return xpos + s.length_ <= length_ ? xpos : npos; in find()
49 return npos; in find()
52 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; in find()
57 return npos; in rfind()
64 return result != last ? static_cast<size_t>(result - ptr_) : npos; in rfind()
69 return npos; in rfind()
77 return npos; in rfind()
100 return npos; in find_first_of()
113 return npos; in find_first_of()
[all …]
Dfile_path.cc64 return StringType::npos; in FindDriveLetter()
73 if (a_letter_pos == StringType::npos || b_letter_pos == StringType::npos) in EqualDriveLetterCaseInsensitive()
90 if (letter != StringType::npos) { in IsPathAbsolute()
124 return StringType::npos; in ExtensionSeparatorPosition()
130 if (last_dot == StringType::npos || last_dot == 0U) in ExtensionSeparatorPosition()
151 if (penultimate_dot != StringType::npos && in ExtensionSeparatorPosition()
152 (last_separator == StringType::npos || in ExtensionSeparatorPosition()
236 if (letter != StringType::npos) { in GetComponents()
267 if ((FindDriveLetter(*parent_comp) != StringType::npos) && in AppendRelativePath()
268 (FindDriveLetter(*child_comp) != StringType::npos)) { in AppendRelativePath()
[all …]
Dstring_piece.h43 static const size_type npos; variable
140 size_type rfind(const StringPiece& s, size_type pos = npos) const;
141 size_type rfind(char c, size_type pos = npos) const;
149 size_type find_last_of(const StringPiece& s, size_type pos = npos) const;
150 size_type find_last_of(char c, size_type pos = npos) const {
153 size_type find_last_not_of(const StringPiece& s, size_type pos = npos) const;
154 size_type find_last_not_of(char c, size_type pos = npos) const;
156 StringPiece substr(size_type pos, size_type n = npos) const;
/external/llvm/utils/TableGen/
DEDEmitter.cpp433 if (name.find("MOV") != name.npos) { in X86ExtractSemantics()
434 if (name.find("MOV_V") != name.npos) { in X86ExtractSemantics()
436 } else if (name.find("MASK") != name.npos) { in X86ExtractSemantics()
438 } else if (name.find("r0") != name.npos) { in X86ExtractSemantics()
440 } else if (name.find("PS") != name.npos || in X86ExtractSemantics()
441 name.find("PD") != name.npos) { in X86ExtractSemantics()
443 } else if (name.find("MOVS") != name.npos) { in X86ExtractSemantics()
445 } else if (name.find("_F") != name.npos) { in X86ExtractSemantics()
447 } else if (name.find("a") != name.npos) { in X86ExtractSemantics()
449 } else if (name.find("CMOV") != name.npos) { in X86ExtractSemantics()
[all …]
DX86RecognizableInstr.cpp228 IsSSE = HasOpSizePrefix && (Name.find("16") == Name.npos); in RecognizableInstr()
237 if (Predicates[i]->getName().find("64Bit") != Name.npos) { in RecognizableInstr()
250 Rec->getName().find("VMREAD64") != Name.npos || in RecognizableInstr()
251 Rec->getName().find("VMWRITE64") != Name.npos || in RecognizableInstr()
252 Rec->getName().find("MOV64") != Name.npos || in RecognizableInstr()
253 Rec->getName().find("PUSH64") != Name.npos || in RecognizableInstr()
254 Rec->getName().find("POP64") != Name.npos; in RecognizableInstr()
354 if (Name.find("VMOVDQU") != Name.npos || in filter()
355 Name.find("VMOVDQA") != Name.npos || in filter()
356 Name.find("VROUND") != Name.npos) in filter()
[all …]
/external/chromium/net/url_request/
Dview_cache_helper_unittest.cc125 EXPECT_NE(std::string::npos, data.find("</html>")); in TEST()
126 EXPECT_NE(std::string::npos, data.find("first")); in TEST()
127 EXPECT_NE(std::string::npos, data.find("second")); in TEST()
128 EXPECT_NE(std::string::npos, data.find("third")); in TEST()
130 EXPECT_EQ(std::string::npos, data.find("some")); in TEST()
131 EXPECT_EQ(std::string::npos, data.find("same")); in TEST()
132 EXPECT_EQ(std::string::npos, data.find("thing")); in TEST()
147 EXPECT_NE(std::string::npos, data.find("</html>")); in TEST()
149 EXPECT_NE(std::string::npos, data.find("hex_dumped")); in TEST()
150 EXPECT_NE(std::string::npos, data.find("same")); in TEST()
[all …]
/external/chromium/chrome/browser/importer/
Dfirefox_importer_utils.cc37 if (low_value.find("mozilla") != std::string::npos || in KeepParameter()
38 low_value.find("firefox") != std::string::npos || in KeepParameter()
39 low_value.find("moz:") != std::string::npos ) in KeepParameter()
110 if (equal != std::string::npos) { in GetFirefoxVersionAndPathFromProfile()
153 if (end != std::string::npos) in ParseProfileINI()
158 if (equal != std::string::npos) { in ParseProfileINI()
164 if (current_section.find('.') == std::string::npos && in ParseProfileINI()
165 key.find('.') == std::string::npos) in ParseProfileINI()
266 if (prop_index == std::string::npos) in ReadBrowserConfigProp()
270 size_t stop = std::string::npos; in ReadBrowserConfigProp()
[all …]
/external/chromium/net/tools/dump_cache/
Durl_utilities.cc15 if (b == std::string::npos) in GetUrlHost()
21 if (next_slash != std::string::npos in GetUrlHost()
22 && next_colon != std::string::npos in GetUrlHost()
26 if (next_slash == std::string::npos) { in GetUrlHost()
27 if (next_colon != std::string::npos) { in GetUrlHost()
38 if (b == std::string::npos) in GetUrlHostPath()
47 if (b == std::string::npos) in GetUrlPath()
52 if (b == std::string::npos) in GetUrlPath()
56 if (e != std::string::npos) in GetUrlPath()
/external/chromium/chrome/browser/policy/
Dpolicy_path_parser_unittest.cc19 ASSERT_EQ(var_result.find(var_name), FilePath::StringType::npos); in CheckForSubstitution()
40 FilePath::StringType::npos); in TEST_F()
42 FilePath::StringType::npos); in TEST_F()
48 ASSERT_NE(pos, FilePath::StringType::npos); in TEST_F()
50 FilePath::StringType::npos); in TEST_F()
55 FilePath::StringType::npos); in TEST_F()
57 FilePath::StringType::npos); in TEST_F()
/external/astl/tests/
Dtest_string.cpp770 EXPECT_TRUE(haystack.find((char*)NULL) == string::npos); in testFind()
771 EXPECT_TRUE(haystack.find((char*)NULL, 10) == string::npos); in testFind()
777 EXPECT_TRUE(haystack.find("four") == string::npos); in testFind()
778 EXPECT_TRUE(haystack.find("one", string::npos) == string::npos); in testFind()
783 EXPECT_TRUE(haystack.find("one", 15) == string::npos); in testFind()
785 EXPECT_TRUE(haystack.find("e", haystack.size()) == string::npos); in testFind()
786 EXPECT_TRUE(haystack.find("one", string::npos) == string::npos); in testFind()
792 EXPECT_TRUE(haystack.find(string("four")) == string::npos); in testFind()
793 EXPECT_TRUE(haystack.find(string("one"), string::npos) == string::npos); in testFind()
798 EXPECT_TRUE(haystack.find(string("one"), 15) == string::npos); in testFind()
[all …]
/external/llvm/include/llvm/ADT/
DStringRef.h34 static const size_t npos = ~size_t(0); variable
220 return npos;
233 size_t rfind(char C, size_t From = npos) const {
241 return npos;
274 size_type find_last_of(char C, size_t From = npos) const {
282 size_type find_last_of(StringRef Chars, size_t From = npos) const;
342 StringRef substr(size_t Start, size_t N = npos) const {
375 if (Idx == npos) in split()
377 return std::make_pair(slice(0, Idx), slice(Idx+1, npos)); in split()
392 if (Idx == npos) in split()
[all …]
/external/chromium/base/i18n/
Dbreak_iterator.cc14 const size_t npos = -1; variable
20 prev_(npos), in BreakIterator()
65 pos_ = npos; in Advance()
80 pos_ = npos; in Advance()
97 DCHECK(prev_ != npos && pos_ != npos); in GetString()
/external/chromium/chrome/browser/printing/
Dprint_job_worker.cc70 DCHECK(page_number_ == PageNumber::npos()); in SetNewOwner()
80 DCHECK_EQ(page_number_, PageNumber::npos()); in GetSettings()
178 DCHECK_EQ(page_number_, PageNumber::npos()); in StartPrinting()
183 if (!document_.get() || page_number_ != PageNumber::npos() || in StartPrinting()
206 DCHECK_EQ(page_number_, PageNumber::npos()); in OnDocumentChanged()
210 if (page_number_ != PageNumber::npos()) in OnDocumentChanged()
224 if (page_number_ == PageNumber::npos()) { in OnNewPage()
236 DCHECK_NE(page_number_, PageNumber::npos()); in OnNewPage()
252 if (page_number_ == PageNumber::npos()) { in OnNewPage()
269 DCHECK_EQ(page_number_, PageNumber::npos()); in OnDocumentDone()
[all …]
/external/chromium/base/debug/
Dstack_trace_unittest.cc45 std::string::npos) << in TEST()
64 EXPECT_TRUE(backtrace_message.find("start") != std::string::npos) in TEST()
74 std::string::npos) in TEST()
84 EXPECT_TRUE(backtrace_message.find("main") != std::string::npos) in TEST()
96 EXPECT_TRUE(backtrace_message.find(__func__) != std::string::npos) in TEST()
/external/chromium/net/base/
Dregistry_controlled_domain.cc123 return std::string::npos; in GetRegistryLength()
138 return std::string::npos; in GetRegistryLength()
152 return std::string::npos; in GetRegistryLength()
195 if ((registry_length == std::string::npos) || (registry_length == 0)) in GetDomainAndRegistryImpl()
210 if (dot == std::string::npos) in GetDomainAndRegistryImpl()
222 if (host_check_begin == std::string::npos) in GetRegistryLengthImpl()
238 size_t prev_start = std::string::npos; in GetRegistryLengthImpl()
255 if (rule->type == kWildcardRule && (prev_start != std::string::npos)) { in GetRegistryLengthImpl()
263 if (next_dot == std::string::npos) { in GetRegistryLengthImpl()
Dnet_util_unittest.cc26 static const size_t kNpos = string16::npos;
976 {6, string16::npos}, in TEST()
977 {16, string16::npos}, in TEST()
980 {19, string16::npos}, in TEST()
981 {25, string16::npos}, in TEST()
985 {39, string16::npos}, in TEST()
986 {string16::npos, string16::npos}, in TEST()
1808 {26, string16::npos}, in TEST()
1809 {500000, string16::npos}, in TEST()
1810 {string16::npos, string16::npos}, in TEST()
[all …]
/external/chromium/third_party/libjingle/source/talk/base/
Dpathutils.cc135 if (pos != std::string::npos) { in SetPathname()
161 std::string::size_type pos = std::string::npos; in folder_name()
165 if (pos != std::string::npos) { in folder_name()
173 std::string::size_type pos = std::string::npos; in parent_folder()
177 if (pos != std::string::npos) { in parent_folder()
205 if(basename.find_first_of(FOLDER_DELIMS) != std::string::npos) { in SetBasename()
217 if (extension.find_first_of(FOLDER_DELIMS) != std::string::npos || in SetExtension()
218 extension.find_first_of(EXT_DELIM, 1) != std::string::npos) { in SetExtension()
237 if ((pos == std::string::npos) || (pos == 0)) { in SetFilename()
/external/valgrind/tsan/
Dts_util.cc243 if (next_brace == fname.npos) { in StripTemplatesFromFunctionName()
268 if (op_offset == string::npos) in StripTemplatesFromFunctionName()
313 size_t found = fname.npos; in StripParametersFromFunctionName()
314 while ((found = fname.find(", ")) != fname.npos) in StripParametersFromFunctionName()
316 while ((found = fname.find("(**")) != fname.npos) in StripParametersFromFunctionName()
318 while ((found = fname.find("(*)")) != fname.npos) in StripParametersFromFunctionName()
320 while ((found = fname.find("const()")) != fname.npos) in StripParametersFromFunctionName()
322 while ((found = fname.find("const volatile")) != fname.npos && in StripParametersFromFunctionName()
325 while ((found = fname.find("(anonymous namespace)")) != fname.npos) in StripParametersFromFunctionName()
328 if (fname.find_first_of("(") == fname.npos) in StripParametersFromFunctionName()
[all …]
/external/stlport/stlport/stl/
D_string_npos.h21 enum { npos = -1 }; enumerator
24 static const size_t npos; variable
26 static const size_t npos = ~(size_t)0; variable
/external/webkit/Source/WebKit/chromium/tests/
DWebFrameTest.cpp112 EXPECT_NE(std::string::npos, content.find(" visible paragraph")); in TEST_F()
113 EXPECT_NE(std::string::npos, content.find(" visible iframe")); in TEST_F()
114 EXPECT_EQ(std::string::npos, content.find(" invisible pararaph")); in TEST_F()
115 EXPECT_EQ(std::string::npos, content.find(" invisible iframe")); in TEST_F()
116 EXPECT_EQ(std::string::npos, content.find("iframe with zero size")); in TEST_F()
/external/chromium/webkit/glue/
Dmultipart_response_delegate.cc131 while ((boundary_pos = FindBoundary()) != std::string::npos) { in OnReceivedData()
217 while (line_end_pos != std::string::npos) { in ParseHeaders()
235 if (line_end_pos == std::string::npos) in ParseHeaders()
284 if (boundary_pos != std::string::npos) { in FindBoundary()
305 if (boundary_start_offset == std::string::npos) in ReadMultipartBoundary()
312 if (boundary_end_offset == std::string::npos) in ReadMultipartBoundary()
343 if (byte_range_lower_bound_start_offset == std::string::npos) { in ReadContentRanges()
353 if (byte_range_lower_bound_end_offset == std::string::npos) { in ReadContentRanges()
369 if (byte_range_upper_bound_end_offset == std::string::npos) { in ReadContentRanges()
/external/chromium/net/tools/tld_cleanup/
Dtld_cleanup.cc135 if (domain->find("*.", start_offset) != std::string::npos || in NormalizeRule()
136 domain->find('!', start_offset) != std::string::npos) { in NormalizeRule()
186 if (line_end == std::string::npos) in NormalizeFile()
191 if (line_end == std::string::npos) in NormalizeFile()
211 if (tld_start != std::string::npos && tld_start + 1 < domain.size()) in NormalizeFile()
219 if (line_start == std::string::npos) in NormalizeFile()
222 if (line_start == std::string::npos) in NormalizeFile()
/external/llvm/lib/Support/
DStringRef.cpp19 const size_t StringRef::npos; member in StringRef
139 return npos; in find()
143 return npos; in find()
153 return npos; in rfind()
159 return npos; in rfind()
175 return npos; in find_first_of()
184 return npos; in find_first_not_of()
200 return npos; in find_first_not_of()
216 return npos; in find_last_of()
/external/astl/src/
Dstring.cpp572 return string::npos; in find()
580 return pos > mLength ? string::npos : pos; in find()
585 return string::npos; in find()
592 return string::npos; in find()
606 return npos; in find_first_of()
611 return res != NULL ? res - mData : npos; in find_first_of()
616 return npos; in find_last_of()
625 return res != NULL ? res - mData : npos; in find_last_of()
635 return npos; in find_first_not_of()
640 return npos; in find_last_not_of()
[all …]

12345678910>>...17