Package org.apache.jena.irix
Class Chars3986
java.lang.Object
org.apache.jena.irix.Chars3986
Characters and character classes
-
Field Summary
Modifier and TypeFieldDescriptionstatic final char
End of file/string marker - this is not a valid Unicode codepoint. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic char
charAt
(CharSequence str, int x) String.charAt except with an EOF character, not an exception.static String
displayChar
(char ch) Return a display string for a character suitable for error messages.static boolean
genDelims
(char ch) RFC 3986 : gen-delims / sub-delimsstatic int
hexValue
(char ch) static boolean
int_isIPrivate
(int ch) static boolean
int_isUcsChar
(int ch) static boolean
isAlpha
(char ch) static boolean
isDigit
(char ch) static boolean
isHexDigit
(char ch) HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" but also lower case (non-normalized form).static boolean
isIAlpha
(char ch) RFC3987: International alphabetic.static boolean
RFC3987 ipcharstatic boolean
isIPrivate
(char ch) static boolean
RFC3986 pcharstatic boolean
isPctEncoded
(char ch, CharSequence s, int x) Test whether the character at location 'x' is percent-encoded.static boolean
isUcsChar
(char ch) static boolean
iunreserved
(char ch) RFC 3987 : iunreservedstatic boolean
range
(int ch, int start, int finish) Test whether a character is in a character range (both ends inclusive)static boolean
subDelims
(char ch) RFC 3986 : sub-delimsstatic boolean
unreserved
(char ch) RFC 3986 : unreserved
-
Field Details
-
EOF
public static final char EOFEnd of file/string marker - this is not a valid Unicode codepoint.- See Also:
-
-
Constructor Details
-
Chars3986
public Chars3986()
-
-
Method Details
-
isPChar
RFC3986 pchar -
isIPChar
RFC3987 ipchar -
isPctEncoded
Test whether the character at location 'x' is percent-encoded. This operation needs to look at next two characters if and only if ch is '%'.This function looks ahead 2 characters which will be parsed but likely they are in the L1 or L2 cache and the alternative is more complex logic (return the new character position in some way).
-
isAlpha
public static boolean isAlpha(char ch) -
isIAlpha
public static boolean isIAlpha(char ch) RFC3987: International alphabetic. -
isUcsChar
public static boolean isUcsChar(char ch) -
int_isUcsChar
public static boolean int_isUcsChar(int ch) -
isIPrivate
public static boolean isIPrivate(char ch) -
int_isIPrivate
public static boolean int_isIPrivate(int ch) -
unreserved
public static boolean unreserved(char ch) RFC 3986 : unreserved -
iunreserved
public static boolean iunreserved(char ch) RFC 3987 : iunreserved -
subDelims
public static boolean subDelims(char ch) RFC 3986 : sub-delims -
genDelims
public static boolean genDelims(char ch) RFC 3986 : gen-delims / sub-delims -
displayChar
Return a display string for a character suitable for error messages. -
charAt
String.charAt except with an EOF character, not an exception. -
range
public static boolean range(int ch, int start, int finish) Test whether a character is in a character range (both ends inclusive) -
isDigit
public static boolean isDigit(char ch) -
isHexDigit
public static boolean isHexDigit(char ch) HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" but also lower case (non-normalized form). See RFC 3986 sec 6.2.2.1 -
hexValue
public static int hexValue(char ch)
-