diff options
author | Adam Chlipala <adam@chlipala.net> | 2011-01-11 18:04:52 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2011-01-11 18:04:52 -0500 |
commit | 4eb2a196fa24d52462f3f325d73952fe2d1c12cd (patch) | |
tree | 5e3b768a97aef4741f8ba13b7b6d80490fe39b12 /lib/ur/string.urs | |
parent | 138f64b8f02f05e6073f61b1db2c3d5e805b75c0 (diff) |
Some more string parsing functions; naughtyDebug
Diffstat (limited to 'lib/ur/string.urs')
-rw-r--r-- | lib/ur/string.urs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ur/string.urs b/lib/ur/string.urs index 52aa27b6..55133578 100644 --- a/lib/ur/string.urs +++ b/lib/ur/string.urs @@ -17,7 +17,11 @@ val mindex : {Haystack : t, Needle : t} -> option int val substring : t -> {Start : int, Len : int} -> string +val seek : t -> char -> option string +val mseek : {Haystack : t, Needle : t} -> option (char * string) + val split : t -> char -> option (string * string) +val split' : t -> char -> option (string * string) (* The matched character is kept at the beginning of the suffix. *) val msplit : {Haystack : t, Needle : t} -> option (string * char * string) val all : (char -> bool) -> string -> bool |