@Test void shouldFailForInvalidUnicodeEscape() { TomlParseResult result = Toml.parse("foo = \"\\UFFFF00FF\""); assertTrue(result.hasErrors()); TomlParseError error = result.errors().get(0); assertEquals("Invalid unicode escape sequence", error.getMessage()); assertEquals(1, error.position().line()); assertEquals(8, error.position().column()); }
public static TomlParseResult parse(String input) { return parse(input, TomlVersion.LATEST); }
Toml { public static TomlParseResult parse(String input) { return parse(input, TomlVersion.LATEST); } }
Toml { public static TomlParseResult parse(String input) { return parse(input, TomlVersion.LATEST); } private  Toml(); }
Toml { public static TomlParseResult parse(String input) { return parse(input, TomlVersion.LATEST); } private  Toml(); static TomlParseResult parse(String input); static TomlParseResult parse(String input, TomlVersion version); static TomlParseResult parse(Path file); static TomlParseResult parse(Path file, TomlVersion version); static TomlParseResult parse(InputStream is); static TomlParseResult parse(InputStream is, TomlVersion version); static TomlParseResult parse(Reader reader); static TomlParseResult parse(Reader reader, TomlVersion version); static TomlParseResult parse(ReadableByteChannel channel); static TomlParseResult parse(ReadableByteChannel channel, TomlVersion version); static List<String> parseDottedKey(String dottedKey); static String joinKeyPath(List<String> path); static String canonicalDottedKey(String dottedKey); static StringBuilder tomlEscape(String text); }
Toml { public static TomlParseResult parse(String input) { return parse(input, TomlVersion.LATEST); } private  Toml(); static TomlParseResult parse(String input); static TomlParseResult parse(String input, TomlVersion version); static TomlParseResult parse(Path file); static TomlParseResult parse(Path file, TomlVersion version); static TomlParseResult parse(InputStream is); static TomlParseResult parse(InputStream is, TomlVersion version); static TomlParseResult parse(Reader reader); static TomlParseResult parse(Reader reader, TomlVersion version); static TomlParseResult parse(ReadableByteChannel channel); static TomlParseResult parse(ReadableByteChannel channel, TomlVersion version); static List<String> parseDottedKey(String dottedKey); static String joinKeyPath(List<String> path); static String canonicalDottedKey(String dottedKey); static StringBuilder tomlEscape(String text);  }