Package org.commonmark.text
Class Characters
java.lang.Object
org.commonmark.text.Characters
Functions for finding characters in strings or checking characters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
find
(char c, CharSequence s, int startIndex) static int
findLineBreak
(CharSequence s, int startIndex) static boolean
static boolean
static boolean
isLetter
(CharSequence s, int index) static boolean
isPunctuationCodePoint
(int codePoint) static boolean
isSpaceOrTab
(CharSequence s, int index) static boolean
isWhitespaceCodePoint
(int codePoint) Check whether the provided code point is a Unicode whitespace character as defined in the spec.static int
skip
(char skip, CharSequence s, int startIndex, int endIndex) static int
skipBackwards
(char skip, CharSequence s, int startIndex, int lastIndex) static int
skipSpaceTab
(CharSequence s, int startIndex, int endIndex) static int
skipSpaceTabBackwards
(CharSequence s, int startIndex, int lastIndex)
-
Constructor Details
-
Characters
public Characters()
-
-
Method Details
-
find
-
findLineBreak
-
isBlank
- See Also:
-
hasNonSpace
-
isLetter
-
isSpaceOrTab
-
isPunctuationCodePoint
public static boolean isPunctuationCodePoint(int codePoint) - See Also:
-
isWhitespaceCodePoint
public static boolean isWhitespaceCodePoint(int codePoint) Check whether the provided code point is a Unicode whitespace character as defined in the spec.- See Also:
-
skip
-
skipBackwards
-
skipSpaceTab
-
skipSpaceTabBackwards
-