ISO Chars

Author(s): The Ciao Development Team, Daniel Cabeza, Edison Mera (documentation), Manuel Hermenegildo (minor mods).

This module provides some basic predicates according to the ISO specification of char manipulation.

Usage and interface

Documentation on exports

PREDICATEchar_code/2
char_code(Char,Code)

Succeeds iff the character code of the one char atom Char is Code.

Usage 1:ISO

Usage 2:ISO

PREDICATEatom_chars/2
atom_chars(Atom,Chars)

Succeeds iff Chars is a list whose elements are the one-char atoms whose names are the successive characters of the name of atom Atom

Usage 1:ISO

  • Call and exit should be compatible with:
    (basic_props:list/2)Chars is a list of atms.
  • The following properties should hold at call time:
    (basic_props:atm/1)Atom is an atom.
  • The following properties should hold upon exit:
    (basic_props:list/2)Chars is a list of atms.

Usage 2:ISO

number_chars(Number,Chars)

Success iff Chars is a list whose elements are the one-char atoms corresponding to a character sequence of Number which could be output

Usage 1:ISO

  • Call and exit should be compatible with:
    (basic_props:list/2)Chars is a list of atms.
  • The following properties should hold at call time:
    (basic_props:num/1)Number is a number.
  • The following properties should hold upon exit:
    (basic_props:list/2)Chars is a list of atms.

Usage 2:ISO

PREDICATEchar_codes/2

Usage 1:

  • Call and exit should be compatible with:
    (basic_props:list/2)Arg2 is a list of character_codes.
  • The following properties should hold at call time:
    (basic_props:list/2)Arg1 is a list of atms.
  • The following properties should hold upon exit:
    (basic_props:list/2)Arg2 is a list of character_codes.

Usage 2:

PREDICATEget_char/1
No further documentation available for this predicate.

PREDICATEget_char/2
get_char(Stream,Char)

Is true iif Char unifies with the next character to be input from the target Stream.

Usage:ISO

PREDICATEpeek_char/1

Usage:ISO

Similar to peek_code/1, but using char instead of code.

PREDICATEpeek_char/2

Usage:ISO

Similar to peek_code/2, but using char instead of code.

PREDICATEput_char/1

Usage:ISO

Similar to put_code/1, but using char instead of code.

  • The following properties should hold at call time:
    (basic_props:atm/1)Arg1 is an atom.

PREDICATEput_char/2

Usage:ISO

Similar to put_code/2, but using char instead of code.

Documentation on imports

This module has the following direct dependencies: