[Libguestfs] [PATCH 0/4] Replace some uses of the Str module with PCRE.
Richard W.M. Jones
rjones at redhat.com
Wed Sep 20 14:50:21 UTC 2017
Str is a pretty ugly regexp module. Let's try to replace it with
PCRE. This series of commits goes some small way towards that
eventual goal.
- - -
I wonder if there was a deep reason why we had this?
let unix2dos s =
String.concat "\r\n" (Str.split_delim (Str.regexp_string "\n") s)
I replaced it with what I think should be (nearly) equivalent:
let unix2dos s =
String.concat "\r\n" (String.nsplit "\n" s)
Rich.
More information about the Libguestfs
mailing list