Be warned; Appendix B will change again. Anyhow, if you really want an
isNameChar() function, I recommend something along the lines of
isNameChar(char c)
{
if (c < 128)
return BooleanArrayOfSize127WithTrueInNameCharPositions[c];
else
return DoIckyLookupInBigTableFromAppendixB(c);
}
Actually, I posted some Java code that reads the XML spec and
generates a reasonably efficient Java version of DoIckyLookup...
the Lark distribution currently has a CharClasses.java. I'll
re-test and re-generate and re-distribute after the next cut of the
spec. -Tim