(* CharArray -- SML Basis Library *)

eqtype array
type elem   = Char.char
type vector = CharVector.vector

val maxLen   : int

val array    : int * elem -> array
val tabulate : int * (int -> elem) -> array
val fromList : elem list -> array

val length   : array -> int
val sub      : array * int -> elem
val update   : array * int * elem -> unit
val vector   : array -> vector

val copy     : {src: array,  dst: array, di: int} -> unit
val copyVec  : {src: vector, dst: array, di: int} -> unit

val find     : (elem -> bool) -> array -> elem option
val exists   : (elem -> bool) -> array -> bool
val all      : (elem -> bool) -> array -> bool

val app      : (elem -> unit) -> array -> unit
val foldl    : (elem * 'b -> 'b) -> 'b -> array -> 'b
val foldr    : (elem * 'b -> 'b) -> 'b -> array -> 'b
val modify   : (elem -> elem) -> array -> unit

val findi    : (int * elem -> bool) -> array -> (int * elem) option
val appi     : (int * elem -> unit) -> array -> unit
val foldli   : (int * elem * 'b -> 'b) -> 'b -> array -> 'b
val foldri   : (int * elem * 'b -> 'b) -> 'b -> array -> 'b
val modifyi  : (int * elem -> elem) -> array -> unit

val collate  : (elem * elem -> order) -> array * array -> order

(* 
   [array] is the type of one-dimensional, mutable, zero-based
   constant-time-access arrays with elements of type Char.char, that
   is, characters.  Arrays a1 and a2 are equal if both were created by
   the same call to a primitive, or if both are empty.

   All operations are as for Array.array.
*)
