@Immutable public final class ABNF extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CHECK_RANGE_MAX_INCL |
static int |
CHECK_RANGE_MIN_INCL |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAlpha(int nCP)
Check if the passed code point matches the following rules:
%x41-5A / %x61-7A ; A-Z / a-z |
static boolean |
isBit(int nCP)
Check if the passed code point matches the following rules:
"0" / "1" |
static boolean |
isChar(int nCP)
Check if the passed code point matches the following rules:
%x01-7F → any 7-bit US-ASCII character, excluding NUL |
static boolean |
isCR(int nCP)
Check if the passed code point matches the following rules:
%x0D → carriage return |
static boolean |
isCtl(int nCP)
Check if the passed code point matches the following rules:
%x00-1F / %x7F → controls |
static boolean |
isDigit(int nCP)
Check if the passed code point matches the following rules:
%x30-39 → 0-9 |
static boolean |
isDQuote(int nCP)
Check if the passed code point matches the following rules:
%x22 → " (Double Quote) |
static boolean |
isHexDigit(int nCP)
Check if the passed code point matches the following rules:
DIGIT / "A" / "B" / "C" / "D" / "E" / "F" |
static boolean |
isHexDigitCaseInsensitive(int nCP)
Check if the passed code point matches the following rules:
DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
/ "a" / "b" / "c" / "d" / "e" / "f" Note: this is a non-standard extension! |
static boolean |
isHTab(int nCP)
Check if the passed code point matches the following rules:
%x09 → horizontal tab |
static boolean |
isLF(int nCP)
Check if the passed code point matches the following rules:
%x0A → linefeed |
static boolean |
isOctet(int nCP)
Check if the passed code point matches the following rules:
%x00-FF → 8 bits of data |
static boolean |
isSP(int nCP)
Check if the passed code point matches the following rules:
%x20 |
static boolean |
isVChar(int nCP)
Check if the passed code point matches the following rules:
%x21-7E → visible (printing) characters |
static boolean |
isWSP(int nCP)
Check if the passed code point matches the following rules:
SP / HTAB → white space |
public static final int CHECK_RANGE_MIN_INCL
public static final int CHECK_RANGE_MAX_INCL
public static boolean isAlpha(int nCP)
%x41-5A / %x61-7A ; A-Z / a-znCP - Code point to check.true if it matches the rulespublic static boolean isBit(int nCP)
"0" / "1"nCP - Code point to check.true if it matches the rulespublic static boolean isChar(int nCP)
%x01-7F → any 7-bit US-ASCII character, excluding NULnCP - Code point to check.true if it matches the rulespublic static boolean isCR(int nCP)
%x0D → carriage returnnCP - Code point to check.true if it matches the rulespublic static boolean isCtl(int nCP)
%x00-1F / %x7F → controlsnCP - Code point to check.true if it matches the rulespublic static boolean isDigit(int nCP)
%x30-39 → 0-9nCP - Code point to check.true if it matches the rulespublic static boolean isDQuote(int nCP)
%x22 → " (Double Quote)nCP - Code point to check.true if it matches the rulespublic static boolean isHexDigit(int nCP)
DIGIT / "A" / "B" / "C" / "D" / "E" / "F"nCP - Code point to check.true if it matches the rulesisHexDigitCaseInsensitive(int)public static boolean isHexDigitCaseInsensitive(int nCP)
DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
/ "a" / "b" / "c" / "d" / "e" / "f" nCP - Code point to check.true if it matches the rulesisHexDigit(int)public static boolean isHTab(int nCP)
%x09 → horizontal tabnCP - Code point to check.true if it matches the rulespublic static boolean isLF(int nCP)
%x0A → linefeednCP - Code point to check.true if it matches the rulespublic static boolean isOctet(int nCP)
%x00-FF → 8 bits of datanCP - Code point to check.true if it matches the rulespublic static boolean isSP(int nCP)
%x20nCP - Code point to check.true if it matches the rulespublic static boolean isVChar(int nCP)
%x21-7E → visible (printing) charactersnCP - Code point to check.true if it matches the rulespublic static boolean isWSP(int nCP)
SP / HTAB → white spacenCP - Code point to check.true if it matches the rulesCopyright © 2014–2022 Philip Helger. All rights reserved.