Package org.snakeyaml.engine.v2.common
Class CharConstants
java.lang.Object
org.snakeyaml.engine.v2.common.CharConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CharConstants
private static final String
private static final int
(package private) boolean[]
A mapping from a character to a number of bytes to read-ahead for that escape sequence.A mapping from an escaped character in the input stream to the character that they should be replaced with.private static final String
static final CharConstants
private static final String
static final CharConstants
private static final String
static final CharConstants
static final CharConstants
private static final String
private static final String
static final CharConstants
private static final String
static final CharConstants
static final CharConstants
private static final String
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ALPHA_S
- See Also:
-
LINEBR_S
- See Also:
-
FULL_LINEBR_S
- See Also:
-
NULL_OR_LINEBR_S
- See Also:
-
NULL_BL_LINEBR_S
- See Also:
-
NULL_BL_T_LINEBR_S
- See Also:
-
NULL_BL_T_S
- See Also:
-
URI_CHARS_SUFFIX_S
- See Also:
-
LINEBR
-
NULL_OR_LINEBR
-
NULL_BL_LINEBR
-
NULL_BL_T_LINEBR
-
NULL_BL_T
-
URI_CHARS_FOR_TAG_PREFIX
-
URI_CHARS_FOR_TAG_SUFFIX
-
ALPHA
-
ASCII_SIZE
private static final int ASCII_SIZE- See Also:
-
contains
boolean[] contains -
ESCAPE_REPLACEMENTS
A mapping from an escaped character in the input stream to the character that they should be replaced with.YAML defines several common and a few uncommon escape sequences.
-
ESCAPE_CODES
A mapping from a character to a number of bytes to read-ahead for that escape sequence. These escape sequences are used to handle unicode escaping in the following formats, where H is a hexadecimal character:\xHH : escaped 8-bit Unicode character \uHHHH : escaped 16-bit Unicode character \UHHHHHHHH : escaped 32-bit Unicode character
-
-
Constructor Details
-
CharConstants
-
-
Method Details
-
has
public boolean has(int c) -
hasNo
public boolean hasNo(int c) -
has
-
hasNo
-
escapeChar
Replace a single character with its string representation- Parameters:
chRepresentation
- - the char to escape- Returns:
- the same string or its escaped representation
-