diff options
author | Camil Staps | 2016-06-23 09:29:58 +0200 |
---|---|---|
committer | Camil Staps | 2016-06-23 09:41:16 +0200 |
commit | 5daf973fa5ba6fdbf2b4a65f4aed6513e337be8e (patch) | |
tree | 67c8ff9506da2ff689d654ec18805fddfcacffa7 /Regex.icl | |
parent | Switch to posix; minimal working version (diff) |
Diffstat (limited to 'Regex.icl')
-rw-r--r-- | Regex.icl | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -36,10 +36,13 @@ where ccall cleanrgx_free "p:V:S" } -match :: !Regex !String -> Maybe Bool -match {ptr} s = case match` ptr s of 0 = Just False; 1 = Just True; _ = Nothing +match :: !Regex !Flags !String -> Maybe Bool +match {ptr} flags s = case match` ptr flags s of + 0 = Just False + 1 = Just True + _ = Nothing where - match` :: !Int !String -> Int - match` ptr s = code { - ccall cleanrgx_exec "pS:I" + match` :: !Int !Int !String -> Int + match` ptr flags s = code { + ccall cleanrgx_exec "pIS:I" } |