mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-16 23:56:43 -05:00
add containersLabels.ml
This commit is contained in:
parent
6d1f0b9957
commit
791f2e2335
3 changed files with 51 additions and 6 deletions
|
|
@ -4,13 +4,10 @@
|
||||||
(** {1 Drop-In replacement to Stdlib} *)
|
(** {1 Drop-In replacement to Stdlib} *)
|
||||||
|
|
||||||
module Array = CCArray
|
module Array = CCArray
|
||||||
module ArrayLabels = CCArrayLabels
|
|
||||||
module Array_slice = CCArray_slice
|
module Array_slice = CCArray_slice
|
||||||
module Array_sliceLabels = CCArray_sliceLabels
|
|
||||||
module Bool = CCBool
|
module Bool = CCBool
|
||||||
module Char = Char
|
module Char = Char
|
||||||
module Equal = CCEqual
|
module Equal = CCEqual
|
||||||
module EqualLabels = CCEqualLabels
|
|
||||||
module Float = CCFloat
|
module Float = CCFloat
|
||||||
module Format = CCFormat
|
module Format = CCFormat
|
||||||
module Fun = CCFun
|
module Fun = CCFun
|
||||||
|
|
@ -33,7 +30,6 @@ module Int32 = CCInt32
|
||||||
module Int64 = CCInt64
|
module Int64 = CCInt64
|
||||||
module IO = CCIO
|
module IO = CCIO
|
||||||
module List = CCList
|
module List = CCList
|
||||||
module ListLabels = CCListLabels
|
|
||||||
module Map = CCMap
|
module Map = CCMap
|
||||||
module Nativeint = CCNativeint
|
module Nativeint = CCNativeint
|
||||||
module Option = CCOpt
|
module Option = CCOpt
|
||||||
|
|
@ -45,9 +41,10 @@ module Ref = CCRef
|
||||||
module Result = CCResult
|
module Result = CCResult
|
||||||
module Set = CCSet
|
module Set = CCSet
|
||||||
module String = CCString
|
module String = CCString
|
||||||
module StringLabels = CCStringLabels
|
|
||||||
module Vector = CCVector
|
module Vector = CCVector
|
||||||
module Monomorphic = CCMonomorphic
|
module Monomorphic = CCMonomorphic
|
||||||
module Utf8_string = CCUtf8_string
|
module Utf8_string = CCUtf8_string
|
||||||
|
|
||||||
|
module Labels = CCArrayLabels
|
||||||
|
|
||||||
include Monomorphic
|
include Monomorphic
|
||||||
|
|
|
||||||
48
src/core/containersLabels.ml
Normal file
48
src/core/containersLabels.ml
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
|
||||||
|
(* This file is free software, part of containers. See file "license" for more details. *)
|
||||||
|
|
||||||
|
(** {1 Drop-In replacement to Stdlib} *)
|
||||||
|
|
||||||
|
module Array = CCArrayLabels
|
||||||
|
module Array_slice = CCArray_sliceLabels
|
||||||
|
module Bool = CCBool
|
||||||
|
module Char = Char
|
||||||
|
module Equal = CCEqualLabels
|
||||||
|
module Float = CCFloat
|
||||||
|
module Format = CCFormat
|
||||||
|
module Fun = CCFun
|
||||||
|
module Hash = CCHash
|
||||||
|
|
||||||
|
(** @since 0.14 *)
|
||||||
|
module Hashtbl = struct
|
||||||
|
include (Hashtbl : module type of Hashtbl
|
||||||
|
with type statistics = Hashtbl.statistics
|
||||||
|
and module Make = Hashtbl.Make
|
||||||
|
and type ('a,'b) t = ('a,'b) Hashtbl.t
|
||||||
|
)
|
||||||
|
include CCHashtbl.Poly
|
||||||
|
module type S' = CCHashtbl.S
|
||||||
|
module Make' = CCHashtbl.Make
|
||||||
|
end
|
||||||
|
module Heap = CCHeap
|
||||||
|
module Int = CCInt
|
||||||
|
module Int32 = CCInt32
|
||||||
|
module Int64 = CCInt64
|
||||||
|
module IO = CCIO
|
||||||
|
module List = CCListLabels
|
||||||
|
module Map = CCMap
|
||||||
|
module Nativeint = CCNativeint
|
||||||
|
module Option = CCOpt
|
||||||
|
module Ord = CCOrd
|
||||||
|
module Pair = CCPair
|
||||||
|
module Parse = CCParse
|
||||||
|
module Random = CCRandom
|
||||||
|
module Ref = CCRef
|
||||||
|
module Result = CCResult
|
||||||
|
module Set = CCSet
|
||||||
|
module String = CCStringLabels
|
||||||
|
module Vector = CCVector
|
||||||
|
module Monomorphic = CCMonomorphic
|
||||||
|
module Utf8_string = CCUtf8_string
|
||||||
|
|
||||||
|
include Monomorphic
|
||||||
|
|
@ -232,7 +232,7 @@ let () =
|
||||||
|
|
||||||
let unlabelled_text =
|
let unlabelled_text =
|
||||||
Buffer.contents unlabelled_text
|
Buffer.contents unlabelled_text
|
||||||
(* CCArrayLabels -> CCArray *)
|
(* ArrayLabels -> Array *)
|
||||||
|> replace_all labelled_name unlabelled_name
|
|> replace_all labelled_name unlabelled_name
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue