1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
package PerlIO::utf8_strict;
$PerlIO::utf8_strict::VERSION = '0.010';
use strict;
use warnings;
use XSLoader;
XSLoader::load(__PACKAGE__, __PACKAGE__->VERSION);
1;
#ABSTRACT: Fast and correct UTF-8 IO
__END__
=pod
=encoding UTF-8
=head1 NAME
PerlIO::utf8_strict - Fast and correct UTF-8 IO
=head1 VERSION
version 0.010
=head1 SYNOPSIS
open my $fh, '<:utf8_strict', $filename;
=head1 DESCRIPTION
This module provides a fast and correct UTF-8 PerlIO layer. Unlike perl's default C<:utf8> layer it checks the input for correctness.
=head1 LAYER ARGUMENTS
=over 4
=item allow_noncharacters
=item allow_surrogates
=back
=head1 EXPORT
PerlIO::utf8_strict exports no subroutines or symbols, just a perl layer C<utf8_strict>
=head1 DIAGNOSTICS
=over 4
=item Can't decode ill-formed UTF-8 octet sequence <%s>
(F) Encountered an ill-formed UTF-8 octet sequence. <%s> contains a hexadecimal
representation of the maximal subpart of the ill-formed subsequence.
=item Can't interchange noncharacter code point U+%.4X
(F) Noncharacters is permanently reserved for internal use and that should
never be interchanged. Noncharacters consist of the values U+nFFFE and U+nFFFF
(where n is from 0 to 10^16) and the values U+FDD0..U+FDEF.
=back
=head1 AUTHORS
=over 4
=item *
Leon Timmermans <leont@cpan.org>
=item *
Christian Hansen <chansen@cpan.org>
=back
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Leon Timmermans, Christian Hansen.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
|