oauth, Twitter, and std.net.curl

wobbles via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 15 08:27:44 PDT 2015

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;

More information about the Digitalmars-d-learn mailing list