Challenge: write a really really small front() for UTF8
Michel Fortin
michel.fortin at michelf.ca
Sun Mar 23 22:34:21 PDT 2014
On 2014-03-24 04:58:08 +0000, "safety0ff" <safety0ff.dev at gmail.com> said:
> 0b1000000 is missing a zero: 0b1000_0000
Indeed, thanks.
> Fixing that, I still get a range violation from "s[1+i]".
That "auto indicator = (s[0] >> 5) & 0b11;" line is wrong too. s[0]
needs a shift by 4, not by 5. No doubt it crashes your test program.
--
Michel Fortin
michel.fortin at michelf.ca
http://michelf.ca
More information about the Digitalmars-d
mailing list