List of Phobos functions that allocate memory?
Dicebot
public at dicebot.lv
Thu Feb 6 14:20:37 PST 2014
On Thursday, 6 February 2014 at 22:18:10 UTC, Brad Anderson wrote:
> You should probably validate utf from all foreign sources.
> Catch a problem with it as it comes in rather than in some
> arbitrary part of your program.
>
> http://dlang.org/phobos/std_utf.html#.validate
pure @safe void validate(S)(in S str) if (isSomeString!S);
Throws:
UTFException if str is not well-formed.
;)
More information about the Digitalmars-d
mailing list