Mercurial > urweb
annotate lib/ur/string.urs @ 923:0a91c6ee7eec
Add grid CSS
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 10 Sep 2009 14:54:47 -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) |