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 intfind(char c, CharSequence s, int startIndex) static intfindLineBreak(CharSequence s, int startIndex) static booleanstatic booleanstatic booleanisLetter(CharSequence s, int index) static booleanisPunctuationCodePoint(int codePoint) static booleanisSpaceOrTab(CharSequence s, int index) static booleanisWhitespaceCodePoint(int codePoint) Check whether the provided code point is a Unicode whitespace character as defined in the spec.static intskip(char skip, CharSequence s, int startIndex, int endIndex) static intskipBackwards(char skip, CharSequence s, int startIndex, int lastIndex) static intskipSpaceTab(CharSequence s, int startIndex, int endIndex) static intskipSpaceTabBackwards(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
-