package volgo

  1. Overview
  2. Docs
A Versatile OCaml Library for Git Operations

Install

dune-project
 Dependency

Authors

Maintainers

Sources

volgo-0.0.22.tbz
sha256=2714935a34417be2151736a4765431746c9348db5a3b4f0eaacaf74dfaefeabb
sha512=0eba27395125ae928fd53561029d9653094d822b2907cb9afc18f412b46ef47cf880ba80d1bf17212add4e68e6a55e2792176303e2b0bcee08940e25731b4738

doc/volgo.stdlib/Volgo_stdlib/Char/index.html

Module Volgo_stdlib.CharSource

include module type of Char

Characters

Sourcetype t = char

An alias for the type of characters.

Sourceval code : char -> int

Return the integer code of the argument.

Sourceval chr : int -> char

Return the character with the given integer code.

Sourceval escaped : 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 [0x20;0x7E] are escaped, as well as backslash, double-quote, and single-quote.

Predicates and comparisons

See also the Ascii module.

Sourceval compare : t -> t -> int

The comparison function for characters, with the same specification as Stdlib.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.

Sourceval equal : t -> t -> bool

The equal function for chars.

  • since 4.03

ASCII characters

Sourcemodule Ascii : sig ... end

ASCII character set support.

Sourceval lowercase_ascii : char -> char

Use the equivalent Ascii.lowercase instead.

  • since 4.03
Sourceval uppercase_ascii : char -> char

Use the equivalent Ascii.uppercase instead.

  • since 4.03

Hashing

Sourceval seeded_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
Sourceval hash : 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
Sourceval is_alphanum : char -> bool
Sourceval is_whitespace : char -> bool