Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val pp : Format.formatter -> ('a, Format.formatter, unit) format -> 'a
val unsafe_blit_from_string :
string ->
int ->
Cstruct.buffer ->
int ->
int ->
unit
val unsafe_blit : string -> int -> Cstruct.t -> int -> int -> unit
val unsafe_set_byte : Cstruct.t -> int -> int -> unit
val pp_lexeme :
Format.formatter ->
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string ] ->
unit
type error = [
| `Illegal_BOM
| `Illegal_escape of
[ `Not_hex_uchar of Uchar.t
| `Not_esc_uchar of Uchar.t
| `Not_lo_surrogate of int
| `Lone_lo_surrogate of int
| `Lone_hi_surrogate of int ]
| `Illegal_string_uchar of Uchar.t
| `Illegal_bytes of string
| `Illegal_literal of string
| `Illegal_number of string
| `Unclosed of [ `As | `Os | `String | `Comment ]
| `Expected of
[ `Comment
| `Value
| `Name
| `Name_sep
| `Json
| `Eoi
| `Aval of bool
| `Omem of bool ]
]
val err_not_hex :
int ->
[> `Error of [> `Illegal_escape of [> `Not_hex_uchar of Uchar.t ] ] ]
val err_not_esc :
int ->
[> `Error of [> `Illegal_escape of [> `Not_esc_uchar of Uchar.t ] ] ]
val err_str_char : int -> [> `Error of [> `Illegal_string_uchar of Uchar.t ] ]
val pp_cp : Format.formatter -> int -> unit
val pp_uchar : Format.formatter -> Uchar.t -> unit
val pp_error :
Format.formatter ->
[< `Expected of
[< `Aval of bool
| `Comment
| `Eoi
| `Json
| `Name
| `Name_sep
| `Omem of bool
| `Value ]
| `Illegal_BOM
| `Illegal_bytes of string
| `Illegal_escape of
[< `Lone_hi_surrogate of int
| `Lone_lo_surrogate of int
| `Not_esc_uchar of Uchar.t
| `Not_hex_uchar of Uchar.t
| `Not_lo_surrogate of int ]
| `Illegal_literal of string
| `Illegal_number of string
| `Illegal_string_uchar of Uchar.t
| `Unclosed of [< `As | `Comment | `Os | `String ] ] ->
unit
type src = unit -> Cstruct.t
val pp_decode :
Format.formatter ->
[< `Await
| `Comment of [< `M | `S ] * string
| `End
| `Error of
[< `Expected of
[< `Aval of bool
| `Comment
| `Eoi
| `Json
| `Name
| `Name_sep
| `Omem of bool
| `Value ]
| `Illegal_BOM
| `Illegal_bytes of string
| `Illegal_escape of
[< `Lone_hi_surrogate of int
| `Lone_lo_surrogate of int
| `Not_esc_uchar of Uchar.t
| `Not_hex_uchar of Uchar.t
| `Not_lo_surrogate of int ]
| `Illegal_literal of string
| `Illegal_number of string
| `Illegal_string_uchar of Uchar.t
| `Unclosed of [< `As | `Comment | `Os | `String ] ]
| `Lexeme of
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string ]
| `White of string ] ->
unit
type decoder = {
u : Uutfe.decoder;
buf : Buffer.t;
mutable started : bool;
mutable uncut : bool;
mutable s_line : int;
mutable s_col : int;
mutable e_line : int;
mutable e_col : int;
mutable c : int;
mutable stack : [ `As of pos | `Os of pos ] list;
mutable next_name : bool;
mutable last_start : bool;
}
val baddc : decoder -> int -> unit
val badd : decoder -> unit
val buf : decoder -> string
val dpos : decoder -> int * int
val spos : decoder -> unit
val epos : decoder -> unit
val stack_range : decoder -> unit
val dpop : decoder -> unit
val readc : decoder -> unit
val r_ws : decoder -> unit
val r_white : decoder -> unit
val r_u_escape : int option -> int -> int -> decoder -> unit
val r_escape : decoder -> unit
val r_string : decoder -> unit
val r_float :
decoder ->
[> `Error of [> `Illegal_number of string ]
| `Lexeme of [> `Float of float ] ]
val r_literal :
decoder ->
[> `Error of [> `Illegal_literal of string ]
| `Lexeme of [> `Bool of bool | `Null ] ]
val discard_to : int -> int -> 'a -> decoder -> 'a
val r_arr_val :
decoder ->
[> `Error of
[> `Expected of [> `Aval of bool | `Value ]
| `Illegal_literal of string
| `Illegal_number of string
| `Unclosed of [> `As ] ]
| `Lexeme of
[> `Ae
| `As
| `Bool of bool
| `Float of float
| `Null
| `Os
| `String of string ] ]
val nxmem : 'a -> decoder -> 'a
val r_obj_value :
decoder ->
[> `Error of
[> `Expected of [> `Name_sep | `Value ]
| `Illegal_literal of string
| `Illegal_number of string ]
| `Lexeme of
[> `As
| `Bool of bool
| `Float of float
| `Null
| `Os
| `String of string ] ]
val r_obj_name :
decoder ->
[> `Error of
[> `Expected of [> `Name | `Omem of bool ] | `Unclosed of [> `Os ] ]
| `Lexeme of [> `Name of string | `Oe ] ]
val r_end : decoder -> [> `End | `Error of [> `Expected of [> `Eoi ] ] ]
val r_lexeme :
decoder ->
[> `End
| `Error of
[> `Expected of
[> `Aval of bool | `Eoi | `Name | `Name_sep | `Omem of bool | `Value ]
| `Illegal_literal of string
| `Illegal_number of string
| `Unclosed of [> `As | `Os ] ]
| `Lexeme of
[> `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string ] ]
val discard_to_white : decoder -> unit
val r_json :
decoder ->
[> `Error of
[> `Expected of [> `Json ]
| `Illegal_literal of string
| `Illegal_number of string ]
| `Lexeme of
[> `As
| `Bool of bool
| `Float of float
| `Null
| `Os
| `String of string ] ]
val r_start :
decoder ->
[> `Error of
[> `Expected of [> `Json ]
| `Illegal_BOM
| `Illegal_literal of string
| `Illegal_number of string ]
| `Lexeme of
[> `As
| `Bool of bool
| `Float of float
| `Null
| `Os
| `String of string ] ]
val nln : [> `ASCII of Uchar.t ]
val decode_uncut :
decoder ->
[> `Error of
[> `Expected of [> `Json ]
| `Illegal_BOM
| `Illegal_literal of string
| `Illegal_number of string ]
| `Lexeme of
[> `As
| `Bool of bool
| `Float of float
| `Null
| `Os
| `String of string ] ]
val decoded_range : decoder -> (int * int) * (int * int)
val decoder_encoding : decoder -> [> `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ]
val invalid_arg : ('a, Format.formatter, unit, 'b) format4 -> 'a
val expect :
string ->
[< `Await
| `Comment of [< `M | `S ] * string
| `End
| `Error of
[< `Expected of
[< `Aval of bool
| `Comment
| `Eoi
| `Json
| `Name
| `Name_sep
| `Omem of bool
| `Value ]
| `Illegal_BOM
| `Illegal_bytes of string
| `Illegal_escape of
[< `Lone_hi_surrogate of int
| `Lone_lo_surrogate of int
| `Not_esc_uchar of Uchar.t
| `Not_hex_uchar of Uchar.t
| `Not_lo_surrogate of int ]
| `Illegal_literal of string
| `Illegal_number of string
| `Illegal_string_uchar of Uchar.t
| `Unclosed of [< `As | `Comment | `Os | `String ] ]
| `Lexeme of
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string ]
| `White of string ] ->
'a
val expect_json :
[< `Await
| `Comment of [< `M | `S ] * string
| `End
| `Error of
[< `Expected of
[< `Aval of bool
| `Comment
| `Eoi
| `Json
| `Name
| `Name_sep
| `Omem of bool
| `Value ]
| `Illegal_BOM
| `Illegal_bytes of string
| `Illegal_escape of
[< `Lone_hi_surrogate of int
| `Lone_lo_surrogate of int
| `Not_esc_uchar of Uchar.t
| `Not_hex_uchar of Uchar.t
| `Not_lo_surrogate of int ]
| `Illegal_literal of string
| `Illegal_number of string
| `Illegal_string_uchar of Uchar.t
| `Unclosed of [< `As | `Comment | `Os | `String ] ]
| `Lexeme of
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string ]
| `White of string ] ->
'a
val expect_lend :
[> `As ] ->
[< `Await
| `Comment of [< `M | `S ] * string
| `End
| `Error of
[< `Expected of
[< `Aval of bool
| `Comment
| `Eoi
| `Json
| `Name
| `Name_sep
| `Omem of bool
| `Value ]
| `Illegal_BOM
| `Illegal_bytes of string
| `Illegal_escape of
[< `Lone_hi_surrogate of int
| `Lone_lo_surrogate of int
| `Not_esc_uchar of Uchar.t
| `Not_hex_uchar of Uchar.t
| `Not_lo_surrogate of int ]
| `Illegal_literal of string
| `Illegal_number of string
| `Illegal_string_uchar of Uchar.t
| `Unclosed of [< `As | `Comment | `Os | `String ] ]
| `Lexeme of
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string ]
| `White of string ] ->
'a
type dst = Cstruct.t -> unit
val o_rem : encoder -> int
val flush : encoder -> stop:bool -> unit
val writeb : int -> encoder -> unit
val writes : string -> int -> int -> encoder -> unit
val writebuf : int -> int -> encoder -> unit
val w_indent : encoder -> unit
val w_json_string : string -> encoder -> unit
val w_name : string -> encoder -> unit
val w_value :
in_obj:bool ->
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string ] ->
encoder ->
unit
val w_lexeme :
encoder ->
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string Ae Name Oe ] ->
unit
val encode_ :
encoder ->
[< `Await
| `Comment of [< `M | `S ] * string
| `End
| `Lexeme of
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string Ae Name Oe ]
| `White of string ] ->
unit
val encode_json :
encoder ->
[< `Await
| `Comment of [< `M | `S ] * string
| `End
| `Lexeme of
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string As Bool Float Null Os String ]
| `White of string ] ->
unit
val encode :
encoder ->
[< `Await
| `Comment of [< `M | `S ] * string & [< `M | `S ] * string
| `End
| `Lexeme of
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string Ae Name Oe ] & [< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string ]
| `White of string ] ->
[> `Ok ]
val encoder_minify : encoder -> bool
module Manual : sig ... end
module Uncut : sig ... end