@Test public void unescape() { PotentialBracketEndDelimiter delimiter = new PotentialBracketEndDelimiter(line, 0); assertEquals("(", delimiter.unescapeBackslashEscapes("\\(")); assertEquals("abc(def", delimiter.unescapeBackslashEscapes("abc\\(def")); }
String unescapeBackslashEscapes(String stringWithBackslashEscapes) { return stringWithBackslashEscapes.replaceAll(CAPTURING_ESCAPED_CHARS, "$1"); }
PotentialBracketEndDelimiter extends InlineWithText { String unescapeBackslashEscapes(String stringWithBackslashEscapes) { return stringWithBackslashEscapes.replaceAll(CAPTURING_ESCAPED_CHARS, "$1"); } }
PotentialBracketEndDelimiter extends InlineWithText { String unescapeBackslashEscapes(String stringWithBackslashEscapes) { return stringWithBackslashEscapes.replaceAll(CAPTURING_ESCAPED_CHARS, "$1"); } PotentialBracketEndDelimiter(Line line, int offset); }
PotentialBracketEndDelimiter extends InlineWithText { String unescapeBackslashEscapes(String stringWithBackslashEscapes) { return stringWithBackslashEscapes.replaceAll(CAPTURING_ESCAPED_CHARS, "$1"); } PotentialBracketEndDelimiter(Line line, int offset); @Override void emit(DocumentBuilder builder); @Override void apply(ProcessingContext context, List<Inline> inlines, Cursor cursor); void truncate(List<Inline> inlines, int indexOfOpeningDelimiter); }
PotentialBracketEndDelimiter extends InlineWithText { String unescapeBackslashEscapes(String stringWithBackslashEscapes) { return stringWithBackslashEscapes.replaceAll(CAPTURING_ESCAPED_CHARS, "$1"); } PotentialBracketEndDelimiter(Line line, int offset); @Override void emit(DocumentBuilder builder); @Override void apply(ProcessingContext context, List<Inline> inlines, Cursor cursor); void truncate(List<Inline> inlines, int indexOfOpeningDelimiter);  }