[
Lists Home |
Date Index |
Thread Index
]
I saw a list of painstakingly typed out Name characters awhile back, .
Xerces' org.apache.xerces.util.XMLChar.isName() method source uses ranges
and masks, so individual name characters are a little harder to count there.
Prowler-0.4.1a has an XMLCharacterClass that uses character table subsets;
get the code and take a look at the isNameChar() method. Sum the members of
the character tables indirectly referred to there:
public static boolean isNameChar(char c){
return isLetter(c) || isDigit(c) || isCombiningChar(c) ||
isExtender(c)
|| (c == '.') || (c == '-') || (c == '_') || (c == ':');
}
I'd do it myself, but no telling if I'd get the same answer you would.
|