{
std::vector<std::wstring> result;
size_t pos;
- if ((pos = s.find_first_of(L"://")) != std::wstring::npos)
+ if ((pos = s.find(L"://")) != std::wstring::npos)
{
result.push_back(s.substr(0, pos));
result.push_back(s.substr(pos + 3));
return create_producer(factory, params);\r
}\r
\r
-std::vector<std::wstring> protocol_split(std::wstring const& s)\r
-{\r
- std::vector<std::wstring> result;\r
- size_t pos;\r
- if ((pos = s.find_first_of(L"://")) != std::wstring::npos)\r
- {\r
- result.push_back(s.substr(0, pos));\r
- result.push_back(s.substr(pos + 3));\r
- } else\r
- {\r
- result.push_back(L"");\r
- result.push_back(s);\r
- }\r
- return result;\r
-}\r
-\r
-\r
}}
\ No newline at end of file