Package org.commonmark.text
Class Characters
- java.lang.Object
-
- org.commonmark.text.Characters
-
public class Characters extends java.lang.ObjectFunctions for finding characters in strings or checking characters.
-
-
Constructor Summary
Constructors Constructor Description Characters()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intfind(char c, java.lang.CharSequence s, int startIndex)static intfindLineBreak(java.lang.CharSequence s, int startIndex)static booleanhasNonSpace(java.lang.CharSequence s)static booleanisBlank(java.lang.CharSequence s)static booleanisLetter(java.lang.CharSequence s, int index)static booleanisPunctuationCodePoint(int codePoint)static booleanisSpaceOrTab(java.lang.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, java.lang.CharSequence s, int startIndex, int endIndex)static intskipBackwards(char skip, java.lang.CharSequence s, int startIndex, int lastIndex)static intskipSpaceTab(java.lang.CharSequence s, int startIndex, int endIndex)static intskipSpaceTabBackwards(java.lang.CharSequence s, int startIndex, int lastIndex)
-
-
-
Method Detail
-
find
public static int find(char c, java.lang.CharSequence s, int startIndex)
-
findLineBreak
public static int findLineBreak(java.lang.CharSequence s, int startIndex)
-
isBlank
public static boolean isBlank(java.lang.CharSequence s)
- See Also:
- blank line
-
hasNonSpace
public static boolean hasNonSpace(java.lang.CharSequence s)
-
isLetter
public static boolean isLetter(java.lang.CharSequence s, int index)
-
isSpaceOrTab
public static boolean isSpaceOrTab(java.lang.CharSequence s, int index)
-
isPunctuationCodePoint
public static boolean isPunctuationCodePoint(int codePoint)
- See Also:
- Unicode punctuation character
-
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:
- Unicode whitespace character
-
skip
public static int skip(char skip, java.lang.CharSequence s, int startIndex, int endIndex)
-
skipBackwards
public static int skipBackwards(char skip, java.lang.CharSequence s, int startIndex, int lastIndex)
-
skipSpaceTab
public static int skipSpaceTab(java.lang.CharSequence s, int startIndex, int endIndex)
-
skipSpaceTabBackwards
public static int skipSpaceTabBackwards(java.lang.CharSequence s, int startIndex, int lastIndex)
-
-