line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PerlIO::unicodeeol; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
530144
|
use 5.007003; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
72
|
|
4
|
2
|
|
|
2
|
|
11
|
use XSLoader; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
34
|
|
5
|
2
|
|
|
2
|
|
10
|
use Exporter; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
429
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = "1.002"; |
8
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
9
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# symbols to export on request |
12
|
|
|
|
|
|
|
our @EXPORT_OK = (); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
XSLoader::load __PACKAGE__, $VERSION; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 NAME |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
PerlIO::unicodeeol - PerlIO layer for normalizing line endings from \R to \n |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 VERSION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
This document describes version 1.0 of PerlIO::unicodeeol |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
binmode STDIN, ":raw:unicodeeol"; |
29
|
|
|
|
|
|
|
open FH, "+<:raw:unicodeeol", "file"; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 DESCRIPTION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
This layer normalizes any of the code points matched by \R into \n. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 AUTHORS |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Peter Martini Epcm@cpan.orgE. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Inspired by L by Audrey Tang |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 COPYRIGHT |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Copyright 2013 by Peter Martini Epcm@cpan.orgE. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or |
46
|
|
|
|
|
|
|
modify it under the same terms as Perl itself. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
See L |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |