Skip to content

Commit

Permalink
References Encoding::(Encoder,Decoder)
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Jul 7, 2018
1 parent 096935a commit 1b24c67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 6 additions & 6 deletions doc/Type/Encoding.pod6
Expand Up @@ -10,7 +10,7 @@ The C<Encoding> role is implemented by objects that provide a character
encoding, such as ASCII or UTF-8. Besides being implemented by the
built-in character encodings, it may also be implemented by users to
provide new encodings. Instances of objects doing this role are
typically obtained using C<Encoding::Registry>. For a list of supported
typically obtained using L<Encoding::Registry>. For a list of supported
encodings, see L<IO::Handle|/type/IO::Handle#method_encoding>
=head1 Methods
Expand Down Expand Up @@ -41,11 +41,11 @@ C<\n> while decoding.
method encoder(Encoding:D: *%options --> Encoding::Encoder)
Gets a character encoder instance for this encoding, configured with the
provided options. Options vary by encoding. The built-in encodings all support
both C<replacement> (either a C<Str> replacement sequence or C<True> to use a
default replacement sequence for unencodable characters) and C<translate-nl>
(when set to C<True>, turns C<\n> into C<\r\n> if the current platform is
Windows).
provided options. Options vary by encoding. The built-in encodings all
support both C<replacement> (either a C<Str> replacement sequence or
C<True> to use a default replacement sequence for unencodable
characters) and C<translate-nl> (when set to C<True>, turns C<\n> into
C<\r\n> if the current platform is Windows).
=end pod

Expand Down
4 changes: 3 additions & 1 deletion doc/Type/Encoding/Registry.pod6
Expand Up @@ -26,11 +26,13 @@ available for any Perl 6 application, namely:
Register a new L<Encoding>.
X<|Encoding::Encoder>
X<|Encoding::Decoder>
=head2 method find
method find(Str() $name)
Finds an encoding by their name.
Finds an encoding by their name. Returns an C<Encoding::Encoder> or C<Encoding::Decoder>, depending on what had been registered.
=end pod

Expand Down

0 comments on commit 1b24c67

Please sign in to comment.