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$ *)
|
|
|
|
|
2001-10-26 15:37:14 -07:00
|
|
|
(** Character operations. *)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2001-10-26 15:37:14 -07:00
|
|
|
(** Return the ASCII code of the argument. *)
|
1998-12-02 02:40:33 -08:00
|
|
|
external code : char -> int = "%identity"
|
2001-10-26 15:37:14 -07:00
|
|
|
|
|
|
|
(** Return the character with the given ASCII code.
|
|
|
|
Raise [Invalid_argument "Char.chr"] if the argument is
|
|
|
|
outside the range 0--255. *)
|
1995-05-04 03:15:53 -07:00
|
|
|
val chr: int -> char
|
2001-10-26 15:37:14 -07:00
|
|
|
|
|
|
|
(** Return a string representing the given character,
|
|
|
|
with special characters escaped following the lexical conventions
|
|
|
|
of Objective Caml. *)
|
1995-05-04 03:15:53 -07:00
|
|
|
val escaped : char -> string
|
2001-10-26 15:37:14 -07:00
|
|
|
|
|
|
|
(** Convert the given character to its equivalent lowercase character. *)
|
1996-10-31 08:03:04 -08:00
|
|
|
val lowercase: char -> char
|
2001-10-26 15:37:14 -07:00
|
|
|
|
|
|
|
(** Convert the given character to its equivalent uppercase character. *)
|
1996-10-31 08:03:04 -08:00
|
|
|
val uppercase: char -> char
|
2001-10-26 15:37:14 -07:00
|
|
|
|
|
|
|
(*-*)
|
1995-08-09 06:15:01 -07:00
|
|
|
|
1995-05-05 03:05:18 -07:00
|
|
|
external unsafe_chr: int -> char = "%identity"
|