class Encoding::Registry

Holds available encodings and allows new ones to be added.

class Encoding::Registry {}

Encoding::Registry is initialized with a list of encoding that is available for any Perl 6 application, namely:

Methods

method name

method register(Encoding $enc --> Nil)

Register a new Encoding.

method find

method find(Str() $name)

Finds an encoding by their name. Returns an Encoding::Encoder or Encoding::Decoder, depending on what had been registered.