Merge pull request #50 from Gbury/print_char

add `CCPrint.char`
This commit is contained in:
Simon Cruanes 2015-10-13 15:19:35 +02:00
commit 7808ecb602
2 changed files with 3 additions and 0 deletions

View file

@ -46,6 +46,7 @@ let string buf s = Buffer.add_string buf s
let bool buf b = Printf.bprintf buf "%B" b
let float3 buf f = Printf.bprintf buf "%.3f" f
let float buf f = Buffer.add_string buf (string_of_float f)
let char buf c = Buffer.add_char buf c
let list ?(start="[") ?(stop="]") ?(sep=", ") pp buf l =
let rec pp_list l = match l with

View file

@ -69,6 +69,8 @@ val string : string t
val bool : bool t
val float3 : float t (* 3 digits after . *)
val float : float t
val char : char t
(** @since NEXT_RELEASE *)
val list : ?start:string -> ?stop:string -> ?sep:string -> 'a t -> 'a list t
val array : ?start:string -> ?stop:string -> ?sep:string -> 'a t -> 'a array t