Commit graph

47 commits

Author SHA1 Message Date
JPR
0a3b04855a ... tweaks 2020-07-02 09:38:25 -05:00
Simon Cruanes
d923795e1a remove slice APIs in string and array 2020-04-24 20:23:26 -04:00
Simon Cruanes
fb6483539e feat(fmt): add exn combinator 2020-03-07 11:26:00 -06:00
Simon Cruanes
1b5b23a8f1 remove unlabel, remove all traces of Result 2019-12-10 20:48:38 -06:00
Simon Cruanes
96ed8a37ab feat: introduce shim modules for 4.08 compat
- also make `unlabel` an explicit operation
- use `Stdlib` instead of `Pervasives`
- remove some warnings in Format
2019-06-14 18:26:14 -05:00
Simon Cruanes
960e704bb1 test: disable labels for tests
necessary for the consistency checks of Label modules
2018-04-08 18:48:54 -05:00
Simon Cruanes
2c5cda7e3d add ?margin parameter to CCFormat.ksprintf 2018-03-09 11:27:11 -06:00
Simon Cruanes
35f9b32a5b add CCFormat.lazy_{or,force} for printing thunks 2018-02-09 14:20:46 -06:00
Simon Cruanes
b3c796176d reindent 2018-02-07 08:22:41 -06:00
nathan moreau
3e2fbce3ee Comments - few changes 2018-02-07 14:36:03 +01:00
Simon Cruanes
24592bf926 CCFormat: fix support of unrecognized styles 2018-02-05 08:58:32 -06:00
Simon Cruanes
3ab9cd58e1 with compat >= 4.02, use Format.pp_print_text directly 2018-02-05 08:56:01 -06:00
Simon Cruanes
858ef0e90f missing extension of Format 2018-01-02 23:39:55 +01:00
Simon Cruanes
aab19f6a50 update headers; reindent 2017-07-04 13:13:24 +02:00
Simon Cruanes
0c7280a8f4 remove test that depends on 4.02 2017-04-18 21:46:38 +02:00
Simon Cruanes
9cca745fcf add CCFormat.text (close #111) 2017-04-18 21:19:50 +02:00
Simon Cruanes
fc6682b1c1 add CCFormat.{newline,substring} 2017-04-18 21:19:37 +02:00
Simon Cruanes
ee69bdcab8 add CCFormat.with_color_ksf for colored printing 2017-04-03 15:32:26 +02:00
Simon Cruanes
97abfe600e use boxes in CCFormat.Dump for tuples 2017-03-14 11:16:11 +01:00
Simon Cruanes
ae6d81a9a4 add CCFormat.of_chan 2017-03-07 09:37:29 +01:00
Simon Cruanes
719d048f57 add CCFormat.flush 2017-03-07 09:36:53 +01:00
Simon Cruanes
03fd42e67d reindentation 2017-01-25 00:08:12 +01:00
Simon Cruanes
8ad0dce97b CCFormat: remove start/stop args, make sep a unit printer 2017-01-24 22:50:26 +01:00
Simon Cruanes
e5adafced6 many improvements to CCFormat
- add `some`
- add `return`
- add `const`
- add `of_to_string`
2017-01-24 22:39:13 +01:00
Simon Cruanes
3f80e794ba add CCFormat.tee 2017-01-11 18:40:07 +01:00
Simon Cruanes
d4d7bc1de2 add CCFormat.Dump.{result,to_string} 2016-11-03 18:11:05 +01:00
Simon Cruanes
af4c3fc195 change boxing in CCFormat.Dump; add example/doc 2016-11-03 15:57:03 +01:00
Simon Cruanes
9045fcca0b add CCFormat.{with_color_sf,fprintf_dyn_color,sprintf_dyn_color}
more dynamic way of adding colors, switching colors on/off, etc.
2016-11-03 15:48:21 +01:00
Simon Cruanes
0d9d17d5db add CCFormat.Dump for easy debugging (see #82) 2016-11-03 15:36:25 +01:00
Simon Cruanes
4ff174ce18 (breaking) make default start/stop arguments empty in printers (#82) 2016-11-03 15:19:50 +01:00
Simon Cruanes
9d9f709600 bugfix in CCFormat.to_file (fd was closed too early) 2016-04-22 14:22:15 +02:00
Simon Cruanes
a9b91943e8 add CCFormat.within 2016-04-06 11:23:21 +02:00
Simon Cruanes
33b61e8bab add CCFormat.{h,v,hov,hv}box printer combinators 2016-02-24 20:01:18 +01:00
Simon Cruanes
34445bead0 replace headers in the rest of containers core 2016-02-20 23:24:24 +01:00
Simon Cruanes
526ea35495 add CCFormat.sprintf_no_color 2016-02-19 16:34:01 +01:00
Simon Cruanes
12ca402025 provide "bold" style 2016-02-19 14:10:29 +01:00
Simon Cruanes
e2848675f7 add CCFormat.{with_color, with_colorf} 2016-01-25 19:37:43 +01:00
Simon Cruanes
3cfe3767fc add breaking space in CCFormat.{pair,triple,quad} 2016-01-20 14:19:47 +01:00
Simon Cruanes
5d6098b80d make CCFormat color handling support nested tags properly 2015-12-22 16:09:40 +01:00
Simon Cruanes
90a611fdfd use tags for color handling in CCFormat 2015-12-22 10:20:39 +01:00
Simon Cruanes
fdfc106cad basic ANSI codes for colors in CCFormat 2015-12-03 10:01:10 +01:00
Fourchaux
44387de784 Correction typos (fichiers src) 2015-11-08 22:27:59 +01:00
Simon Cruanes
437852d18e add CCFormat.{ksprintf,string_quoted} 2015-10-26 09:52:31 +01:00
Simon Cruanes
22c205f1d4 add functions in CCFormat 2015-10-13 15:07:12 +02:00
Simon Cruanes
88fca4efa1 bugfix in CCFormat.to_file 2015-03-02 16:42:19 +01:00
Simon Cruanes
ceca7b6343 fix CCFormat.seq combinator 2015-02-02 15:28:18 +01:00
Simon Cruanes
3d9a7a0b74 add CCFormat into core/ 2015-01-05 19:10:57 +01:00