diff options
author | 2011-01-11 18:04:52 -0500 | |
---|---|---|
committer | 2011-01-11 18:04:52 -0500 | |
commit | b25672b8700461390b9b233398d044eb2d2d9b07 (patch) | |
tree | 5e3b768a97aef4741f8ba13b7b6d80490fe39b12 /lib/ur/string.urs | |
parent | b6c2ebc6168eea0f7bdd203dd85cb87eeab5f293 (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 |