assert(i == 3);
static s4 =
- [ "\xE2\x89"c, // too short
+ [ "\xE2\x89"c[], // too short
"\xC0\x8A",
"\xE0\x80\x8A",
"\xF0\x80\x80\x8A",
*/
void validate(S)(in S s)
{
- invariant len = s.length;
+ auto len = s.length;
for (size_t i = 0; i < len; )
{
decode(s, i);
{
debug(utf) printf("utf.toUTF.unittest\n");
- auto c = "hello"c;
+ auto c = "hello"c[];
auto w = toUTF16(c);
assert(w == "hello");
auto d = toUTF32(c);