void () { String text = """ class C { String s = ""\" abc \\ \\ def ghi ""\"; }"""; int offset = text.indexOf("def"); TextContent content = extractText("a.java", text, offset); assertEquals("abc def\n ghi", content.toString()); assertEquals(offset, content.textOffsetToFile("abc ".length())); }