| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final @NotNull CharPredicate | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Escaping. | |
| private static final String | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Escaping. | |
| public static final String | |
| public static final String | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| pack-priv static final char[] | |
| private static Random | |
| private static final Escaping. | |
| private static final Escaping. | |
| private static final Escaping. | |
| private static final Escaping. | |
| private static final Escaping. | |
| private static final Pattern | |
| private static final String | |
| private static final Pattern | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static @NotNull String | Returns: processed sequencesequence to process s, boolean true if the sequence should also be trimmed trim)Collapse regions of multiple white spaces to a single space |
| public static @NotNull BasedSequence | |
| private static @Nullable String | |
| public static String | |
| public static @NotNull BasedSequence | escapeHtml(@NotNull BasedSequence s, boolean preserveEntities, @NotNull ReplacedTextMapper textMapper)
|
| public static @NotNull String | Returns: converted sequencesequence to convert s)Normalize eol: embedded \r and \r\n are converted to \n Append EOL sequence if sequence does not already end in EOL |
| public static @NotNull BasedSequence | Returns: converted sequencesequence to convert s, @NotNull ReplacedTextMapper text mapper to update for the replaced text textMapper)Normalize eol: embedded \r and \r\n are converted to \n Append EOL sequence if sequence does not already end in EOL |
| public static @NotNull String | Returns: converted sequencesequence to convert s)Normalize eol: embedded \r and \r\n are converted to \n |
| public static @NotNull String | Returns: converted sequencesequence to convert s, boolean true if an EOL is to be appended to the end of the sequence if not already ending with one. endWithEOL)Normalize eol: embedded \r and \r\n are converted to \n |
| public static @NotNull BasedSequence | Returns: converted sequencesequence to convert s, @NotNull ReplacedTextMapper text mapper to update for the replaced text textMapper)Normalize eol: embedded \r and \r\n are converted to \n |
| public static @NotNull BasedSequence | Returns: converted sequencesequence to convert s, @NotNull ReplacedTextMapper text mapper to update for the replaced text textMapper, boolean whether an EOL is to be appended to the end of the sequence if it does not already end with one. endWithEOL)Normalize eol: embedded \r and \r\n are converted to \n Append EOL sequence if sequence does not already end in EOL |
| public static @NotNull String | Returns: normalized link reference idsequence containing the link reference id s, boolean if true then reference will be converted to lowercase changeCase)Normalize the link reference id |
| public static @NotNull String | Returns: normalized link reference idsequence containing the link reference id s, boolean if true then reference will be converted to lowercase changeCase)Get a normalized the link reference id from reference characters Will remove leading ![ or [ and trailing ], collapse multiple whitespaces to a space and optionally convert the id to lowercase. |
| public static @NotNull String | |
| public static @NotNull String | |
| public static @NotNull BasedSequence | Returns: encoded stringstring to encode s, @NotNull ReplacedTextMapper text mapper to update for the replaced text textMapper)
|
| public static @NotNull String | |
| public static @NotNull BasedSequence | Returns: encoded stringstring to encode s, @NotNull ReplacedTextMapper text mapper to update for the replaced text textMapper)
|
| public static @NotNull BasedSequence | Returns: un-escaped sequencesequence being changed s, @NotNull CharSequence string to remove remove, @NotNull ReplacedTextMapper replaced text mapper to update for the changed text textMapper)Replace entities and backslash escapes with literal characters. |
| private static @NotNull String | |
| private static @NotNull BasedSequence | replaceAll(@NotNull Pattern p, @NotNull BasedSequence s, @NotNull Escaping.
|
| private static @NotNull BasedSequence | replaceAll(@NotNull Pattern p, @NotNull BasedSequence s, int startOffset, int endOffset, @NotNull Escaping.
|
| private static @NotNull BasedSequence | replaceAll(@NotNull Pattern p, @NotNull BasedSequence s, @NotNull List<Range> ranges, @NotNull Escaping.
|
| public static @NotNull BasedSequence | Returns: un-escaped sequencebased sequence to un-escape s, @NotNull ReplacedTextMapper replaced text mapper to update for the changed text textMapper)Replace entities and backslash escapes with literal characters. |
| public static @NotNull String | Returns: un-escaped stringstring to un-escape s)Replace entities and backslash escapes with literal characters. |
| public static @NotNull BasedSequence | Returns: un-escaped sequencebased sequence to un-escape s, @NotNull ReplacedTextMapper replaced text mapper to update for the changed text textMapper)Replace entities and backslash escapes with literal characters. |
| public static @NotNull BasedSequence | Returns: un-escaped sequencebased sequence to un-escape s, @NotNull List<Range> ranges, @NotNull ReplacedTextMapper replaced text mapper to update for the changed text textMapper)Replace entities and backslash escapes with literal characters. |
| public static @NotNull String | Returns: un-escaped stringstring to un-escape s)Replace entities and backslash escapes with literal characters. |
| public static @NotNull String | Returns: un-escaped stringstring to un-escape s, boolean true if HTML entities are to be unescaped unescapeEntities)Replace entities and backslash escapes with literal characters. |
| AMP_BACKSLASH_SET | back to summary |
|---|---|
| public static final @NotNull CharPredicate AMP_BACKSLASH_SET
| |
| AMP_ONLY | back to summary |
|---|---|
| private static final Pattern AMP_ONLY | |
| BACKSLASH_ONLY | back to summary |
|---|---|
| private static final Pattern BACKSLASH_ONLY | |
| BACKSLASH_OR_AMP | back to summary |
|---|---|
| private static final Pattern BACKSLASH_OR_AMP | |
| COLLAPSE_WHITESPACE | back to summary |
|---|---|
| private static final Pattern COLLAPSE_WHITESPACE | |
| COLLAPSE_WHITESPACE_REPLACER | back to summary |
|---|---|
| private static final Escaping. | |
| ENTITY | back to summary |
|---|---|
| private static final String ENTITY | |
| ENTITY_ONLY | back to summary |
|---|---|
| private static final Pattern ENTITY_ONLY | |
| ENTITY_OR_ESCAPED_CHAR | back to summary |
|---|---|
| private static final Pattern ENTITY_OR_ESCAPED_CHAR | |
| ENTITY_REPLACER | back to summary |
|---|---|
| private static final Escaping. | |
| ESCAPABLE | back to summary |
|---|---|
| public static final String ESCAPABLE | |
| ESCAPABLE_CHARS | back to summary |
|---|---|
| public static final String ESCAPABLE_CHARS | |
| ESCAPE_IN_URI | back to summary |
|---|---|
| private static final Pattern ESCAPE_IN_URI | |
| ESCAPE_URI_DECODE | back to summary |
|---|---|
| private static final Pattern ESCAPE_URI_DECODE | |
| ESCAPED_CHAR | back to summary |
|---|---|
| private static final Pattern ESCAPED_CHAR | |
| HEX_DIGITS | back to summary |
|---|---|
| pack-priv static final char[] HEX_DIGITS | |
| random | back to summary |
|---|---|
| private static Random random | |
| REMOVE_REPLACER | back to summary |
|---|---|
| private static final Escaping. | |
| UNESCAPE_REPLACER | back to summary |
|---|---|
| private static final Escaping. | |
| UNSAFE_CHAR_REPLACER | back to summary |
|---|---|
| private static final Escaping. | |
| URL_DECODE_REPLACER | back to summary |
|---|---|
| private static final Escaping. | |
| URL_ENCODE_REPLACER | back to summary |
|---|---|
| private static final Escaping. | |
| WHITESPACE | back to summary |
|---|---|
| private static final Pattern WHITESPACE | |
| XML_SPECIAL | back to summary |
|---|---|
| private static final String XML_SPECIAL | |
| XML_SPECIAL_OR_ENTITY | back to summary |
|---|---|
| private static final Pattern XML_SPECIAL_OR_ENTITY | |
| XML_SPECIAL_RE | back to summary |
|---|---|
| private static final Pattern XML_SPECIAL_RE | |
| Escaping | back to summary |
|---|---|
| public Escaping() | |
| collapseWhitespace | back to summary |
|---|---|
| public static @NotNull String collapseWhitespace(@NotNull CharSequence s, boolean trim) Collapse regions of multiple white spaces to a single space
| |
| collapseWhitespace | back to summary |
|---|---|
public static @NotNull BasedSequence collapseWhitespace(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)
| |
| encode | back to summary |
|---|---|
private static @Nullable String encode(char c)
| |
| escapeHtml | back to summary |
|---|---|
| public static String escapeHtml(@NotNull CharSequence s, boolean preserveEntities) | |
| escapeHtml | back to summary |
|---|---|
public static @NotNull BasedSequence escapeHtml(@NotNull BasedSequence s, boolean preserveEntities, @NotNull ReplacedTextMapper textMapper)
| |
| normalizeEndWithEOL | back to summary |
|---|---|
| public static @NotNull String normalizeEndWithEOL(@NotNull CharSequence s) Normalize eol: embedded \r and \r\n are converted to \n Append EOL sequence if sequence does not already end in EOL
| |
| normalizeEndWithEOL | back to summary |
|---|---|
| public static @NotNull BasedSequence normalizeEndWithEOL(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper) Normalize eol: embedded \r and \r\n are converted to \n Append EOL sequence if sequence does not already end in EOL
| |
| normalizeEOL | back to summary |
|---|---|
| public static @NotNull String normalizeEOL(@NotNull CharSequence s) Normalize eol: embedded \r and \r\n are converted to \n
| |
| normalizeEOL | back to summary |
|---|---|
| public static @NotNull String normalizeEOL(@NotNull CharSequence s, boolean endWithEOL) Normalize eol: embedded \r and \r\n are converted to \n
| |
| normalizeEOL | back to summary |
|---|---|
| public static @NotNull BasedSequence normalizeEOL(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper) Normalize eol: embedded \r and \r\n are converted to \n
| |
| normalizeEOL | back to summary |
|---|---|
| public static @NotNull BasedSequence normalizeEOL(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper, boolean endWithEOL) Normalize eol: embedded \r and \r\n are converted to \n Append EOL sequence if sequence does not already end in EOL
| |
| normalizeReference | back to summary |
|---|---|
| public static @NotNull String normalizeReference(@NotNull CharSequence s, boolean changeCase) Normalize the link reference id
| |
| normalizeReferenceChars | back to summary |
|---|---|
| public static @NotNull String normalizeReferenceChars(@NotNull CharSequence s, boolean changeCase) Get a normalized the link reference id from reference characters Will remove leading ![ or [ and trailing ], collapse multiple whitespaces to a space and optionally convert the id to lowercase.
| |
| obfuscate | back to summary |
|---|---|
| public static @NotNull String obfuscate(@NotNull String email, boolean randomize) e-mail obfuscation from pegdown | |
| percentDecodeUrl | back to summary |
|---|---|
public static @NotNull String percentDecodeUrl(@NotNull CharSequence s)
| |
| percentDecodeUrl | back to summary |
|---|---|
public static @NotNull BasedSequence percentDecodeUrl(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)
| |
| percentEncodeUrl | back to summary |
|---|---|
public static @NotNull String percentEncodeUrl(@NotNull CharSequence s)
| |
| percentEncodeUrl | back to summary |
|---|---|
public static @NotNull BasedSequence percentEncodeUrl(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)
| |
| removeAll | back to summary |
|---|---|
| public static @NotNull BasedSequence removeAll(@NotNull BasedSequence s, @NotNull CharSequence remove, @NotNull ReplacedTextMapper textMapper) Replace entities and backslash escapes with literal characters.
| |
| replaceAll | back to summary |
|---|---|
private static @NotNull String replaceAll(@NotNull Pattern p, @NotNull CharSequence s, @NotNull Escaping.
| |
| replaceAll | back to summary |
|---|---|
private static @NotNull BasedSequence replaceAll(@NotNull Pattern p, @NotNull BasedSequence s, @NotNull Escaping.
| |
| replaceAll | back to summary |
|---|---|
private static @NotNull BasedSequence replaceAll(@NotNull Pattern p, @NotNull BasedSequence s, int startOffset, int endOffset, @NotNull Escaping.
| |
| replaceAll | back to summary |
|---|---|
private static @NotNull BasedSequence replaceAll(@NotNull Pattern p, @NotNull BasedSequence s, @NotNull List<Range> ranges, @NotNull Escaping.
| |
| unescape | back to summary |
|---|---|
| public static @NotNull BasedSequence unescape(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper) Replace entities and backslash escapes with literal characters.
| |
| unescapeHtml | back to summary |
|---|---|
| public static @NotNull String unescapeHtml(@NotNull CharSequence s) Replace entities and backslash escapes with literal characters.
| |
| unescapeHtml | back to summary |
|---|---|
| public static @NotNull BasedSequence unescapeHtml(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper) Replace entities and backslash escapes with literal characters.
| |
| unescapeHtml | back to summary |
|---|---|
| public static @NotNull BasedSequence unescapeHtml(@NotNull BasedSequence s, @NotNull List<Range> ranges, @NotNull ReplacedTextMapper textMapper) Replace entities and backslash escapes with literal characters.
| |
| unescapeString | back to summary |
|---|---|
| public static @NotNull String unescapeString(@NotNull CharSequence s) Replace entities and backslash escapes with literal characters.
| |
| unescapeString | back to summary |
|---|---|
| public static @NotNull String unescapeString(@NotNull CharSequence s, boolean unescapeEntities) Replace entities and backslash escapes with literal characters.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | replace(@NotNull BasedSequence s, int startIndex, int endIndex, @NotNull ReplacedTextMapper replacedTextMapper)
|
| replace | back to summary |
|---|---|
| public void replace(@NotNull String s, @NotNull StringBuilder sb) | |
| replace | back to summary |
|---|---|
| public void replace(@NotNull BasedSequence s, int startIndex, int endIndex, @NotNull ReplacedTextMapper replacedTextMapper) | |