From: Nicolas C. <war...@fr...> - 2005-02-10 10:23:11
|
> It contains important functions such as String.map, > String.replace_chars, String.slice, String.starts_with, > String.ends_with, and many more. > > Rich. > > [1] Although embarrassingly, it appears, not these exact functions, > which is why I've CC'd to ocaml-lib-devel list. To ocaml-lib-devel: > we should provide implementations of > http://caml.inria.fr/FAQ/FAQ_EXPERT-eng.html#strings If you mean that we should add string -> char list and char list -> string functions to ExtString well I'm not sure it's good. Representing String as char arrays/list is probably the worst (look at C). The best way is to treat theses caracters uniformaly. And BTW, it's possible to do the following : List.of_enum (String.enum s) String.of_enum (List.enum l) Nicolas |