Find one or more elements of the character conversion table used by term input. The
predicate must be used as:
current_char_conversion(In_char, Out_char).
The character conversion table is a table which relates input characters with output characters, with the table it is possible to translate input. This predicate only queries the character conversion table, to update the table use char_conversion/2. This predicate is re-executable.
see also: char_conversion/2 current_op/3 op/3 read/1 read/2 read_term/2 read_term/3 write/1 write/2 write_canonical/1 write_canonical/2 write_list/1 write_list/2 write_list_goal/2 write_list_goal/3 write_term/2 write_term/3 writeq/1 writeq/2
| Example | |
| current_char_conversion(In, Out). | this predicate succeeds 256 times, all the elements of the character conversion table are displayed |
| current_char_conversion(P, 'b'). | if the table has not been altered the substitution P=b is the first solution |
| current_char_conversion(P, 'b'). | if the table has been altered and the 'z' character is
translated to the 'b' character the predicate succeeds twice with the following
substitutions: P=b P=z (the table was altered with:char_conversion('z', 'b').) |
| Exceptions | |
| In_char is neither a variable nor a character | a type_error(character, In_char) exception is thrown |
| Out_char is neither a variable nor a one-char atom | a type_error(character, Out_char) exception is thrown |