Module toml.decoder stdlib

toml.decoder
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
5
Imported by:
1
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imported by

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn decode_quoted_escapes

fn decode_quoted_escapes(mut q &toml.ast.Quoted) !

decode_quoted_escapes returns an error for any disallowed escape sequences.

Delimiters in TOML has significant meaning:

'/''' delimits literal strings (WYSIWYG / What-you-see-is-what-you-get) "/""" delimits basic strings Allowed escapes in basic strings are:

\b - backspace (U+0008) \t - tab (U+0009) \n - linefeed (U+000A) \f - form feed (U+000C) \r - carriage return (U+000D) " - quote (U+0022) \ - backslash (U+005C) \uXXXX - Unicode (U+XXXX) \UXXXXXXXX - Unicode (U+XXXXXXXX)

Structs

#struct Decoder

pub struct Decoder {
	scanner &scanner.Scanner = unsafe { nil }
}

Decoder decode special sequences in a tree of TOML ast.Value's.

#fn (Decoder) decode

fn (d Decoder) decode(mut n &toml.ast.Value) !

decode decodes certain ast.Value's and all it's children.

#fn (Decoder) modify

fn (d Decoder) modify(mut value &toml.ast.Value) !

#fn (Decoder) excerpt

fn (d Decoder) excerpt(tp toml.token.Pos) string

excerpt returns a string of the token's surroundings

#fn (Decoder) decode_quoted

fn (d Decoder) decode_quoted(mut q &toml.ast.Quoted) !

decode_quoted returns an error if q is not a valid quoted TOML string.

#fn (Decoder) decode_number

fn (d Decoder) decode_number(mut n &toml.ast.Number) !

decode_number decodes the n ast.Number into valid TOML.

#fn (Decoder) decode_date_time

fn (d Decoder) decode_date_time(mut dt &toml.ast.DateTime) !

decode_date_time decodes the dt ast.DateTime.

Interfaces

This section is empty.

Enums

This section is empty.