Package org.commonmark.internal.util
Class LinkScanner
java.lang.Object
org.commonmark.internal.util.LinkScanner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isEscapable
(char c) static boolean
scanLinkDestination
(Scanner scanner) Attempt to scan a link destination, stopping after the destination or returning false.private static boolean
static boolean
scanLinkLabelContent
(Scanner scanner) Attempt to scan the contents of a link label (inside the brackets), stopping after the content or returning false.static boolean
scanLinkTitle
(Scanner scanner) static boolean
scanLinkTitleContent
(Scanner scanner, char endDelimiter)
-
Constructor Details
-
LinkScanner
public LinkScanner()
-
-
Method Details
-
scanLinkLabelContent
Attempt to scan the contents of a link label (inside the brackets), stopping after the content or returning false. The stopped position can bei either the closing]
, or the end of the line if the label continues on the next line. -
scanLinkDestination
Attempt to scan a link destination, stopping after the destination or returning false. -
scanLinkTitle
-
scanLinkTitleContent
-
scanLinkDestinationWithBalancedParens
-
isEscapable
private static boolean isEscapable(char c)
-