|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Number of name characters?
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.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








