APIdia Launch Partner
Top Description Constructors Methods
jdk.internal.org.commonmark.text

public Class Characters

extends Object
Class Inheritance

Functions for finding characters in strings or checking characters.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int
find(char c, CharSequence s, int startIndex)

public static int
findLineBreak(CharSequence s, int startIndex)

public static boolean
public static boolean
public static boolean
isLetter(CharSequence s, int index)

public static boolean
isPunctuationCodePoint(int codePoint)

public static boolean
isSpaceOrTab(CharSequence s, int index)

public static boolean
isWhitespaceCodePoint(int codePoint)

Check whether the provided code point is a Unicode whitespace character as defined in the spec.

public static int
skip(char skip, CharSequence s, int startIndex, int endIndex)

public static int
skipBackwards(char skip, CharSequence s, int startIndex, int lastIndex)

public static int
skipSpaceTab(CharSequence s, int startIndex, int endIndex)

public static int
skipSpaceTabBackwards(CharSequence s, int startIndex, int lastIndex)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Charactersback to summary
public Characters()

Method Detail

findback to summary
public static int find(char c, CharSequence s, int startIndex)
findLineBreakback to summary
public static int findLineBreak(CharSequence s, int startIndex)
hasNonSpaceback to summary
public static boolean hasNonSpace(CharSequence s)
isBlankback to summary
public static boolean isBlank(CharSequence s)
See Also
blank line
isLetterback to summary
public static boolean isLetter(CharSequence s, int index)
isPunctuationCodePointback to summary
public static boolean isPunctuationCodePoint(int codePoint)
See Also
Unicode punctuation character
isSpaceOrTabback to summary
public static boolean isSpaceOrTab(CharSequence s, int index)
isWhitespaceCodePointback to summary
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
skipback to summary
public static int skip(char skip, CharSequence s, int startIndex, int endIndex)
skipBackwardsback to summary
public static int skipBackwards(char skip, CharSequence s, int startIndex, int lastIndex)
skipSpaceTabback to summary
public static int skipSpaceTab(CharSequence s, int startIndex, int endIndex)
skipSpaceTabBackwardsback to summary
public static int skipSpaceTabBackwards(CharSequence s, int startIndex, int lastIndex)