Searched refs:npos (Results 26 - 50 of 419) sorted by relevance

1234567891011>>

/external/chromium/chrome/browser/extensions/
H A Dextension_i18n_api.cc47 if (end == string16::npos || begin >= acceptLanguages.length())
/external/chromium/net/base/
H A Dregistry_controlled_domain.cc123 return std::string::npos;
138 return std::string::npos;
152 return std::string::npos;
195 if ((registry_length == std::string::npos) || (registry_length == 0))
210 if (dot == std::string::npos)
222 if (host_check_begin == std::string::npos)
238 size_t prev_start = std::string::npos;
241 if (next_dot >= host_check_len) // Catches std::string::npos as well.
255 if (rule->type == kWildcardRule && (prev_start != std::string::npos)) {
263 if (next_dot == std::string::npos) {
[all...]
H A Dhost_port_pair.cc36 if (host_.find(':') != std::string::npos) {
/external/chromium/third_party/libjingle/source/talk/base/
H A Dpathutils.cc135 if (pos != std::string::npos) {
161 std::string::size_type pos = std::string::npos;
165 if (pos != std::string::npos) {
173 std::string::size_type pos = std::string::npos;
177 if (pos != std::string::npos) {
205 if(basename.find_first_of(FOLDER_DELIMS) != std::string::npos) {
217 if (extension.find_first_of(FOLDER_DELIMS) != std::string::npos ||
218 extension.find_first_of(EXT_DELIM, 1) != std::string::npos) {
237 if ((pos == std::string::npos) || (pos == 0)) {
H A Dstringutils.cc115 while ((pos = s->find(search, pos, search_len)) != std::string::npos) {
138 if (first == std::string::npos || last == std::string::npos) {
/external/llvm/unittests/ADT/
H A DSmallStringTest.cpp120 EXPECT_EQ(StringRef::npos, theString.find('z'));
121 EXPECT_EQ(StringRef::npos, theString.find("helloworld"));
124 EXPECT_EQ(StringRef::npos, theString.find("zz"));
126 EXPECT_EQ(StringRef::npos, theString.find("ll", 3));
130 EXPECT_EQ(StringRef::npos, theString.rfind('z'));
131 EXPECT_EQ(StringRef::npos, theString.rfind("helloworld"));
134 EXPECT_EQ(StringRef::npos, theString.rfind("zz"));
138 EXPECT_EQ(StringRef::npos, theString.find_first_of("xyz"));
142 EXPECT_EQ(StringRef::npos, theString.find_first_not_of("hello"));
/external/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)
/external/chromium/base/
H A Dstring_piece.h43 static const size_type npos; member in class:base::StringPiece
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/chromium/third_party/libjingle/overrides/talk/xmllite/
H A Dqname.cc25 if (i == std::string::npos)
33 if (i == std::string::npos)
/external/chromium/third_party/modp_b64/
H A Dmodp_b64.h138 x.erase(d, std::string::npos);
159 x.erase(d, std::string::npos);
/external/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.cpp22 const size_t StringRef::npos; member in class:StringRef
123 /// \return - The index of the first occurrence of \arg Str, or npos if not
128 return npos;
135 return npos;
139 return npos;
158 return npos;
163 /// \return - The index of the last occurrence of \arg Str, or npos if not
168 return npos;
174 return npos;
178 /// Chars, or npos i
[all...]
/external/llvm/utils/TableGen/
H A DX86RecognizableInstr.cpp244 IsSSE = (HasOpSizePrefix && (Name.find("16") == Name.npos)) ||
245 (Name.find("CRC32") != Name.npos);
255 if (Predicates[i]->getName().find("32Bit") != Name.npos) {
259 if (Predicates[i]->getName().find("64Bit") != Name.npos) {
272 Rec->getName().find("MOV64") != Name.npos ||
273 Rec->getName().find("PUSH64") != Name.npos ||
274 Rec->getName().find("POP64") != Name.npos;
400 (IsCodeGenOnly && Name.find("_REV") == Name.npos))
407 if (Name.find("_Int") != Name.npos ||
408 Name.find("Int_") != Name.npos)
[all...]
/external/chromium/net/tools/tld_cleanup/
H A Dtld_cleanup.cc135 if (domain->find("*.", start_offset) != std::string::npos ||
136 domain->find('!', start_offset) != std::string::npos) {
186 if (line_end == std::string::npos)
191 if (line_end == std::string::npos)
211 if (tld_start != std::string::npos && tld_start + 1 < domain.size())
219 if (line_start == std::string::npos)
222 if (line_start == std::string::npos)
/external/chromium/webkit/glue/
H A Dmultipart_response_delegate.cc131 while ((boundary_pos = FindBoundary()) != std::string::npos) {
217 while (line_end_pos != std::string::npos) {
235 if (line_end_pos == std::string::npos)
284 if (boundary_pos != std::string::npos) {
305 if (boundary_start_offset == std::string::npos)
312 if (boundary_end_offset == std::string::npos)
343 if (byte_range_lower_bound_start_offset == std::string::npos) {
353 if (byte_range_lower_bound_end_offset == std::string::npos) {
369 if (byte_range_upper_bound_end_offset == std::string::npos) {
/external/chromium/chrome/browser/policy/
H A Dpolicy_path_parser_win.cc50 if (position != std::wstring::npos) {
59 if (position != std::wstring::npos) {
70 if (position != std::wstring::npos) {
/external/chromium/net/http/
H A Dhttp_chunked_decoder.cc104 if (index_of_lf != base::StringPiece::npos) {
131 if (index_of_semicolon != base::StringPiece::npos)
191 != base::StringPiece::npos)
/external/chromium/chrome/browser/chromeos/login/
H A Dclient_login_response_handler.cc23 std::string::npos);
/external/chromium/chrome/browser/
H A Didle_linux.cc50 return value.find("screensaver") != std::string::npos;
/external/chromium/chrome/browser/ui/omnibox/
H A Dlocation_bar_util.cc34 if (chop_index == std::wstring::npos) {
/external/clang/test/FixIt/
H A Dtypo.cpp11 static const int npos = -1; // expected-note{{'npos' declared here}} member in class:std::basic_string
48 == std::string::pos; // expected-error{{no member named 'pos' in 'std::basic_string<char>'; did you mean 'npos'?}}
/external/regex-re2/re2/
H A Dstringpiece.h122 static const size_type npos; member in class:re2::StringPiece
143 int rfind(const StringPiece& s, size_type pos = npos) const;
144 int rfind(char c, size_type pos = npos) const;
146 StringPiece substr(size_type pos, size_type n = npos) const;
/external/astl/src/
H A Dstring.cpp572 return string::npos;
580 return pos > mLength ? string::npos : pos;
585 return string::npos;
592 return string::npos;
606 return npos;
611 return res != NULL ? res - mData : npos;
616 return npos;
625 return res != NULL ? res - mData : npos;
635 return npos;
640 return npos;
[all...]
/external/chromium/chrome/browser/autofill/
H A Daddress_field.cc374 != string16::npos ||
376 != string16::npos)
391 if (bill == string16::npos && ship == string16::npos)
394 if (bill != string16::npos && ship == string16::npos)
397 if (bill == string16::npos && ship != string16::npos)
/external/chromium/chrome/browser/content_settings/
H A Dcontent_settings_pattern.cc64 return host.find('*') == std::string::npos &&
80 return (match != std::string::npos) &&

Completed in 462 milliseconds

1234567891011>>