protocol
character_set_protocol
Character set protocol for converting between lists of character codes and lists of bytes.
logtalk_load(character_sets(loader))static
Object names: Concrete object names are derived from the preferred IANA MIME names by lowercasing them and replacing hyphens with underscores.
IANA registry metadata: The metadata predicates reflect the IANA character set registry. When the registry does not define a distinct preferred MIME alias, the
preferred_mime_name/1andname/1predicates return the same atom.Unicode encodings: Unicode character sets use Unicode scalar values and do not emit or consume a byte order mark (BOM).
Public predicates
preferred_mime_name/1
Preferred MIME name for the character set according to the IANA registry.
staticpreferred_mime_name(Name)preferred_mime_name(?atom) - zero_or_onename/1
Registered character set name according to the IANA registry.
staticname(Name)name(?atom) - zero_or_onealias/1
Alias for the character set according to the IANA registry.
staticalias(Alias)alias(?atom) - zero_or_moremibenum/1
MIBenum value for the character set according to the IANA registry.
staticmibenum(MIBenum)mibenum(?integer) - zero_or_onecodes_to_bytes/2
Converts a list of character codes to the corresponding list of bytes in the character set when all codes are representable.
staticcodes_to_bytes(Codes,Bytes)codes_to_bytes(+list(integer),--list(byte)) - zero_or_onebytes_to_codes/2
Converts a list of bytes in the character set to the corresponding list of character codes when the byte sequence is valid for that character set.
staticbytes_to_codes(Bytes,Codes)bytes_to_codes(+list(byte),--list(integer)) - zero_or_oneProtected predicates
(none)
Private predicates
(none)
Operators
(none)