mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
new module CCChar
This commit is contained in:
parent
22c205f1d4
commit
c71dfcf6f3
5 changed files with 33 additions and 2 deletions
|
|
@ -117,6 +117,8 @@ Documentation http://cedeela.fr/~simon/software/containers[here].
|
|||
- `CCError` (monadic error handling, very useful)
|
||||
- `CCIO`, basic utilities for IO (channels, files)
|
||||
- `CCInt64,` utils for `int64`
|
||||
- `CCChar`, utils for `char`
|
||||
- `CCFormat`, pretty-printing utils around `Format`
|
||||
|
||||
=== Containers.data
|
||||
|
||||
|
|
|
|||
4
_oasis
4
_oasis
|
|
@ -45,8 +45,8 @@ Library "containers"
|
|||
Path: src/core
|
||||
Modules: CCVector, CCPrint, CCError, CCHeap, CCList, CCOpt, CCPair,
|
||||
CCFun, CCHash, CCInt, CCBool, CCFloat, CCArray, CCRef, CCSet,
|
||||
CCOrd, CCRandom, CCString, CCHashtbl, CCMap, CCFormat, CCIO, CCInt64,
|
||||
Containers
|
||||
CCOrd, CCRandom, CCString, CCHashtbl, CCMap, CCFormat, CCIO,
|
||||
CCInt64, CCChar, Containers
|
||||
BuildDepends: bytes
|
||||
# BuildDepends: bytes, bisect_ppx
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ by ocamlfind).
|
|||
{!modules:
|
||||
CCArray
|
||||
CCBool
|
||||
CCChar
|
||||
CCError
|
||||
CCFloat
|
||||
CCFun
|
||||
|
|
|
|||
14
src/core/CCChar.ml
Normal file
14
src/core/CCChar.ml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(* This file is free software, part of containers. See file "license" for more details. *)
|
||||
|
||||
(** {1 Utils around char}
|
||||
|
||||
@since NEXT_RELEASE *)
|
||||
|
||||
type t = char
|
||||
|
||||
let equal (a:char) b = a=b
|
||||
let compare = Char.compare
|
||||
|
||||
let print = Format.pp_print_char
|
||||
|
||||
|
||||
14
src/core/CCChar.mli
Normal file
14
src/core/CCChar.mli
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
(* This file is free software, part of containers. See file "license" for more details. *)
|
||||
|
||||
(** {1 Utils around char}
|
||||
|
||||
@since NEXT_RELEASE *)
|
||||
|
||||
type t = char
|
||||
|
||||
val equal : t -> t -> bool
|
||||
val compare : t -> t -> int
|
||||
|
||||
val print : Format.formatter -> t -> unit
|
||||
|
||||
Loading…
Add table
Reference in a new issue