@Test void testHardExampleUnicode() throws Exception { InputStream is = this.getClass().getResourceAsStream("/net/consensys/cava/toml/hard_example_unicode.toml"); assertNotNull(is); TomlParseResult result = Toml.parse(is, TomlVersion.V0_4_0); assertFalse(result.hasErrors(), () -> joinErrors(result)); assertEquals("Ýôú'ℓℓ λáƭè ₥è áƒƭèř ƭλïƨ - #", result.getString("the.test_string")); assertEquals(" Âñδ ωλèñ \"'ƨ ářè ïñ ƭλè ƨƭřïñϱ, áℓôñϱ ωïƭλ # \"", result.getString("the.hard.harder_test_string")); assertEquals("]", result.getArray("the.hard.'βïƭ#'.multi_line_array").getString(0)); }
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);  }