[phobos] Clean up patch for std.utf
Masahiro Nakagawa
repeatedly at gmail.com
Wed Nov 24 05:52:57 PST 2010
I did two commits.
- changeset 2189: apply patch
- changeset 2190: fix issue 5247
Thanks for response and reporting.
Masahiro
On Fri, 19 Nov 2010 06:21:45 +0900, Shin Fujishiro <rsinfu at gmail.com>
wrote:
> "Masahiro Nakagawa" <repeatedly at gmail.com> wrote:
>> * char version of stride
>>
>> I removed assert because the comment says "0xFF meaning s[i] is not the
>> start of of UTF-8 sequence.".
>> Until now, my library checked 0xFF :(
>
> Shouldn't it throw an exception? Consider this use of stride() with a
> broken UTF-8 string:
>
> broken[broken.stride(0) .. $]
>
> It silently succeeds if 'broken' is longer or equal to 255 bytes.
>
>
> Shin
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
More information about the phobos
mailing list