Module eini

Data Types

property()

property() = {Key::atom(), Value::binary()}

reason()

reason() = {illegal_character, Line::integer(), Reason::string()} | {syntax_error, Line::integer(), Reason::string()} | {duplicate_title, Title::binary()} | {duplicate_key, Title::binary(), Key::binary()}

section()

section() = {Title::atom(), [property()]}

sections()

sections() = [section()]

Function Index

code_change/3
handle_call/3
handle_cast/2
handle_info/2
init/1
is_section/2
lex/1
lookup_value/3
parse/1
parse_tokens/1
register/2
register/4
start_link/0
terminate/2

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> any()

handle_call/3

handle_call(Request, From, State) -> any()

handle_cast/2

handle_cast(Request, State) -> any()

handle_info/2

handle_info(Request, State) -> any()

init/1

init(Args) -> any()

is_section/2

is_section(Filename::file:name(), Section::atom()) -> boolean()

lex/1

lex(String::string()) -> {ok, [Token::tuple()]} | {error, {illegal_character, Line::integer(), Reason::string()}}

lookup_value/3

lookup_value(Filename::file:name(), Section::atom(), Key::atom()) -> not_found | binary()

parse/1

parse(Content::string() | binary()) -> {ok, sections()} | {error, reason()}

parse_tokens/1

parse_tokens(Token::tuple()) -> {ok, sections()} | {error, {syntax_error, Line::integer(), Reason::string()}}

register/2

register(Filename::file:name(), Binary::binary()) -> ok | {error, reason()}

register/4

register(Filename::file:name(), Section::atom(), Key::atom(), Value::any()) -> ok | {error, duplicate_key}

start_link/0

start_link() -> any()

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc