Removed std prefix
This commit is contained in:
		| @@ -106,16 +106,16 @@ map<string, string> sc::parse_ini_file(const string& path) | |||||||
|     return result; |     return result; | ||||||
| } | } | ||||||
|  |  | ||||||
| void sc::replace_all(const std::string& what, const std::string& replacement, std::string& target) { | void sc::replace_all(const string& what, const string& replacement, string& target) { | ||||||
|     std::string::size_type pos = std::string::npos; |     string::size_type pos = string::npos; | ||||||
|     std::string::size_type from = 0; |     string::size_type from = 0; | ||||||
|     do { |     do { | ||||||
|         pos = target.find(what, from); |         pos = target.find(what, from); | ||||||
|         if (pos != std::string::npos) { |         if (pos != string::npos) { | ||||||
|             target.replace(pos, what.length(), replacement); |             target.replace(pos, what.length(), replacement); | ||||||
|             from = pos + replacement.length(); |             from = pos + replacement.length(); | ||||||
|         } |         } | ||||||
|     } while (pos != std::string::npos); |     } while (pos != string::npos); | ||||||
| } | } | ||||||
|  |  | ||||||
| string sc::str_replace(const string& what, const string& replacement, const string& target) | string sc::str_replace(const string& what, const string& replacement, const string& target) | ||||||
| @@ -133,9 +133,9 @@ string sc::str_replace(const string& what, const string& replacement, const stri | |||||||
|     return result; |     return result; | ||||||
| } | } | ||||||
|  |  | ||||||
| wstring sc::replace_all(const std::wstring& what, | wstring sc::replace_all(const wstring& what, | ||||||
|                         const std::wstring& replacement, |                         const wstring& replacement, | ||||||
|                         const std::wstring& target) |                         const wstring& target) | ||||||
| { | { | ||||||
|     wstring term {target}; |     wstring term {target}; | ||||||
|     wstring::size_type pos = wstring::npos; |     wstring::size_type pos = wstring::npos; | ||||||
| @@ -150,7 +150,7 @@ wstring sc::replace_all(const std::wstring& what, | |||||||
|     return term; |     return term; | ||||||
| } | } | ||||||
|  |  | ||||||
| void sc::create_dir(const std::string &path, int mode) | void sc::create_dir(const string &path, int mode) | ||||||
| { | { | ||||||
|     string dir; |     string dir; | ||||||
|     vector<string> path_components {sc::split(path, "/")}; |     vector<string> path_components {sc::split(path, "/")}; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Bob Polis
					Bob Polis