Handbook
Glossary
name>encoding ( name -- encoding )
IANA-registered encoding names
Next:
encoding>name ( encoding -- name )
Vocabulary
io
.
encodings
.
iana
Inputs
name
an encoding name
Outputs
encoding
an encoding descriptor
Word description
Given an IANA-registered encoding name, find the encoding descriptor that represents it, or
f
if it is not found (either not implemented in Factor or not registered). Names and aliases are matched case-insensitively.
See also
encoding>name
Definition
USING:
assocs
io.encodings.iana.private
kernel
namespaces
unicode
;
IN:
io.encodings.iana
:
name>encoding
( name -- encoding )
dup
[
>lower
]
when
n>e-table
get-global
at
;