Module Ocamlformat_parser_shims.MiscSource
Minimal support for Unicode characters in identifiers
include module type of struct include Misc end
val fatal_error : string -> 'aval fatal_errorf : ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'aval try_finally :
?always:(unit -> unit) ->
?exceptionally:(unit -> unit) ->
(unit -> 'a) ->
'aval reraise_preserving_backtrace : exn -> (unit -> unit) -> 'aval map_end : ('a -> 'b) -> 'a list -> 'b list -> 'b listval rev_map_end : ('a -> 'b) -> 'a list -> 'b list -> 'b listval map_left_right : ('a -> 'b) -> 'a list -> 'b listval for_all2 : ('a -> 'b -> bool) -> 'a list -> 'b list -> boolval replicate_list : 'a -> int -> 'a listval list_remove : 'a -> 'a list -> 'a listval split_last : 'a list -> 'a list * 'aval create_hashtable : int -> ('a * 'b) list -> ('a, 'b) Stdlib.Hashtbl.tmodule Stdlib = Misc.Stdlibval find_in_path : string list -> string -> stringval find_in_path_rel : string list -> string -> stringval normalized_unit_filename : string -> (string, string) Stdlib.Result.tval find_in_path_normalized : string list -> string -> stringval remove_file : string -> unitval expand_directory : string -> string -> stringval split_path_contents : ?sep:char -> string -> string listval copy_file : Stdlib.in_channel -> Stdlib.out_channel -> unitval copy_file_chunk : Stdlib.in_channel -> Stdlib.out_channel -> int -> unitval string_of_file : Stdlib.in_channel -> stringval output_to_file_via_temporary :
?mode:Stdlib.open_flag list ->
string ->
(string -> Stdlib.out_channel -> 'a) ->
'aval protect_writing_to_file :
filename:string ->
f:(Stdlib.out_channel -> 'a) ->
'aval concat_null_terminated : string list -> stringval split_null_terminated : string -> string listval chop_extensions : string -> stringval align : int -> int -> intval no_overflow_add : int -> int -> boolval no_overflow_sub : int -> int -> boolval no_overflow_mul : int -> int -> boolval no_overflow_lsl : int -> int -> boolval letter_of_int : int -> stringmodule Int_literal_converter = Misc.Int_literal_converterval find_first_mono : (int -> bool) -> intval search_substring : string -> string -> int -> intval replace_substring : before:string -> after:string -> string -> stringval rev_split_words : string -> string listval cut_at : string -> char -> string * stringval ordinal_suffix : int -> stringval normalise_eol : string -> stringval delete_eol_spaces : string -> stringtype ref_and_value = Misc.ref_and_value = | R : 'a Stdlib.ref * 'a -> ref_and_value
val get_ref : 'a list Stdlib.ref -> 'a listval set_or_ignore : ('a -> 'b option) -> 'b option Stdlib.ref -> 'a -> unitval fst3 : ('a * 'b * 'c) -> 'aval snd3 : ('a * 'b * 'c) -> 'bval thd3 : ('a * 'b * 'c) -> 'cval fst4 : ('a * 'b * 'c * 'd) -> 'aval snd4 : ('a * 'b * 'c * 'd) -> 'bval thd4 : ('a * 'b * 'c * 'd) -> 'cval for4 : ('a * 'b * 'c * 'd) -> 'dval edit_distance : string -> string -> int -> int optionval spellcheck : string list -> string -> string listval did_you_mean : Format_doc.formatter -> (unit -> string list) -> unitval print_if :
Stdlib.Format.formatter ->
bool Stdlib.ref ->
(Stdlib.Format.formatter -> 'a -> unit) ->
'a ->
'aval show_config_and_exit : unit -> unitval show_config_variable_and_exit : string -> unitval get_build_path_prefix_map : unit -> Build_path_prefix_map.map optionval debug_prefix_map_flags : unit -> string listmodule Magic_number = Misc.Magic_numbertype crcs = (modname * Stdlib.Digest.t option) listtype alerts = string Stdlib.String.Map.t