Commit graph

50 commits

Author SHA1 Message Date
Simon Cruanes
df07cf5bb2 remove all uses of cppo 2017-12-24 16:43:17 +01:00
Simon Cruanes
ed10db67b6 closes #166 by adding a drop parameter to string split functions 2017-12-21 14:07:52 +01:00
Jacques-Pascal Deplaix
e20d0ccfcc Add String.is_empty 2017-12-01 08:36:40 +00:00
Simon Cruanes
7405c1c346 more tweaks and benchmarks for CCString.{prefix,suffix} 2017-09-12 10:55:24 +02:00
Simon Cruanes
a323809aa0 faster CCString.{prefix,suffix}
see https://github.com/ocaml-batteries-team/batteries-included/issues/792
for some discussion
2017-09-12 10:37:32 +02:00
Simon Cruanes
54e12b7f62 style update for some string functions 2017-09-07 10:10:34 +02:00
Simon Cruanes
acb286d8e8 add CCString.compare_natural (closes #146) 2017-07-23 13:48:31 +02:00
Simon Cruanes
465b5992e8 add CCString.{l,r}trim (close #121) 2017-05-01 16:54:29 +02:00
Simon Cruanes
75e3962ba1 make many modules extensions of stdlib (close #109)
for : Random Array List ArrayLabels ListLabels Char String
2017-05-01 16:54:23 +02:00
Simon Cruanes
6c8de1bc64 small fix 2017-04-18 22:04:37 +02:00
Simon Cruanes
1b200ff695 add CCstring.equal_caseless (close #112) 2017-04-18 21:41:44 +02:00
Simon Cruanes
c725543faa add alias CCString.split (close #115) 2017-04-18 21:23:18 +02:00
Simon Cruanes
47abc78a51 add CCString.Sub.get 2017-03-29 17:40:54 +02:00
Simon Cruanes
ef651342eb add CCString.split_on_char 2017-03-10 21:33:40 +01:00
Simon Cruanes
03fd42e67d reindentation 2017-01-25 00:08:12 +01:00
Simon Cruanes
bd7a9ce070 add CCString.edit_distance 2016-11-03 20:27:26 +01:00
Simon Cruanes
46cee7096c expose CCString.Find for efficient sub-string searching 2016-11-03 18:48:25 +01:00
Simon Cruanes
83b0744a1b more type safety in String.Find 2016-11-03 18:39:03 +01:00
Simon Cruanes
7a823b16d8 fix CCString.*_ascii; add CCChar.{upper,lower}case_ascii 2016-09-18 20:31:53 +02:00
Simon Cruanes
7b49dd7f3d fix bug in CCString.Split thanks to @copy (close #75) 2016-08-22 09:26:36 +02:00
Simon Cruanes
779376f2b1 move test from cppo.ml file to .mli file 2016-08-22 09:19:49 +02:00
Fabian
47abd87f74 Fix CCString.Split.{left,right} (#75) 2016-08-22 01:52:44 +02:00
Simon Cruanes
103dfb8c73 add CCstring.of_char 2016-06-17 11:54:30 +02:00
Simon Cruanes
3190278d86 add aliases to deprecated functions from String, add Fun.opaque_identity 2016-05-04 23:12:32 +02:00
Simon Cruanes
f8bb365c94 implement CCString.{drop,take,chop_prefix,chop_suffix,filter,filter_map} 2016-04-05 14:38:49 +02:00
Simon Cruanes
ef4c86d8a1 add CCString.pad for more webscale 2016-03-24 18:24:24 +01:00
Simon Cruanes
5e30104954 optimize KMP search in CCString.Find (hand-specialize code) 2016-03-20 23:20:46 +01:00
Simon Cruanes
7c9633f06f change the semantics of CCString.find_all (allow overlaps) 2016-03-10 16:34:29 +01:00
Simon Cruanes
ce6d981973 add a special case for pattern of length 1 in CCString.find 2016-03-09 23:34:38 +01:00
Simon Cruanes
ab0b198f97 more tests, bugfixes, and benchs for KMP in CCString 2016-03-09 22:38:27 +01:00
Simon Cruanes
5f188c4f7e in CCString, use KMP for faster sub-string search; add find_all{,_l} 2016-03-09 21:09:32 +01:00
Simon Cruanes
9c338f193e add CCString.rev 2016-03-09 19:45:38 +01:00
Simon Cruanes
1cf81c0031 add CCString.Split.{left,right}_exn 2016-02-21 18:33:44 +01:00
Simon Cruanes
34445bead0 replace headers in the rest of containers core 2016-02-20 23:24:24 +01:00
Fourchaux
44387de784 Correction typos (fichiers src) 2015-11-08 22:27:59 +01:00
Simon Cruanes
32fb4cf044 raise exception in CCString.replace if sub="" 2015-09-27 18:03:56 +02:00
Simon Cruanes
a3bc61ef94 bugfix in CCString.find 2015-09-27 18:03:56 +02:00
Simon Cruanes
87e2ab90e1 add CCString.replace and tests 2015-09-27 10:34:38 +02:00
Simon Cruanes
8c9b5601a8 add CCString.compare_versions 2015-09-22 22:29:37 +02:00
Simon Cruanes
1a73ad7e29 add CCString.mem 2015-07-03 17:02:21 +02:00
Simon Cruanes
0fcc736032 breaking: change type of CCString.blit so it writes into Bytes.t 2015-06-26 13:59:57 +02:00
Simon Cruanes
0800b1455b small compatibility mistake 2015-06-11 15:07:39 +02:00
Simon Cruanes
85cb18751a add a lot of string functions in CCString 2015-06-11 15:02:00 +02:00
Simon Cruanes
0c624461d5 add CCString.set for updating immutable strings 2015-05-25 00:04:48 +02:00
Simon Cruanes
ef92ef19fd add CCString.{lines,unlines} that work on lines 2015-03-31 15:24:10 +02:00
Simon Cruanes
e3b4c5eaf9 add CCString.{lines,unlines,concat_gen} 2015-03-30 14:43:05 +02:00
Simon Cruanes
8c0670155d CCString.fold 2014-12-19 09:55:19 +01:00
Simon Cruanes
15aecd2435 CCstring.suffix 2014-12-18 14:09:00 +01:00
Simon Cruanes
b8b0cc3645 more efficient CCString.init 2014-12-18 14:05:12 +01:00
Simon Cruanes
61465fa19a remove cgi/; move sub-libraries to their own subdir each; mv everything into src/ 2014-12-16 23:41:59 +01:00
Renamed from core/CCString.cppo.ml (Browse further)