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.
iso_byte_char
)iso_byte_char
)
char_code(Char, Code)
Succeeds iff the character code of the one char atom Char
is Code
.
Usage 1: * ISO *
Code
is an integer which is a character code.
(basic_props:character_code/1
)
Char
is an atom.
(basic_props:atm/1
)
Code
is an integer which is a character code.
(basic_props:character_code/1
)
Usage 2: * ISO *
Code
is an integer which is a character code.
(basic_props:character_code/1
)
Char
is a free variable.
(term_typing:var/1
)
Char
is an atom.
(basic_props:atm/1
)
Code
is an integer which is a character code.
(basic_props:character_code/1
)
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 *
Chars
is a list of character_code
s.
(basic_props:list/2
)
Atom
is an atom.
(basic_props:atm/1
)
Chars
is a list of character_code
s.
(basic_props:list/2
)
Usage 2: * ISO *
Atom
is a free variable.
(term_typing:var/1
)
Chars
is a list of character_code
s.
(basic_props:list/2
)
Atom
is an atom.
(basic_props:atm/1
)
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 *
Chars
is a list of atm
s.
(basic_props:list/2
)
Number
is a number.
(basic_props:num/1
)
Chars
is a list of atm
s.
(basic_props:list/2
)
Usage 2: * ISO *
Number
is a free variable.
(term_typing:var/1
)
Chars
is a list of atm
s.
(basic_props:list/2
)
Number
is a number.
(basic_props:num/1
)
Usage: * ISO *
get_byte(Stream, Byte)
Is true iff Byte
unifies with the next byte to be input from the target Stream
.
Usage: * ISO *
Byte
is an integer.
(basic_props:int/1
)
Stream
is an open stream.
(streams_basic:stream/1
)
Stream
is an open stream.
(streams_basic:stream/1
)
Byte
is an integer.
(basic_props:int/1
)
Stream
is not further instantiated.
(basic_props:not_further_inst/2
)
Usage: * ISO *
peek_byte(Stream, Byte)
Is true iff Byte
unifies with the next byte to be input from the target Stream
.
Usage: * ISO *
Byte
is an integer.
(basic_props:int/1
)
Stream
is an open stream.
(streams_basic:stream/1
)
Stream
is an open stream.
(streams_basic:stream/1
)
Byte
is an integer.
(basic_props:int/1
)
Stream
is not further instantiated.
(basic_props:not_further_inst/2
)
Usage: * 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: * ISO *
Stream
is an open stream.
(streams_basic:stream/1
)
Byte
is an integer.
(basic_props:int/1
)
Stream
is an open stream.
(streams_basic:stream/1
)
Stream
is not further instantiated.
(basic_props:not_further_inst/2
)
Usage: * ISO *
get_char(Stream, Char)
Is true iif Char
unifies with the next character to be input from the target Stream
.
Usage: * ISO *
Char
is an atom.
(basic_props:atm/1
)
Stream
is an open stream.
(streams_basic:stream/1
)
Stream
is an open stream.
(streams_basic:stream/1
)
Char
is an atom.
(basic_props:atm/1
)
Stream
is not further instantiated.
(basic_props:not_further_inst/2
)
Usage: * ISO *
Usage: * ISO *
peek_code/2
, but using char instead of code.
Arg2
is an atom.
(basic_props:atm/1
)
Arg1
is an open stream.
(streams_basic:stream/1
)
Arg1
is an open stream.
(streams_basic:stream/1
)
Arg2
is an atom.
(basic_props:atm/1
)
Arg1
is not further instantiated.
(basic_props:not_further_inst/2
)
Usage: * ISO *
Usage: * ISO *
put_code/2
, but using char instead of code.
Arg1
is an open stream.
(streams_basic:stream/1
)
Arg2
is an atom.
(basic_props:atm/1
)
Arg1
is an open stream.
(streams_basic:stream/1
)
Arg1
is not further instantiated.
(basic_props:not_further_inst/2
)
Go to the first, previous, next, last section, table of contents.