/[svn]/cduce/trunk/schema/schema_pcre.ml
ViewVC logotype

Contents of /cduce/trunk/schema/schema_pcre.ml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1956 - (show annotations)
Wed Jul 11 13:01:15 2007 UTC (5 years, 10 months ago) by abate
File size: 394 byte(s)
new svn layout

1 open Encodings.Utf8
2
3 let pcre_replace ~rex ?templ s =
4 match templ with
5 | None -> mk (Pcre.replace ~rex (get_str s))
6 | Some templ ->
7 mk (Pcre.replace ~rex ~templ:(get_str templ) (get_str s))
8 let pcre_extract ~rex s = Array.map mk (Pcre.extract ~rex (get_str s))
9 let pcre_regexp s = Pcre.regexp ~flags:[`UTF8] s
10 let pcre_split ~rex s = List.map mk (Pcre.split ~rex (get_str s))

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5