Author(s): The CLIP Group, Daniel Cabeza, Documentation written by Edison Mera, based on ISO Prolog standard. Minor mods by M. Hermenegildo..
Version: 1.10#7 (2006/4/26, 19:22:13 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.
iso_byte_char
)iso_byte_char
)
char_code(Char, Code)
Succeeds iff the character code of the one char atom Char
is Code
.
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
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: get_byte(?int)
* ISO *
get_byte(Stream, Byte)
Is true iff Byte
unifies with the next byte to be input from the target Stream
.
Usage: peek_byte(?int)
* ISO *
peek_byte(Stream, Byte)
Is true iff Byte
unifies with the next byte to be input from the target Stream
.
Usage: put_byte(+int)
* ISO *
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: get_char(?atm)
* ISO *
get_char(Stream, Char)
Is true iif Char
unifies with the next character to be input from the target Stream
.
Usage: peek_char(?atm)
* ISO *
Usage: peek_char(@stream, ?atm)
* ISO *
Usage: put_char(+atm)
* ISO *
Usage: put_char(@stream, +atm)
* ISO *
Go to the first, previous, next, last section, table of contents.