Package com.ongres.stringprep
Class Tables
java.lang.Object
com.ongres.stringprep.Tables
Expose tables parsed from the StringPrep RFC-3454.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbidirectionalPropertyL(int codePoint) Characters with bidirectional property "L".static booleanbidirectionalPropertyRorAL(int codePoint) Characters with bidirectional property "R" or "AL".static booleanmapToNothing(int codePoint) Commonly mapped to nothing.static int[]mapWithNfkc(int codePoint) Mapping for case-folding used with NFKC.static int[]mapWithoutNormalization(int codePoint) Mapping for case-folding used with no normalization.static booleanprohibitionAsciiControl(int codePoint) ASCII control characters.static booleanprohibitionAsciiSpace(int codePoint) ASCII space characters.static booleanprohibitionChangeDisplayProperties(int codePoint) Change display properties or are deprecated.static booleanprohibitionInappropriateCanonicalRepresentation(int codePoint) Inappropriate for canonical representation.static booleanprohibitionInappropriatePlainText(int codePoint) Inappropriate for plain text.static booleanprohibitionNonAsciiControl(int codePoint) Non-ASCII control characters.static booleanprohibitionNonAsciiSpace(int codePoint) Non-ASCII space characters.static booleanprohibitionNonCharacterCodePoints(int codePoint) Non-character code points.static booleanprohibitionPrivateUse(int codePoint) Private use.static booleanprohibitionSurrogateCodes(int codePoint) Surrogate codes.static booleanprohibitionTaggingCharacters(int codePoint) Tagging characters.static booleanunassignedCodePoints(int codePoint) Unassigned code points in Unicode 3.2.
-
Method Details
-
unassignedCodePoints
public static boolean unassignedCodePoints(int codePoint) Unassigned code points in Unicode 3.2.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Unassigned code points in Unicode 3.2".- See Also:
-
mapToNothing
public static boolean mapToNothing(int codePoint) Commonly mapped to nothing.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Commonly mapped to nothing".- See Also:
-
mapWithNfkc
public static int[] mapWithNfkc(int codePoint) Mapping for case-folding used with NFKC.- Parameters:
codePoint- the character (Unicode code point) to be mapped.- Returns:
- Case-folding used with NFKC for the given
codePoint. - See Also:
-
mapWithoutNormalization
public static int[] mapWithoutNormalization(int codePoint) Mapping for case-folding used with no normalization.- Parameters:
codePoint- the character (Unicode code point) to be mapped.- Returns:
- Case-folding used with no normalization for the given
codePoint. - See Also:
-
prohibitionAsciiSpace
public static boolean prohibitionAsciiSpace(int codePoint) ASCII space characters.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "ASCII space characters".- See Also:
-
prohibitionNonAsciiSpace
public static boolean prohibitionNonAsciiSpace(int codePoint) Non-ASCII space characters.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Non-ASCII space characters".- See Also:
-
prohibitionAsciiControl
public static boolean prohibitionAsciiControl(int codePoint) ASCII control characters.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "ASCII control characters".- See Also:
-
prohibitionNonAsciiControl
public static boolean prohibitionNonAsciiControl(int codePoint) Non-ASCII control characters.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Non-ASCII control characters".- See Also:
-
prohibitionPrivateUse
public static boolean prohibitionPrivateUse(int codePoint) Private use.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Private use".- See Also:
-
prohibitionNonCharacterCodePoints
public static boolean prohibitionNonCharacterCodePoints(int codePoint) Non-character code points.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Non-character code points".- See Also:
-
prohibitionSurrogateCodes
public static boolean prohibitionSurrogateCodes(int codePoint) Surrogate codes.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Surrogate codes".- See Also:
-
prohibitionInappropriatePlainText
public static boolean prohibitionInappropriatePlainText(int codePoint) Inappropriate for plain text.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Inappropriate for plain text".- See Also:
-
prohibitionInappropriateCanonicalRepresentation
public static boolean prohibitionInappropriateCanonicalRepresentation(int codePoint) Inappropriate for canonical representation.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Inappropriate for canonical representation".- See Also:
-
prohibitionChangeDisplayProperties
public static boolean prohibitionChangeDisplayProperties(int codePoint) Change display properties or are deprecated.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Change display properties or are deprecated".- See Also:
-
prohibitionTaggingCharacters
public static boolean prohibitionTaggingCharacters(int codePoint) Tagging characters.- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Tagging characters".- See Also:
-
bidirectionalPropertyRorAL
public static boolean bidirectionalPropertyRorAL(int codePoint) Characters with bidirectional property "R" or "AL".- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Characters with bidirectional property R or AL".- See Also:
-
bidirectionalPropertyL
public static boolean bidirectionalPropertyL(int codePoint) Characters with bidirectional property "L".- Parameters:
codePoint- the character (Unicode code point) to be tested.- Returns:
trueif the givencodePointis "Characters with bidirectional property L".- See Also:
-