Home
last modified time | relevance | path

Searched refs:find_first_of (Results 1 – 25 of 94) sorted by relevance

1234

/external/chromium/base/
Dstring_piece_unittest.cc261 ASSERT_EQ(a.find_first_of(b), 0U); in TEST()
262 ASSERT_EQ(a.find_first_of(b, 0), 0U); in TEST()
263 ASSERT_EQ(a.find_first_of(b, 1), 1U); in TEST()
264 ASSERT_EQ(a.find_first_of(b, 2), 2U); in TEST()
265 ASSERT_EQ(a.find_first_of(b, 3), StringPiece::npos); in TEST()
266 ASSERT_EQ(a.find_first_of(c), 23U); in TEST()
267 ASSERT_EQ(a.find_first_of(c, 23), 23U); in TEST()
268 ASSERT_EQ(a.find_first_of(c, 24), 24U); in TEST()
269 ASSERT_EQ(a.find_first_of(c, 25), 25U); in TEST()
270 ASSERT_EQ(a.find_first_of(c, 26), StringPiece::npos); in TEST()
[all …]
Dsys_info_chromeos.cc92 size_t start_index = lsb_release.find_first_of('=', version_key_index); in ParseLsbRelease()
94 size_t length = lsb_release.find_first_of('\n', start_index) - start_index; in ParseLsbRelease()
Dstring_piece.h143 size_type find_first_of(const StringPiece& s, size_type pos = 0) const;
144 size_type find_first_of(char c, size_type pos = 0) const {
Dstring_piece.cc97 size_type StringPiece::find_first_of(const StringPiece& s, in find_first_of() function in base::StringPiece
104 return find_first_of(s.ptr_[0], pos); in find_first_of()
/external/stlport/test/unit/
Dalg_test.cpp230 first = find_first_of(intv.begin(), intv.end(), intsl.begin(), intsl.end()); in find_first_of_test()
242 first = find_first_of(intv.begin(), intv.end(), intsl.begin(), intsl.end()); in find_first_of_test()
260 first = find_first_of(intv.begin(), intv.end(), intl.begin(), intl.end()); in find_first_of_test()
272 first = find_first_of(intv.begin(), intv.end(), intl.begin(), intl.end()); in find_first_of_test()
286 first = find_first_of(intv.begin(), intv.end(), chars, chars + sizeof(chars)); in find_first_of_test()
300 first = find_first_of(intv.begin(), intv.end(), chars, chars + sizeof(chars)); in find_first_of_test()
315 first = find_first_of(intv.begin(), intv.end(), chars, chars + sizeof(chars)); in find_first_of_test()
329 first = find_first_of(intv.begin(), intv.end(), chars, chars + sizeof(chars)); in find_first_of_test()
359 …map<int, string>::iterator i = find_first_of(m.begin(), m.end(), values.begin(), values.end(), Val… in find_first_of_nsc_test()
/external/llvm/include/llvm/ADT/
DSmallString.h175 size_t find_first_of(char C, size_t From = 0) const {
176 return str().find_first_of(C, From);
183 size_t find_first_of(StringRef Chars, size_t From = 0) const {
184 return str().find_first_of(Chars, From);
/external/chromium/net/tools/flip_server/
Dloadtime_measurement.h53 size_t b = action.find_first_of('='); in ProcessRequest()
106 size_t e = str.find_first_of(sepa, b); in split_string()
110 e = str.find_first_of(sepa, b); in split_string()
/external/valgrind/tsan/
Dts_util.cc242 size_t next_brace = fname.find_first_of("<>", read_pointer); in StripTemplatesFromFunctionName()
328 if (fname.find_first_of("(") == fname.npos) in StripParametersFromFunctionName()
339 DCHECK(fname.find_first_of(")") != fname.npos); in StripParametersFromFunctionName()
340 DCHECK(fname.find_first_of(")") > first_parenthesis); in StripParametersFromFunctionName()
356 size_t next_brace = fname.find_first_of("()", read_pointer); in StripParametersFromFunctionName()
404 space_or_tick = ret.find_first_of("` "); in StripParametersFromFunctionName()
423 if (demangled.find_first_of("<>()") == demangled.npos) { in NormalizeFunctionName()
/external/chromium/net/http/
Dhttp_util.cc34 size_t end = line.find_first_of(set, start + 1); in FindStringEnd()
64 size_t cur_delim_pos = line.find_first_of(delim_str, search_start); in FindDelimiter()
99 size_t type_end = content_type_str.find_first_of(HTTP_LWS ";(", type_val); in ParseContentType()
108 size_t param_start = content_type_str.find_first_of(';', type_end); in ParseContentType()
147 charset_end = std::min(content_type_str.find_first_of(HTTP_LWS ";(", in ParseContentType()
162 content_type_str.find_first_of('/') != string::npos) { in ParseContentType()
497 size_t i = base::StringPiece(begin, end - begin).find_first_of("\r\n"); in FindStatusLineEnd()
/external/chromium/third_party/libjingle/source/talk/base/
Dpathutils.cc205 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()
/external/llvm/unittests/ADT/
DSmallStringTest.cpp136 EXPECT_EQ(2U, theString.find_first_of('l')); in TEST_F()
137 EXPECT_EQ(1U, theString.find_first_of("el")); in TEST_F()
138 EXPECT_EQ(StringRef::npos, theString.find_first_of("xyz")); in TEST_F()
/external/chromium/net/tools/tld_cleanup/
Dtld_cleanup.cc185 line_end = data.find_first_of("\r\n", line_start); in NormalizeFile()
190 line_end = data.find_first_of("\r\n \t", line_start); in NormalizeFile()
218 line_start = data.find_first_of("\r\n", line_end); in NormalizeFile()
/external/chromium/net/tools/dump_cache/
Durl_utilities.cc19 size_t next_slash = url.find_first_of('/', b); in GetUrlHost()
20 size_t next_colon = url.find_first_of(':', b); in GetUrlHost()
/external/chromium/chrome/browser/
Dprocess_singleton_win.cc235 const std::wstring::size_type first_null = msg.find_first_of(L'\0'); in OnCopyData()
249 msg.find_first_of(L'\0', first_null + 1); in OnCopyData()
262 msg.find_first_of(L'\0', second_null + 1); in OnCopyData()
/external/stlport/stlport/stl/
D_string_sum.h199 size_type find_first_of(const _BString& __s, size_type __pos = 0) const
200 { return _M_get_storage().find_first_of(__s, __pos); }
201 size_type find_first_of(const _CharT* __s, size_type __pos = 0) const
202 { return _M_get_storage().find_first_of(__s, __pos); }
203 size_type find_first_of(const _CharT* __s, size_type __pos, size_type __n) const in find_first_of() function
204 { return _M_get_storage().find_first_of(__s, __pos, __n); } in find_first_of()
205 size_type find_first_of(_CharT __c, size_type __pos = 0) const
/external/llvm/utils/TableGen/
DCodeGenInstruction.cpp163 std::string::size_type DotIdx = OpName.find_first_of("."); in ParseOperandName()
200 std::string::size_type wpos = CStr.find_first_of(" \t"); in ParseConstraint()
220 std::string::size_type pos = CStr.find_first_of('='); in ParseConstraint()
226 wpos = Name.find_first_of(" \t"); in ParseConstraint()
259 eidx = CStr.find_first_of(delims, bidx); in ParseConstraints()
/external/chromium/third_party/libjingle/source/talk/xmllite/
Dxmlprinter.cc154 size_t unsafe = text.find_first_of("<>&\"", safe); in PrintQuotedValue()
176 size_t unsafe = text.find_first_of("<>&", safe); in PrintBodyText()
/external/llvm/lib/Target/
DMangler.cpp140 Name.find_first_of("\n\"") == StringRef::npos)) { in getNameWithPrefix()
152 assert(Name.find_first_of("\n\"") != StringRef::npos); in getNameWithPrefix()
/external/chromium/chrome/browser/ui/omnibox/
Dlocation_bar_util.cc31 const size_t ws_index = description.find_first_of(kWhitespaceWide); in CalculateMinString()
/external/stlport/stlport/stl/debug/
D_string.h727 size_type find_first_of(const _Self& __s, size_type __pos = 0) const
728 { return _M_non_dbg_impl.find_first_of(__s._M_non_dbg_impl, __pos); }
729 size_type find_first_of(const _CharT* __s, size_type __pos = 0) const {
732 return _M_non_dbg_impl.find_first_of(__s, __pos);
734 size_type find_first_of(const _CharT* __s, size_type __pos, size_type __n) const { in find_first_of() function
737 return _M_non_dbg_impl.find_first_of(__s, __pos, __n); in find_first_of()
739 size_type find_first_of(_CharT __c, size_type __pos = 0) const
740 { return _M_non_dbg_impl.find_first_of(__c, __pos); }
/external/protobuf/src/google/protobuf/compiler/
Dcode_generator.cc60 string::size_type equals_pos = parts[i].find_first_of('='); in ParseGeneratorParameter()
/external/chromium/chrome/browser/ui/webui/options/chromeos/
Duser_image_source.cc45 std::string email = path.substr(0, path.find_first_of("?")); in StartDataRequest()
/external/astl/tests/
Dtest_string.cpp1002 EXPECT_TRUE(s.find_first_of('a') == string::npos); in testCharSearch()
1004 EXPECT_TRUE(s.find_first_of('a') == 0); in testCharSearch()
1005 EXPECT_TRUE(s.find_first_of('a', 0) == 0); in testCharSearch()
1006 EXPECT_TRUE(s.find_first_of('a', 1) == 3); in testCharSearch()
1007 EXPECT_TRUE(s.find_first_of('a', 8) == 10); in testCharSearch()
1009 EXPECT_TRUE(s.find_first_of('a') == 7); in testCharSearch()
1010 EXPECT_TRUE(s.find_first_of('a', 8) == string::npos); // out of bound in testCharSearch()
/external/llvm/lib/Support/
DStringExtras.cpp44 StringRef::size_type End = Source.find_first_of(Delimiters, Start); in getToken()
/external/llvm/tools/llvm-mc/
DDisassembler.cpp114 Str = Str.substr(Str.find_first_of('\n')); in ByteArrayFromString()
122 size_t Next = Str.find_first_of(" \t\n\r#"); in ByteArrayFromString()

1234