http://d.puremagic.com/issues/show_bug.cgi?id=7282



--- Comment #2 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2012-01-12 
12:23:57 PST ---
Also that function is broken (I mean its result), fixed one is:

auto pretty(string src)
{
    Appender!(dchar[]) res;

    size_t i = 1;
    while (!src.empty)
    {
        res.put(src.back);
        src.popBack;

        if (!src.empty && (i++ % 3 == 0))
            res.put("_");
    }

    return retro(res.data);
}


I was hoping there was something like this in Phobos but it didn't catch my
eye. Anywho..

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to