mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-13 12:17:10 +00:00
moved replace_str to util
This commit is contained in:
@@ -215,11 +215,6 @@ string build_getter(string type, string name, int index) {
|
||||
#define GET(array, index) array "[" index "]"
|
||||
#endif
|
||||
|
||||
void replace_str(string& s, string a, string b) {
|
||||
while(s.find(a) != string::npos)
|
||||
s.replace(s.find(a), isize(a), b);
|
||||
}
|
||||
|
||||
EX hookset<void(string&, string&)> hooks_rayshader;
|
||||
EX hookset<bool(shared_ptr<raycaster>)> hooks_rayset;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user