logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Stdlib.Char - no description

Documentation

       Module Char
        : (moduleStdlib__Char)valcode : char->int

       Return the ASCII code of the argument.

       valchr : int->char

       Return the character with the given ASCII code.

       RaisesInvalid_argument if the argument is outside the range 0--255.

       valescaped : char->string

       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.

       vallowercase_ascii : char->char

       Convert the given character to its equivalent lowercase character, using the US-ASCII character set.

       Since 4.03

       valuppercase_ascii : char->char

       Convert the given character to its equivalent uppercase character, using the US-ASCII character set.

       Since 4.03

       typet = char

       An alias for the type of characters.

       valcompare : t->t->int

       The comparison function for characters, with the same specification as compare .  Along with the type t ,
       this function compare allows the module Char to be passed  as  argument  to  the  functors  Set.Make  and
       Map.Make .

       valequal : t->t->bool

       The equal function for chars.

       Since 4.03

       valseeded_hash : int->t->int

       A  seeded hash function for characters, with the same output value as Hashtbl.seeded_hash . This function
       allows this module to be passed as argument to the functor Hashtbl.MakeSeeded .

       Since 5.1

       valhash : t->int

       An unseeded hash function for characters, with the same output value  as  Hashtbl.hash  .  This  function
       allows this module to be passed as argument to the functor Hashtbl.Make .

       Since 5.1

OCamldoc                                           2025-06-12                                    Stdlib.Char(3o)

Module

       Module   Stdlib.Char

Name

       Stdlib.Char - no description

See Also