annotate 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
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@829 13 val substring : t -> {Start : int, Len : int} -> string
adamc@829 14
adamc@829 15 val split : t -> char -> option (string * string)