Class Characters

java.lang.Object
org.commonmark.text.Characters

public class Characters extends Object
Functions for finding characters in strings or checking characters.
  • Constructor Details

    • Characters

      public Characters()
  • Method Details

    • find

      public static int find(char c, CharSequence s, int startIndex)
    • findLineBreak

      public static int findLineBreak(CharSequence s, int startIndex)
    • isBlank

      public static boolean isBlank(CharSequence s)
      See Also:
    • hasNonSpace

      public static boolean hasNonSpace(CharSequence s)
    • isLetter

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

      public static boolean isSpaceOrTab(CharSequence s, int index)
    • 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

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

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

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

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