1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Objective Caml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the GNU Library General Public License. *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-08-09 06:15:01 -07:00
|
|
|
(* Module [Char]: character operations *)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1998-12-02 02:40:33 -08: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.
|
1996-01-11 06:17:13 -08:00
|
|
|
Raise [Invalid_argument "Char.chr"] if the argument is
|
1995-08-09 06:15:01 -07:00
|
|
|
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
|
1997-06-20 05:50:13 -07:00
|
|
|
of Objective Caml. *)
|
1996-10-31 08:03:04 -08:00
|
|
|
val lowercase: char -> char
|
|
|
|
val uppercase: char -> char
|
|
|
|
(* Convert the given character to its equivalent lowercase or
|
|
|
|
uppercase character, respectively. *)
|
1995-08-09 06:15:01 -07:00
|
|
|
(*--*)
|
|
|
|
|
1995-05-05 03:05:18 -07:00
|
|
|
external unsafe_chr: int -> char = "%identity"
|