This commit is contained in:
Hackerpilot 2013-08-25 11:18:59 +00:00
parent 001118e730
commit 42cf96c6d2
1 changed files with 3 additions and 3 deletions

View File

@ -1660,7 +1660,7 @@ L_advance:
size_t idx = 0; size_t idx = 0;
while (!isEoF()) while (!isEoF())
{ {
if (isAlpha(src.front)) if (std.ascii.isAlpha(src.front))
{ {
buffer[idx++] = src.front; buffer[idx++] = src.front;
if(idx == buffer.length) // way over maximum length if(idx == buffer.length) // way over maximum length
@ -1674,8 +1674,8 @@ L_advance:
} }
else else
{ {
errorMessage("Invalid character entity"); errorMessage("Invalid character entity");
return idx; return idx;
} }
} }
//TODO: avoid looking up as UTF string, use raw bytes //TODO: avoid looking up as UTF string, use raw bytes