On Monday, 15 June 2015 at 15:23:43 UTC, Taylor Gronka wrote:
You two are phenomenal! Thanks!
Oh, replaceMap is a custom funciton I wrote too...
Eases replacing multiple values in a string with 1 function call.
I wont pretend that it's fast as it allocates a lot of memory :)
public string replaceMap(string str, string[string] keys){
import std.array;
foreach(key, val; keys){
str = str.replace(key, val);
}
return str;
}
