Activate stat file
This commit is contained in:
@@ -39,7 +39,7 @@ namespace ABACUS {
|
||||
|
||||
// Inexplicably missing string functions in standard library:
|
||||
|
||||
std::string replace(const std::string& str, const std::string& from, const std::string& to) {
|
||||
inline std::string replace(const std::string& str, const std::string& from, const std::string& to) {
|
||||
std::string repl = str;
|
||||
size_t start_pos = repl.find(from);
|
||||
if(start_pos < std::string::npos)
|
||||
@@ -47,7 +47,7 @@ namespace ABACUS {
|
||||
return repl;
|
||||
}
|
||||
|
||||
std::string replace_all(const std::string& str, const std::string& from, const std::string& to) {
|
||||
inline std::string replace_all(const std::string& str, const std::string& from, const std::string& to) {
|
||||
std::string repl = str;
|
||||
if(from.empty())
|
||||
return repl;
|
||||
|
||||
Reference in New Issue
Block a user