Go to the first, previous, next, last section, table of contents.


The Iso Byte Char module

Author(s): The CLIP Group, Daniel Cabeza, Documentation written by Edison Mera, based on ISO Prolog standard. Minor mods by M. Hermenegildo..

Version: 1.11#222 (2004/5/24, 13:8:7 CEST)

Version of last change: 1.9#217 (2003/12/21, 15:33:54 CET)

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

Usage and interface (iso_byte_char)

Documentation on exports (iso_byte_char)

PREDICATE: char_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 *

PREDICATE: atom_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 *

Usage 2: * ISO *

PREDICATE: number_chars/2:

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 *

Usage 2: * ISO *

PREDICATE: get_byte/1:

Usage: * ISO *

PREDICATE: get_byte/2:

get_byte(Stream, Byte)

Is true iff Byte unifies with the next byte to be input from the target Stream.

Usage: * ISO *

PREDICATE: peek_byte/1:

Usage: * ISO *

PREDICATE: peek_byte/2:

peek_byte(Stream, Byte)

Is true iff Byte unifies with the next byte to be input from the target Stream.

Usage: * ISO *

PREDICATE: put_byte/1:

Usage: * ISO *

PREDICATE: put_byte/2:

put_byte(Stream, Byte)

Is true. Procedurally, putbyte/2 is executed as follows:

a) Outputs the byte Byte to the target stream.

b) Changes the stream position of the target stream to take account of the byte which has been output.

c) The goal succeeds.

Usage: * ISO *

PREDICATE: get_char/1:

Usage: * ISO *

PREDICATE: get_char/2:

get_char(Stream, Char)

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

Usage: * ISO *

PREDICATE: peek_char/1:

Usage: * ISO *

PREDICATE: peek_char/2:

Usage: * ISO *

PREDICATE: put_char/1:

Usage: * ISO *

PREDICATE: put_char/2:

Usage: * ISO *


Go to the first, previous, next, last section, table of contents.