File: manual035.html

package info (click to toggle)
ocaml-doc 2.04-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,820 kB
  • ctags: 997
  • sloc: makefile: 38; sh: 12
file content (53 lines) | stat: -rw-r--r-- 1,699 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset= ISO-8859-1">
<TITLE>
 Module Char: character operations
</TITLE>
</HEAD>
<BODY >
<A HREF="manual034.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="manual036.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
<A HREF="manual030.html"><IMG SRC ="contents_motif.gif" ALT="Contents"></A>
<HR>

<H2>17.5&nbsp;&nbsp; Module <TT>Char</TT>: character operations</H2><A NAME="s:Char"></A>
<A NAME="@manual198"></A><PRE>
val code : char -&gt; int
</PRE>
<A NAME="@manual199"></A><BLOCKQUOTE>
Return the ASCII code of the argument. 
</BLOCKQUOTE>
<PRE>
val chr: int -&gt; char
</PRE>
<A NAME="@manual200"></A><BLOCKQUOTE>
Return the character with the given ASCII code.
Raise <CODE>Invalid_argument "Char.chr"</CODE> if the argument is
outside the range 0--255. 
</BLOCKQUOTE>
<PRE>
val escaped : char -&gt; string
</PRE>
<A NAME="@manual201"></A><BLOCKQUOTE>
Return a string representing the given character,
with special characters escaped following the lexical conventions
of Objective Caml. 
</BLOCKQUOTE>
<PRE>
val lowercase: char -&gt; char
val uppercase: char -&gt; char
</PRE>
<A NAME="@manual202"></A><A NAME="@manual203"></A><BLOCKQUOTE>
Convert the given character to its equivalent lowercase or
uppercase character, respectively. 
</BLOCKQUOTE>

<HR>
<A HREF="manual034.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="manual036.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
<A HREF="manual030.html"><IMG SRC ="contents_motif.gif" ALT="Contents"></A>
</BODY>
</HTML>