Package org.commonmark.text
Class Characters
- java.lang.Object
-
- org.commonmark.text.Characters
-
public class Characters extends java.lang.Object
Functions 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 int
find(char c, java.lang.CharSequence s, int startIndex)
static int
findLineBreak(java.lang.CharSequence s, int startIndex)
static boolean
hasNonSpace(java.lang.CharSequence s)
static boolean
isBlank(java.lang.CharSequence s)
static boolean
isLetter(java.lang.CharSequence s, int index)
static boolean
isPunctuationCodePoint(int codePoint)
static boolean
isSpaceOrTab(java.lang.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, java.lang.CharSequence s, int startIndex, int endIndex)
static int
skipBackwards(char skip, java.lang.CharSequence s, int startIndex, int lastIndex)
static int
skipSpaceTab(java.lang.CharSequence s, int startIndex, int endIndex)
static int
skipSpaceTabBackwards(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)
-
-