mirror of
https://github.com/holub/mame
synced 2025-04-21 16:01:56 +03:00
Fix strreplace, fixes snapshot and dtd issue (nw)
This commit is contained in:
parent
025d01c801
commit
ee0328ba37
@ -300,7 +300,7 @@ std::string strmakelower(std::string& str)
|
||||
return str;
|
||||
}
|
||||
|
||||
int strreplace(std::string str, const std::string& search, const std::string& replace)
|
||||
int strreplace(std::string &str, const std::string& search, const std::string& replace)
|
||||
{
|
||||
int searchlen = search.length();
|
||||
int replacelen = replace.length();
|
||||
|
@ -75,6 +75,6 @@ void strreplacechr(std::string& str, char ch, char newch);
|
||||
std::string strtrimspace(std::string& str);
|
||||
std::string strmakeupper(std::string& str);
|
||||
std::string strmakelower(std::string& str);
|
||||
int strreplace(std::string str, const std::string& search, const std::string& replace);
|
||||
int strreplace(std::string &str, const std::string& search, const std::string& replace);
|
||||
|
||||
#endif /* __CORESTR_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user