11 #ifndef TLX_STRING_REPLACE_HEADER 12 #define TLX_STRING_REPLACE_HEADER 37 std::string* str,
const std::string& needle,
const std::string& instead);
50 std::string* str,
const std::string& needle,
const char* instead);
63 std::string* str,
const char* needle,
const std::string& instead);
76 std::string* str,
const char* needle,
const char* instead);
88 std::string&
replace_first(std::string* str,
char needle,
char instead);
104 const std::string& str,
105 const std::string& needle,
const std::string& instead);
118 const std::string& str,
const std::string& needle,
const char* instead);
131 const std::string& str,
const char* needle,
const std::string& instead);
144 const std::string& str,
const char* needle,
const char* instead);
156 std::string
replace_first(
const std::string& str,
char needle,
char instead);
172 std::string* str,
const std::string& needle,
const std::string& instead);
185 std::string* str,
const std::string& needle,
const char* instead);
198 std::string* str,
const char* needle,
const std::string& instead);
211 std::string* str,
const char* needle,
const char* instead);
223 std::string&
replace_all(std::string* str,
char needle,
char instead);
238 const std::string& str,
239 const std::string& needle,
const std::string& instead);
251 const std::string& str,
const std::string& needle,
const char* instead);
263 const std::string& str,
const char* needle,
const std::string& instead);
275 const std::string& str,
const char* needle,
const char* instead);
286 std::string
replace_all(
const std::string& str,
char needle,
char instead);
293 #endif // !TLX_STRING_REPLACE_HEADER
std::string & replace_all(std::string *str, const std::string &needle, const std::string &instead)
Replace all occurrences of needle in str.
std::string & replace_first(std::string *str, const std::string &needle, const std::string &instead)
Replace only the first occurrence of needle in str.