Package com.ongres.stringprep
Class Tables
- java.lang.Object
-
- com.ongres.stringprep.Tables
-
public final class Tables extends java.lang.Object
Expose tables parsed from the StringPrep RFC-3454.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Tables()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
bidirectionalPropertyL(int codePoint)
Characters with bidirectional property "L".static boolean
bidirectionalPropertyRorAL(int codePoint)
Characters with bidirectional property "R" or "AL".static boolean
mapToNothing(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 boolean
prohibitionAsciiControl(int codePoint)
ASCII control characters.static boolean
prohibitionAsciiSpace(int codePoint)
ASCII space characters.static boolean
prohibitionChangeDisplayProperties(int codePoint)
Change display properties or are deprecated.static boolean
prohibitionInappropriateCanonicalRepresentation(int codePoint)
Inappropriate for canonical representation.static boolean
prohibitionInappropriatePlainText(int codePoint)
Inappropriate for plain text.static boolean
prohibitionNonAsciiControl(int codePoint)
Non-ASCII control characters.static boolean
prohibitionNonAsciiSpace(int codePoint)
Non-ASCII space characters.static boolean
prohibitionNonCharacterCodePoints(int codePoint)
Non-character code points.static boolean
prohibitionPrivateUse(int codePoint)
Private use.static boolean
prohibitionSurrogateCodes(int codePoint)
Surrogate codes.static boolean
prohibitionTaggingCharacters(int codePoint)
Tagging characters.static boolean
unassignedCodePoints(int codePoint)
Unassigned code points in Unicode 3.2.
-
-
-
Method Detail
-
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:
true
if the givencodePoint
is "Unassigned code points in Unicode 3.2".- See Also:
- RFC 3454, Appendix A.1
-
mapToNothing
public static boolean mapToNothing(int codePoint)
Commonly mapped to nothing.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "Commonly mapped to nothing".- See Also:
- RFC 3454, Appendix B.1
-
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:
- RFC 3454, Appendix B.2
-
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:
- RFC 3454, Appendix B.3
-
prohibitionAsciiSpace
public static boolean prohibitionAsciiSpace(int codePoint)
ASCII space characters.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "ASCII space characters".- See Also:
- RFC 3454, Appendix C.1.1
-
prohibitionNonAsciiSpace
public static boolean prohibitionNonAsciiSpace(int codePoint)
Non-ASCII space characters.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "Non-ASCII space characters".- See Also:
- RFC 3454, Appendix C.1.2
-
prohibitionAsciiControl
public static boolean prohibitionAsciiControl(int codePoint)
ASCII control characters.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "ASCII control characters".- See Also:
- RFC 3454, Appendix C.2.1
-
prohibitionNonAsciiControl
public static boolean prohibitionNonAsciiControl(int codePoint)
Non-ASCII control characters.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "Non-ASCII control characters".- See Also:
- RFC 3454, Appendix C.2.2
-
prohibitionPrivateUse
public static boolean prohibitionPrivateUse(int codePoint)
Private use.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "Private use".- See Also:
- RFC 3454, Appendix C.3
-
prohibitionNonCharacterCodePoints
public static boolean prohibitionNonCharacterCodePoints(int codePoint)
Non-character code points.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "Non-character code points".- See Also:
- RFC 3454, Appendix C.4
-
prohibitionSurrogateCodes
public static boolean prohibitionSurrogateCodes(int codePoint)
Surrogate codes.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "Surrogate codes".- See Also:
- RFC 3454, Appendix C.5
-
prohibitionInappropriatePlainText
public static boolean prohibitionInappropriatePlainText(int codePoint)
Inappropriate for plain text.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "Inappropriate for plain text".- See Also:
- RFC 3454, Appendix C.6
-
prohibitionInappropriateCanonicalRepresentation
public static boolean prohibitionInappropriateCanonicalRepresentation(int codePoint)
Inappropriate for canonical representation.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "Inappropriate for canonical representation".- See Also:
- RFC 3454, Appendix C.7
-
prohibitionChangeDisplayProperties
public static boolean prohibitionChangeDisplayProperties(int codePoint)
Change display properties or are deprecated.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "Change display properties or are deprecated".- See Also:
- RFC 3454, Appendix C.8
-
prohibitionTaggingCharacters
public static boolean prohibitionTaggingCharacters(int codePoint)
Tagging characters.- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "Tagging characters".- See Also:
- RFC 3454, Appendix C.9
-
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:
true
if the givencodePoint
is "Characters with bidirectional property R or AL".- See Also:
- RFC 3454, Appendix D.1
-
bidirectionalPropertyL
public static boolean bidirectionalPropertyL(int codePoint)
Characters with bidirectional property "L".- Parameters:
codePoint
- the character (Unicode code point) to be tested.- Returns:
true
if the givencodePoint
is "Characters with bidirectional property L".- See Also:
- RFC 3454, Appendix D.2
-
-