![]() |
YAP 7.1.0
|
Term to sequence of codes conversion, mostly replaced by engine code. More...
Term to sequence of codes conversion, mostly replaced by engine code.
You can use the following directive to load the files
It includes the following predicates:
class format_to_chars/3 |
format_to_chars(+ Form, + Args, - Result)
Execute the built-in procedure format/2 with form Form and arguments Args outputting the result to the string of character codes Result
class format_to_chars/4 |
format_to_chars(+ Form, + Args, - Result, - Result0)
Execute the built-in procedure format/2 with form Form and arguments Args outputting the result to the difference list of character codes Result-Result0
class write_to_chars/2 |
write_to_chars(+ Term, - Result)
Execute the built-in procedure write/1 with argument Term outputting the result to the string of character codes Result
class write_to_chars/3 |
write_to_chars(+ Term, - Result0, - Result)
Execute the built-in procedure write/1 with argument Term outputting the result to the difference list of character codes Result-Result0
class atom_to_chars/2 |
atom_to_chars(+ Atom, - Result)
Convert the atom Atom to the string of character codes Result
class atom_to_chars/3 |
atom_to_chars(+ Atom, - Result0, - Result)
Convert the atom Atom to the difference list of character codes Result-Result0
class number_to_chars/2 |
number_to_chars(+ Number, - Result)
Convert the number Number to the string of character codes Result
class number_to_chars/3 |
number_to_chars(+ Number, - Result0, - Result)
Convert the atom Number to the difference list of character codes Result-Result0
class open_chars_stream/2 |
open_chars_stream(+ Chars, - Stream)
Open the list of character codes Chars as a stream Stream
class with_output_to_chars/2 |
with_output_to_chars(? Goal, - Chars)
Execute goal Goal such that its standard output will be sent to a memory buffer After successful execution the contents of the memory buffer will be converted to the list of character codes Chars
class with_output_to_chars/3 |
with_output_to_chars(? Goal, ? Chars0, - Chars)
Execute goal Goal such that its standard output will be sent to a memory buffer After successful execution the contents of the memory buffer will be converted to the difference list of character codes Chars-Chars0
class with_output_to_chars/4 |
with_output_to_chars(:Goal, -Stream, -Codes, ?Tail) is det
% % As with_output_to_chars/2 , but Stream is unified with the % temporary stream
with_output_to_chars(? Goal, - Stream, ? Chars0, - Chars)
Execute goal Goal such that its standard output will be sent to a memory buffer After successful execution the contents of the memory buffer will be converted to the difference list of character codes Chars-Chars0 and Stream receives the stream corresponding to the memory buffer
class read_from_chars/2 |
read_from_chars( + Chars, - Term)
Parse the list of character codes Chars and return the result in the term Term The character codes to be read must terminate with a dot character such that either (i) the dot character is followed by blank characters; or (ii) the dot character is the last character in the string