package geojsone
Module Geojsone.Jsone
val pp : Format.formatter -> ('a, Format.formatter, unit) format -> 'aval pp_lexeme :
Format.formatter ->
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string ] ->
unittype 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 -> unitval pp_uchar : Format.formatter -> Uchar.t -> unitval 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 ] ] ->
unitval 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 ] ->
unittype 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 -> unitval badd : decoder -> unitval buf : decoder -> stringval dpos : decoder -> int * intval spos : decoder -> unitval epos : decoder -> unitval stack_range : decoder -> unitval dpop : decoder -> unitval readc : decoder -> unitval r_ws : decoder -> unitval r_white : decoder -> unitval r_u_escape : int option -> int -> int -> decoder -> unitval r_escape : decoder -> unitval r_string : decoder -> unitval 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 -> 'aval 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 -> 'aval 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 -> unitval 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 -> 'aval 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 ] ->
'aval 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 ] ->
'aval 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 ] ->
'aval o_rem : encoder -> intval dst : encoder -> Cstruct.t -> int -> int -> unitval flush : encoder -> stop:bool -> unitval writeb : int -> encoder -> unitval writes : string -> int -> int -> encoder -> unitval writebuf : int -> int -> encoder -> unitval w_indent : encoder -> unitval w_json_string : string -> encoder -> unitval w_name : string -> encoder -> unitval w_value :
in_obj:bool ->
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string ] ->
encoder ->
unitval w_lexeme :
encoder ->
[< `Ae
| `As
| `Bool of bool
| `Float of float
| `Name of string
| `Null
| `Oe
| `Os
| `String of string Ae Name Oe ] ->
unitval 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 ] ->
unitval 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 ] ->
unitval 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 -> boolmodule Manual : sig ... endmodule Uncut : sig ... end