annotate lib/ur/string.urs @ 837:ccf22c2c77b2

Tweak -- precedence; use right env for final exhaustiveness errors
author Adam Chlipala <adamc@hcoop.net>
date Tue, 02 Jun 2009 15:43:18 -0400
parents 5e1a4b12c83a
children e46227efcbba
rev   line source
adamc@821 1 type t = string
adamc@821 2
adamc@828 3 val length : t -> int
adamc@828 4
adamc@828 5 val append : t -> t -> t
adamc@828 6
adamc@821 7 val sub : t -> int -> char
adamc@821 8 val suffix : t -> int -> string
adamc@829 9
adamc@829 10 val index : t -> char -> option int
adamc@829 11 val atFirst : t -> char -> option string
adamc@829 12
adamc@831 13 val mindex : {Haystack : t, Needle : t} -> option int
adamc@831 14
adamc@829 15 val substring : t -> {Start : int, Len : int} -> string
adamc@829 16
adamc@829 17 val split : t -> char -> option (string * string)
adamc@831 18 val msplit : {Haystack : t, Needle : t} -> option (string * char * string)