Crash in byCodeUnit() <- byDchar() when converting faulty text to HTML

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 16 11:27:14 PDT 2014


> AFAIK, no. You hit an Error, and those shouldn't occur unless 
> you go out of your way for them.
>
> I'll look into it.

Superb!

> What's there to say? They all take a range of characters, and 
> return it as a range of the corresponding requested type.

Excuse me for the kind of dumb question. I was unsure about the 
details. Is there a bleeding edge (in sync with git master) 
variant of dlang.org docs I can read instead of the source? If 
not, I build dmd, druntime amd phobos daily for testing purposes 
so I might aswell build the docs aswell and get it from there.

> In the case of "byDchar", it decodes the string (while 
> returning a "BadChar") for invalid encodings.

This is what I want/need :)

> The others first decode using "byDchar", and then re-encode the 
> individual dchars into the corresponding requested char-type.

Ok. Got it!

Thx a lot.


More information about the Digitalmars-d-learn mailing list