4
type formatter_out_functions =
6
out_string: string -> int -> int -> unit ;
7
out_flush: unit -> unit ;
8
out_newline: unit -> unit ;
9
out_spaces: int -> unit ;
10
out_indent: int -> unit }
15
type symbolic_output_item =
18
| Output_string of string
19
| Output_spaces of int
20
| Output_indent of int
24
type symbolic_output_buffer
28
let pp_print_option ?none some formatter value =
34
| Some none -> none formatter ()
36
| Some value -> some formatter value
38
let pp_print_result ~ok ~error formatter value =
40
| Stdcompat__result.Ok v -> ok formatter v
41
| Stdcompat__result.Error e -> error formatter e
44
failwith "Not implemented."
47
failwith "Not implemented."
49
let get_formatter_stag_functions _ =
50
failwith "Not implemented."
52
let pp_get_formatter_stag_functions _ =
53
failwith "Not implemented."
55
let set_formatter_stag_functions _ =
56
failwith "Not implemented."
58
let pp_set_formatter_stag_functions _ =
59
failwith "Not implemented."
62
failwith "Not implemented."
65
failwith "Not implemented."
68
failwith "Not implemented."
71
failwith "Not implemented."
74
failwith "Not implemented."
76
let pp_get_geometry _ =
77
failwith "Not implemented."
79
let set_geometry ~max_indent:_ ~margin:_ =
80
failwith "Not implemented."
82
let pp_set_geometry _ ~max_indent:_ ~margin:_ =
83
failwith "Not implemented."
85
let safe_set_geometry ~max_indent:_ ~margin:_ =
86
failwith "Not implemented."
88
let pp_safe_set_geometry _ ~max_indent:_ ~margin:_ =
89
failwith "Not implemented."
91
let check_geometry _ =
92
failwith "Not implemented."
94
let pp_safe_set_geometry _ =
95
failwith "Not implemented."
97
let pp_print_custom_break _ =
98
failwith "Not implemented."
103
@BEGIN_BEFORE_4_02_0@
111
type formatter_stag_functions =
113
mark_open_stag: stag -> string ;
114
mark_close_stag: stag -> string ;
115
print_open_stag: stag -> unit ;
116
print_close_stag: stag -> unit }
120
@BEGIN_BEFORE_4_06_0@
121
let formatter_of_out_functions _ =
122
failwith "Not implemented."
124
let make_symbolic_output_buffer _ =
125
failwith "Not implemented."
127
let clear_symbolic_output_buffer _ =
128
failwith "Not implemented."
130
let get_symbolic_output_buffer _ =
131
failwith "Not implemented."
133
let flush_symbolic_output_buffer _ =
134
failwith "Not implemented."
136
let add_symbolic_output_item _ =
137
failwith "Not implemented."
139
let formatter_of_symbolic_output_buffer _ =
140
failwith "Not implemented."
143
@BEGIN_BEFORE_4_03_0@
145
failwith "Not implemented."
148
@BEGIN_BEFORE_4_02_0@
149
let pp_print_list ?pp_sep pp_item formatter list =
153
pp_item formatter hd;
157
List.iter (fun item ->
161
| Some pp_sep -> pp_sep formatter ()
163
pp_item formatter item) tl
165
let pp_print_text formatter s =
166
Stdcompat__string.iter (fun c ->
168
| ' ' -> pp_print_space formatter ()
169
| '\n' -> pp_force_newline formatter ()
170
| _ -> pp_print_char formatter c) s
173
@BEGIN_BEFORE_4_01_0@
174
let pp_set_formatter_out_functions _ =
175
failwith "Not implemented."
177
let set_formatter_out_functions _ =
178
failwith "Not implemented."
180
let pp_get_formatter_out_functions _ =
181
failwith "Not implemented."
183
let get_formatter_out_functions _ =
184
failwith "Not implemented."
187
failwith "Not implemented."
190
@BEGIN_BEFORE_3_12_0@
192
failwith "Not implemented."
195
@BEGIN_BEFORE_3_10_0@
197
failwith "Not implemented."
200
@BEGIN_BEFORE_3_08_0@
202
failwith "Not implemented."
205
failwith "Not implemented."