std/core/char▲toc

Standard charstd/core/types/char: V functions.

Characters are unicode codepoints. This is different from a unicode grapheme which represents a single displayed symbol and can consists of multiple codepoints due to combining characters and marks.

fun int/char( i : intstd/core/types/int: V ) : charstd/core/types/char: V

Convert a unicode code point to a character.

fun (!=)( charstd/core/types/char: V, charstd/core/types/char: V ) : boolstd/core/types/bool: V

Are two characters not equal?

fun (+)( c : charstd/core/types/char: V, d : charstd/core/types/char: V ) : charstd/core/types/char: V

Add two character code points.

fun (-)( c : charstd/core/types/char: V, d : charstd/core/types/char: V ) : charstd/core/types/char: V

Subtract two character code points.

fun (<)( charstd/core/types/char: V, charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is a character code point lower to that of another?

fun (<=)( charstd/core/types/char: V, charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is a character code point lower or equal to that of another?

fun (==)( charstd/core/types/char: V, charstd/core/types/char: V ) : boolstd/core/types/bool: V

Are two characters equal?

fun (>)( charstd/core/types/char: V, charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is a character code point greater to that of another?

fun (>=)( charstd/core/types/char: V, charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is a character code point greater or equal to that of another?

fun cmp( x : charstd/core/types/char: V, y : charstd/core/types/char: V ) : orderstd/core/types/order: V

Compare character code points.

fun int( charstd/core/types/char: V ) : intstd/core/types/int: V

Convert a character to its unicode code point.

fun is-alpha( c : charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is the character an ASCII letter?

fun is-alpha-num( c : charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is the character ASCII letter or digit?

fun is-ascii( c : charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is the character an ASCII character, e.g. c <= '\DEL'?

fun is-control( c : charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is the character an ASCII control character, e.g. c < ' '?

fun is-digit( c : charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is the character an ASCII digit ?

fun is-hex-digit( c : charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is the character an ASCII hexa-decimal digit?

fun is-lower( c : charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is the character a lower-case ASCII character?

fun is-upper( c : charstd/core/types/char: V ) : boolstd/core/types/bool: V

Is the character an upper-case ASCII character?

fun is-white( c : charstd/core/types/char: V ) : boolstd/core/types/bool: V

Tests if a character is an element of " \t\n\r".

fun order2( x : charstd/core/types/char: V, y : charstd/core/types/char: V ) : order2std/core/types/order2: V -> V<charstd/core/types/char: V>

Order two characters in ascending order.

private import std/core/typesstd/core/types, std/core/intstd/core/int