public static class Character extends Object
char
as an object.
TODO(jat): many of the classification methods implemented here are not
correct in that they only handle ASCII characters, and many other methods
are not currently implemented. I think the proper approach is to introduce * a deferred binding parameter which substitutes an implementation using
a fully-correct Unicode character database, at the expense of additional
data being downloaded. That way developers that need the functionality
can get it without those who don't need it paying for it.
The following methods are still not implemented -- most would require Unicode character db to be useful: - digit / is* / to*(int codePoint) - isDefined(char) - isIdentifierIgnorable(char) - isJavaIdentifierPart(char) - isJavaIdentifierStart(char) - isJavaLetter(char) -- deprecated, so probably not - isJavaLetterOrDigit(char) -- deprecated, so probably not - isISOControl(char) - isMirrored(char) - isSpaceChar(char) - isTitleCase(char) - isUnicodeIdentifierPart(char) - isUnicodeIdentifierStart(char) - isWhitespace(char) - getDirectionality(*) - getNumericValue(*) - getType(*) - reverseBytes(char) -- any use for this at all in the browser? - toTitleCase(*) - all the category constants for classification The following do not properly handle characters outside of ASCII: - digit(char c, int radix) - isDigit(char c) - isLetter(char c) - isLetterOrDigit(char c) - isLowerCase(char c) - isUpperCase(char c)
Copyright © 2018. All rights reserved.