1995-08-09 06:15:01 -07:00
|
|
|
(* Module [Char]: character operations *)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1995-05-05 03:05:18 -07:00
|
|
|
external code: char -> int = "%identity"
|
1995-08-09 06:15:01 -07:00
|
|
|
(* Return the ASCII code of the argument. *)
|
1995-05-04 03:15:53 -07:00
|
|
|
val chr: int -> char
|
1995-08-09 06:15:01 -07:00
|
|
|
(* Return the character with the given ASCII code.
|
|
|
|
Raise [Invalid_argument "char_of_int"] if the argument is
|
|
|
|
outside the range 0--255. *)
|
1995-05-04 03:15:53 -07:00
|
|
|
val escaped : char -> string
|
1995-08-09 06:15:01 -07:00
|
|
|
(* Return a string representing the given character,
|
|
|
|
with special characters escaped following the lexical conventions
|
|
|
|
of Caml Light. *)
|
|
|
|
|
|
|
|
(*--*)
|
|
|
|
|
1995-05-05 03:05:18 -07:00
|
|
|
external unsafe_chr: int -> char = "%identity"
|