diff lib/ur/string.urs @ 829:20fe00fd81da

Substring functions; fix a nasty MonoReduce pattern match substitution bug
author Adam Chlipala <adamc@hcoop.net>
date Sat, 30 May 2009 13:29:00 -0400
parents 14a6c0971d89
children 5e1a4b12c83a
line wrap: on
line diff
--- a/lib/ur/string.urs	Sat May 30 09:59:10 2009 -0400
+++ b/lib/ur/string.urs	Sat May 30 13:29:00 2009 -0400
@@ -6,3 +6,10 @@
 
 val sub : t -> int -> char
 val suffix : t -> int -> string
+
+val index : t -> char -> option int
+val atFirst : t -> char -> option string
+
+val substring : t -> {Start : int, Len : int} -> string
+
+val split : t -> char -> option (string * string)