List of Phobos functions that allocate memory?

Brad Anderson eco at gnuk.net
Thu Feb 6 14:28:30 PST 2014


On Thursday, 6 February 2014 at 22:20:38 UTC, Dicebot wrote:
> 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.
>
> ;)

Heh, well then... let me just wipe this egg off my face. :P


More information about the Digitalmars-d mailing list