main.ch

Declarations

Public Only
Publicvariant JsonValue
variant JsonValue
function delete
func delete(self : *JsonValue) : void
Publicinterface JsonStringEmitter
interface JsonStringEmitter
Publicfunction append_view
func append_view(self : &JsonStringEmitter, view : &string_view) : void
Publicfunction append_char
func append_char(self : &JsonStringEmitter, ch : char) : void
Publicstruct JsonStringPrinter
struct JsonStringPrinter : JsonStringEmitter
Publicfunction make
func make() : JsonStringPrinter
Publicfunction append_view
func append_view(self : &JsonStringPrinter, view : &string_view) : void
Publicfunction append_char
func append_char(self : &JsonStringPrinter, ch : char) : void
Publicstruct JsonStringBuilder
struct JsonStringBuilder : JsonStringEmitter
Publicfunction append_view
func append_view(self : &JsonStringBuilder, view : &string_view) : void
Publicfunction append_char
func append_char(self : &JsonStringBuilder, ch : char) : void
Publicfunction escape_string_into
func escape_string_into<T>(emitter : &, str : &string) : void
Publicfunction append_value
func append_value<T>(emitter : &, value : &JsonValue) : void extension
Publicfunction append_value_pretty
func append_value_pretty<T>(emitter : &, value : &JsonValue, indent : int) : void extension
Publicstruct DebugJsonSaxHandler
struct DebugJsonSaxHandler
Publicfunction make
func make() : DebugJsonSaxHandler
Publicfunction write_view
func write_view(self : &DebugJsonSaxHandler, view : &string_view) : void
Publicfunction writeLine
func writeLine(self : &DebugJsonSaxHandler) : void
Publicfunction on_null
func on_null(self : &DebugJsonSaxHandler) : void
Publicfunction on_bool
func on_bool(self : &DebugJsonSaxHandler, value : bool) : void
Publicfunction on_number
func on_number(self : &DebugJsonSaxHandler, data : *char, len : size_t) : void
Publicfunction on_string
func on_string(self : &DebugJsonSaxHandler, data : *char, len : size_t) : void
Publicfunction on_object_begin
func on_object_begin(self : &DebugJsonSaxHandler) : void
Publicfunction on_object_end
func on_object_end(self : &DebugJsonSaxHandler) : void
Publicfunction on_array_begin
func on_array_begin(self : &DebugJsonSaxHandler) : void
Publicfunction on_array_end
func on_array_end(self : &DebugJsonSaxHandler) : void
Publicfunction on_key
func on_key(self : &DebugJsonSaxHandler, data : *char, len : size_t) : void
Publicstruct ASTJsonHandler
struct ASTJsonHandler : JsonSaxHandler
Publicfunction make
func make() : ASTJsonHandler
var d : DebugJsonSaxHandler
Publicfunction attach_value
func attach_value(self : &ASTJsonHandler, v : JsonValue) : void
helper: move value `v` into either current container or become the root
Publicfunction on_null
func on_null(self : &ASTJsonHandler) : void
Publicfunction on_bool
func on_bool(self : &ASTJsonHandler, v : bool) : void
Publicfunction on_number
func on_number(self : &ASTJsonHandler, s : *char, len : size_t) : void
Publicfunction on_string
func on_string(self : &ASTJsonHandler, s : *char, len : size_t) : void
Publicfunction on_object_begin
func on_object_begin(self : &ASTJsonHandler) : void
Publicfunction on_object_end
func on_object_end(self : &ASTJsonHandler) : void
Publicfunction on_array_begin
func on_array_begin(self : &ASTJsonHandler) : void
Publicfunction on_array_end
func on_array_end(self : &ASTJsonHandler) : void
Publicfunction on_key
func on_key(self : &ASTJsonHandler, s : *char, len : size_t) : void
function delete
func delete(self : *ASTJsonHandler) : void