man-pages/man3/Stdlib.Char.3o.html
2021-03-31 01:06:50 +01:00

206 lines
3.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of Stdlib.Char</TITLE>
</HEAD><BODY>
<H1>Stdlib.Char</H1>
Section: OCaml library (3o)<BR>Updated: 2020-01-30<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
Stdlib.Char - no description
<A NAME="lbAC">&nbsp;</A>
<H2>Module</H2>
Module Stdlib.Char
<A NAME="lbAD">&nbsp;</A>
<H2>Documentation</H2>
<P>
Module
<B>Char</B>
<BR>&nbsp;:&nbsp;
<B>(module Stdlib__char)</B>
<P>
<P>
<P>
<P>
<P>
<P>
<P>
<P>
<I>val code </I>
:
<B>char -&gt; int</B>
<P>
Return the ASCII code of the argument.
<P>
<P>
<P>
<I>val chr </I>
:
<B>int -&gt; char</B>
<P>
Return the character with the given ASCII code.
Raise
<B>Invalid_argument Char.chr</B>
if the argument is
outside the range 0--255.
<P>
<P>
<P>
<I>val escaped </I>
:
<B>char -&gt; string</B>
<P>
Return a string representing the given character,
with special characters escaped following the lexical conventions
of OCaml.
All characters outside the ASCII printable range (32..126) are
escaped, as well as backslash, double-quote, and single-quote.
<P>
<P>
<P>
<I>val lowercase </I>
:
<B>char -&gt; char</B>
<P>
<B>Deprecated.</B>
Functions operating on Latin-1 character set are deprecated.
<P>
<P>
Convert the given character to its equivalent lowercase character,
using the ISO Latin-1 (8859-1) character set.
<P>
<P>
<P>
<I>val uppercase </I>
:
<B>char -&gt; char</B>
<P>
<B>Deprecated.</B>
Functions operating on Latin-1 character set are deprecated.
<P>
<P>
Convert the given character to its equivalent uppercase character,
using the ISO Latin-1 (8859-1) character set.
<P>
<P>
<P>
<I>val lowercase_ascii </I>
:
<B>char -&gt; char</B>
<P>
Convert the given character to its equivalent lowercase character,
using the US-ASCII character set.
<P>
<P>
<B>Since</B>
4.03.0
<P>
<P>
<P>
<I>val uppercase_ascii </I>
:
<B>char -&gt; char</B>
<P>
Convert the given character to its equivalent uppercase character,
using the US-ASCII character set.
<P>
<P>
<B>Since</B>
4.03.0
<P>
<P>
<I>type t </I>
=
<B>char</B>
<P>
<P>
An alias for the type of characters.
<P>
<P>
<P>
<I>val compare </I>
:
<B>t -&gt; t -&gt; int</B>
<P>
The comparison function for characters, with the same specification as
<B>compare</B>
. Along with the type
<B>t</B>
, this function
<B>compare</B>
allows the module
<B>Char</B>
to be passed as argument to the functors
<B>Set.Make</B>
and
<B>Map.Make</B>
.
<P>
<P>
<P>
<I>val equal </I>
:
<B>t -&gt; t -&gt; bool</B>
<P>
The equal function for chars.
<P>
<P>
<B>Since</B>
4.03.0
<P>
<P>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">Module</A><DD>
<DT id="3"><A HREF="#lbAD">Documentation</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:57 GMT, March 31, 2021
</BODY>
</HTML>