Skip to main content

Crate jprop

Crate jprop 

Source
Expand description

§jprop

no-std parser for java .properties files that actually works.

Structs§

InfallibleIO
Marker struct for I/O which cannot fail. Any Result or Enum variant that contains this type is unreachable.
ParserPosition

Enums§

CharacterInputError
Error enum for Parsing characters
Element
Element in a .properties file
ParserError

Traits§

ByteInput
ByteOutput
Byte-based output trait (Poor man’s std::io::Write)
CharacterInput
CharacterOutput
IntoChar
Helper trait for Into conversion that also supports &char.
PropertyHandler

Functions§

parse
Low-level parsing function. Parses a .properties file from a character-based input and invokes a callback handler for each Element of the .properties file that is parsed.
parse_bytes_iso_8859_1
Treat the bytes as a ISO-8859-1 string and parse them as a properties file.
parse_bytes_iso_8859_1_to_doc
Treat the bytes as a ISO-8859-1 string and parse them as a properties file.
parse_bytes_iso_8859_1_to_map
Treat the bytes as a ISO-8859-1 string and parse them as a properties file.
parse_bytes_iso_8859_1_to_vec
Treat the bytes as a ISO-8859-1 string and parse them as a properties file.
parse_bytes_utf8
Treat the bytes as utf-8 and parse them as a properties file.
parse_bytes_utf8_to_doc
Treat the bytes as utf-8 and parse them as a properties file.
parse_bytes_utf8_to_map
Treat the bytes as utf-8 and parse them as a properties file.
parse_bytes_utf8_to_vec
Treat the bytes as utf-8 and parse them as a properties file.
parse_chars
Parse the chars as a properties file.
parse_chars_to_doc
Parse the chars as a properties file.
parse_chars_to_map
Parse the chars as a properties file.
parse_chars_to_vec
Parse the chars as a properties file.
parse_iso_8859_1
Read bytes from a source and treat them as UTF-8 and then parse them as a properties file.
parse_iso_8859_1_to_doc
Read bytes from a source and treat them as a ISO-8859-1 String and then parse them as a properties file.
parse_iso_8859_1_to_map
Read bytes from a source and treat them as a ISO-8859-1 String and then parse them as a properties file.
parse_iso_8859_1_to_vec
Read bytes from a source and treat them as a ISO-8859-1 String and then parse them as a properties file.
parse_str
Parse the str as a properties file.
parse_str_to_doc
Parse the str as a properties file.
parse_str_to_map
Parse the str as a properties file.
parse_str_to_vec
Parse the str as a properties file.
parse_utf8
Read bytes from a source and treat them as UTF-8 and then parse them as a properties file.
parse_utf8_to_doc
Read bytes from a source and treat them as UTF-8 and then parse them as a properties file.
parse_utf8_to_map
Read bytes from a source and treat them as UTF-8 and then parse them as a properties file.
parse_utf8_to_vec
Read bytes from a source and treat them as UTF-8 and then parse them as a properties file.
write
Serialize a set of elements into a .properties file into some sort of character-based output. The escaping/charset depends on the implementation of the CharacterOutput.
write_ascii
Serialize a set of elements into a .properties file into some sort of byte-based output.
write_utf8
Serialize a set of elements into a .properties file into some sort of byte-based output.