diff lib/ur/string.urs @ 831:5e1a4b12c83a

strcspn and friends
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 May 2009 12:41:34 -0400
parents 20fe00fd81da
children e46227efcbba
line wrap: on
line diff
--- a/lib/ur/string.urs	Sat May 30 14:44:29 2009 -0400
+++ b/lib/ur/string.urs	Sun May 31 12:41:34 2009 -0400
@@ -10,6 +10,9 @@
 val index : t -> char -> option int
 val atFirst : t -> char -> option string
 
+val mindex : {Haystack : t, Needle : t} -> option int
+
 val substring : t -> {Start : int, Len : int} -> string
 
 val split : t -> char -> option (string * string)
+val msplit : {Haystack : t, Needle : t} -> option (string * char * string)