view release on metacpan or search on metacpan
Cadhinor.pm view on Meta::CPAN
EPESAN => [ qw( EUSAI EUSEIS EPES EPESAM EPESOS EUSONT ) ],
CTANEN => [ qw( CTAI CTES CTET CTANAM CTANUS CTANONT ) ],
# FAR => [ qw( FAEO FAES FAET FASCOM FASCOUS FASCONT ) ],
FAR => [ qw( FAEU FAES FAET FASCOM FASCOUS FASCONT ) ],
IUSIR => [ qw( IUSU IUS IUT IUSUM IUSUS IUINT ) ],
LIUBEC => [ qw( LIUO LIUOS LIUS LIUBOM LIUBOUS LIUBONT ) ],
KETHEN => [ qw( KETHUI KETHUS KETHUT KETHEM KETHES KENT ) ],
CULLIR => [ qw( CULLU CULS CULT CULLUM CULLUS CULLINT ) ],
OHIR => [ qw( OHU UIS UIT OHUM OHUS OHINT ) ],
SCRIFEC => [ qw( SCRIFAO SCRIS SCRIT SCRIFOM SCRIFOUS SCRIFONT ) ],
NEN => [ qw( NEI NIS NIT NESEM NESES NENT ) ],
view all matches for this distribution
view release on metacpan or search on metacpan
t/02_demeric.t view on Meta::CPAN
is($is->[3], $should->[3], "I.pl. of $verb");
is($is->[4], $should->[4], "II.pl. of $verb");
is($is->[5], $should->[5], "III.pl. of $verb");
}
form_ok('LIUBEC', demeric('LIUBEC'), [ qw( LIUO/LIUBAO LIUOS/LIUBEOS LIUS/LIUBES LIUBOM LIUBOUS LIUBONT ) ]);
form_ok('LAUDAN', demeric('LAUDAN'), [ qw( LAUDAI LAUDEIS LAUDET LAUDAM LAUDUS LAUDONT ) ]);
form_ok('LEILEN', demeric('LEILEN'), [ qw( LEILAI LEILEIS LEILET LEILEM LEILES LEILENT ) ]);
form_ok('CLAGER', demeric('CLAGER'), [ qw( CLAGU CLAGEUS CLAGIT CLAGUM CLAGUS CLAGINT ) ]);
form_ok('NURIR', demeric('NURIR' ), [ qw( NURU NUREUS NURET NURUM NURUS NURUNT ) ]);
form_ok('ESAN', demeric('ESAN' ), [ qw( SAI SEIS ES ESAM ESOS SONT ) ]);
form_ok('EPESAN', demeric('EPESAN'), [ qw( EUSAI EUSEIS EPES EPESAM EPESOS EUSONT ) ]);
form_ok('CTANEN', demeric('CTANEN'), [ qw( CTAI CTES CTET CTANAM CTANUS CTANONT ) ]);
form_ok('FAR', demeric('FAR' ), [ qw( FAEU FAES FAET FASCOM FASCOUS FASCONT ) ]);
form_ok('IUSIR', demeric('IUSIR' ), [ qw( IUSU IUS IUT IUSUM IUSUS IUINT ) ]);
form_ok('LIUBEC', demeric('LIUBEC'), [ qw( LIUO/LIUBAO LIUOS/LIUBEOS LIUS/LIUBES LIUBOM LIUBOUS LIUBONT ) ]);
form_ok('KETHEN', demeric('KETHEN'), [ qw( KETHUI KETHUS KETHUT KETHEM KETHES KENT ) ]);
form_ok('CULLIR', demeric('CULLIR'), [ qw( CULLU CULS CULT CULLUM CULLUS CULLINT ) ]);
form_ok('OHIR', demeric('OHIR' ), [ qw( OHU UIS UIT OHUM OHUS OHINT ) ]);
form_ok('SCRIFEC', demeric('SCRIFEC'), [ qw( SCRIFAO SCRIS SCRIT SCRIFOM SCRIFOUS SCRIFONT ) ]);
form_ok('NEN', demeric('NEN' ), [ qw( NEI NIS NIT NESEM NESES NENT ) ]);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Linux/ppport.h view on Meta::CPAN
BOL_t8_p8|5.033003||Viu
BOL_t8_pb|5.033003||Viu
BOL_tb|5.035004||Viu
BOL_tb_p8|5.033003||Viu
BOL_tb_pb|5.033003||Viu
BOM_UTF8|5.025005|5.003007|p
BOM_UTF8_FIRST_BYTE|5.019004||Viu
BOM_UTF8_TAIL|5.019004||Viu
boolSV|5.004000|5.003007|p
boot_core_builtin|5.035007||Viu
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
boot_core_UNIVERSAL|5.003007||Viu
lib/Linux/ppport.h view on Meta::CPAN
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
t/98-no-stray-leading-bytes.t view on Meta::CPAN
use warnings;
use Test::More;
# Guard against files starting with a stray "\" line (from bad escaping)
# or UTF-8 BOM, which can cause confusing parse errors like:
# "use" not allowed in expression at line 2
#
# This test is intentionally simple and always runs.
my @paths;
t/98-no-stray-leading-bytes.t view on Meta::CPAN
read($fh, $buf, 8);
close $fh;
my $ok = 1;
# UTF-8 BOM
$ok = 0 if substr($buf, 0, 3) eq "\xEF\xBB\xBF";
# Leading backslash line (the bug we hit)
$ok = 0 if substr($buf, 0, 2) eq "\\\n";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Linux/ppport.h view on Meta::CPAN
BOL_t8_p8|5.033003||Viu
BOL_t8_pb|5.033003||Viu
BOL_tb|5.035004||Viu
BOL_tb_p8|5.033003||Viu
BOL_tb_pb|5.033003||Viu
BOM_UTF8|5.025005|5.003007|p
BOM_UTF8_FIRST_BYTE|5.019004||Viu
BOM_UTF8_TAIL|5.019004||Viu
boolSV|5.004000|5.003007|p
boot_core_builtin|5.035007||Viu
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
boot_core_UNIVERSAL|5.003007||Viu
lib/Linux/ppport.h view on Meta::CPAN
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
easyxs/ppport.h view on Meta::CPAN
BOL_t8_p8|5.033003||Viu
BOL_t8_pb|5.033003||Viu
BOL_tb|5.035004||Viu
BOL_tb_p8|5.033003||Viu
BOL_tb_pb|5.033003||Viu
BOM_UTF8|5.025005|5.003007|p
BOM_UTF8_FIRST_BYTE|5.019004||Viu
BOM_UTF8_TAIL|5.019004||Viu
boolSV|5.004000|5.003007|p
boot_core_builtin|5.035007||Viu
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
boot_core_UNIVERSAL|5.003007||Viu
easyxs/ppport.h view on Meta::CPAN
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
easyxs/ppport.h view on Meta::CPAN
BOL_t8_p8|5.033003||Viu
BOL_t8_pb|5.033003||Viu
BOL_tb|5.035004||Viu
BOL_tb_p8|5.033003||Viu
BOL_tb_pb|5.033003||Viu
BOM_UTF8|5.025005|5.003007|p
BOM_UTF8_FIRST_BYTE|5.019004||Viu
BOM_UTF8_TAIL|5.019004||Viu
boolSV|5.004000|5.003007|p
boot_core_builtin|5.035007||Viu
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
boot_core_UNIVERSAL|5.003007||Viu
easyxs/ppport.h view on Meta::CPAN
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
t/000-report-versions.t view on Meta::CPAN
return $self->_error("Did not provide a string to load");
}
# Byte order marks
# NOTE: Keeping this here to educate maintainers
# my %BOM = (
# "\357\273\277" => 'UTF-8',
# "\376\377" => 'UTF-16BE',
# "\377\376" => 'UTF-16LE',
# "\377\376\0\0" => 'UTF-32LE'
# "\0\0\376\377" => 'UTF-32BE',
# );
if ( $string =~ /^(?:\376\377|\377\376|\377\376\0\0|\0\0\376\377)/ ) {
return $self->_error("Stream has a non UTF-8 BOM");
} else {
# Strip UTF-8 bom if found, we'll just ignore it
$string =~ s/^\357\273\277//;
}
view all matches for this distribution
view release on metacpan or search on metacpan
BmFLAGS|5.009005||Viu
BmPREVIOUS|5.003007||Viu
BmRARE|5.003007||Viu
BmUSEFUL|5.003007||Viu
BOL|5.003007||Viu
BOM_UTF8|5.025005|5.003007|p
BOM_UTF8_FIRST_BYTE|5.019004||Viu
BOM_UTF8_TAIL|5.019004||Viu
bool|5.003007||Viu
boolSV|5.004000|5.003007|p
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
boot_core_UNIVERSAL|5.003007||Viu
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Locale/ID/Locality.pm view on Meta::CPAN
['7401','74','BUTON','2'],
['7402','74','MUNA','2'],
['7403','74','KONAWE','2'],
['7404','74','KOLAKA','2'],
['7405','74','KONAWE SELATAN','2'],
['7406','74','BOMBANA','2'],
['7407','74','WAKATOBI','2'],
['7408','74','KOLAKA UTARA','2'],
['7409','74','BUTON UTARA','2'],
['7410','74','KONAWE UTARA','2'],
['7471','74','KENDARI','1'],
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Locale/SubCountry/Codes.pm view on Meta::CPAN
"name": "Boujdour (EH)",
"parent": "11",
"type": "Province"
},
{
"code": "MA-BOM",
"name": "Boulemane",
"parent": "03",
"type": "Province"
},
{
view all matches for this distribution
view release on metacpan or search on metacpan
if (cp == 0x180E) return 1;
if (cp >= 0x200B && cp <= 0x200F) return 1; /* includes ZWJ (0x200D) */
if (cp >= 0x202A && cp <= 0x202E) return 1;
if (cp >= 0x2060 && cp <= 0x2064) return 1;
if (cp >= 0x2066 && cp <= 0x206F) return 1;
if (cp == 0xFEFF) return 1; /* BOM */
if (cp >= 0xFFF9 && cp <= 0xFFFB) return 1;
/* Co (private use) */
if (cp >= 0xE000 && cp <= 0xF8FF) return 1;
view all matches for this distribution
view release on metacpan or search on metacpan
BmFLAGS|5.009005||Viu
BmPREVIOUS|5.003007||Viu
BmRARE|5.003007||Viu
BmUSEFUL|5.003007||Viu
BOL|5.003007||Viu
BOM_UTF8|5.025005|5.003007|p
BOM_UTF8_FIRST_BYTE|5.019004||Viu
BOM_UTF8_TAIL|5.019004||Viu
bool|5.003007||Viu
boolSV|5.004000|5.003007|p
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
boot_core_UNIVERSAL|5.003007||Viu
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
t/000-report-versions.t view on Meta::CPAN
return $self->_error("Did not provide a string to load");
}
# Byte order marks
# NOTE: Keeping this here to educate maintainers
# my %BOM = (
# "\357\273\277" => 'UTF-8',
# "\376\377" => 'UTF-16BE',
# "\377\376" => 'UTF-16LE',
# "\377\376\0\0" => 'UTF-32LE'
# "\0\0\376\377" => 'UTF-32BE',
# );
if ( $string =~ /^(?:\376\377|\377\376|\377\376\0\0|\0\0\376\377)/ ) {
return $self->_error("Stream has a non UTF-8 BOM");
} else {
# Strip UTF-8 bom if found, we'll just ignore it
$string =~ s/^\357\273\277//;
}
view all matches for this distribution
view release on metacpan or search on metacpan
BOL_t8_p8|5.033003||Viu
BOL_t8_pb|5.033003||Viu
BOL_tb|5.035004||Viu
BOL_tb_p8|5.033003||Viu
BOL_tb_pb|5.033003||Viu
BOM_UTF8|5.025005|5.003007|p
BOM_UTF8_FIRST_BYTE|5.019004||Viu
BOM_UTF8_TAIL|5.019004||Viu
boolSV|5.004000|5.003007|p
boot_core_builtin|5.035007||Viu
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
boot_core_UNIVERSAL|5.003007||Viu
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
lib/ppport.h view on Meta::CPAN
BOL_t8_p8|5.033003||Viu
BOL_t8_pb|5.033003||Viu
BOL_tb|5.035004||Viu
BOL_tb_p8|5.033003||Viu
BOL_tb_pb|5.033003||Viu
BOM_UTF8|5.025005|5.003007|p
BOM_UTF8_FIRST_BYTE|5.019004||Viu
BOM_UTF8_TAIL|5.019004||Viu
boolSV|5.004000|5.003007|p
boot_core_builtin|5.035007||Viu
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
boot_core_UNIVERSAL|5.003007||Viu
lib/ppport.h view on Meta::CPAN
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
* CPAN RT #86917: Invalid META.
* Move Japanese documentation under POD2::JA.
1.010 2013-04-09 Hatuka*nezumi - IKEDA Soji <hatuka(at)nezumi.nu>
* Fix: UTF-16 & UTF-32 encoders are died by the texts without BOM.
* Added a test #6 and some cases to test #4.
* Changed layout of distribution.
1.009.3 2012-12-30 Hatuka*nezumi - IKEDA Soji <hatuka(at)nezumi.nu>
view all matches for this distribution
view release on metacpan or search on metacpan
t/test-utf8-bom.t view on Meta::CPAN
use Test::More tests => 4;
use MIME::Parser;
use IO::File;
# Handle a UTF-8 BOM at start of headers
my $parser = MIME::Parser->new();
$parser->output_to_core(1);
my $entity = $parser->parse(IO::File->new('testmsgs/utf8-bom-at-start.msg'));
view all matches for this distribution
view release on metacpan or search on metacpan
t/msgs/Default view on Meta::CPAN
leCWeNmLiNYoXVyT1JPPp3zikupYi2xZWjimHCu4Tdg8g4anPcxWwtpYmiceWBLk7ssf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6ZAzgV
S7bI05uXY6TwRr02g6h5Mc0nku+138wEtu7fezivcorlLq24lG1kwW/iHvjPWvmXfEbmxka7
UGN1cFcFWYHGB8xxg19C+GroXHhyBiEV5FyWjfp9fm4rycdRUZRm4379P+AethJSaaXQ2lK2
1uDzLtXuQDnt9KZZXAlt4xOCUkBYmNgxB7Z+b1qApK5Idmiibqynn2zg05VVIXR3jLjjepIy
view all matches for this distribution
view release on metacpan or search on metacpan
Util/CommentedJson.pm view on Meta::CPAN
| $re_string
}xs;
sub strip_json_comments {
my ($pack, $bytes) = @_;
$bytes =~ s/\A\xef\xbb\xbf//; # Strip BOM of utf-8.
my @region = reverse list_json_comments($pack, $bytes);
foreach my $region (@region) {
my ($startPos, $len) = @$region;
substr($bytes, $startPos, $len, '');
}
view all matches for this distribution
view release on metacpan or search on metacpan
# text fields can be null-separated lists;
# UTF-16 therefore needs special care
#
# foobar2000 encodes tags in UTF-16LE
# (which is apparently illegal)
# Encode dies on a bad BOM, so it is
# probably wise to wrap it in an eval
# anyway
$data = eval { Encode::decode('utf16', $data) } || Encode::decode('utf16le', $data);
} elsif ($encoding eq "\003") { # UTF-8
}
} else {
# If the string starts with an
# UTF-16 little endian BOM, use a hack to
# convert to ASCII per best-effort
my $pat;
if ($data =~ s/^\xFF\xFE//) {
# strip additional BOMs as seen in COM(M?) and TXX(X?)
$data = join ("",map { ( /^(..)$/ && ! /(\xFF\xFE)/ )? $_: "" } (split /(..)/, $data));
$pat = 'v';
} elsif ($data =~ s/^\xFE\xFF//) {
# strip additional BOMs as seen in COM(M?) and TXX(X?)
$data = join ("",map { ( /^(..)$/ && ! /(\xFF\xFE)/ )? $_: "" } (split /(..)/, $data));
$pat = 'n';
}
if ($pat) {
# User defined frame
if ($id eq 'TXXX') {
my ($key, $val) = split(/\0/, $data);
# Some programs - such as FB2K leave a UTF-16 BOM on the value
if ($encoding eq "\001" || $encoding eq "\002") {
$val =~ s/^\x{feff}//;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MP3/Tag.pm view on Meta::CPAN
local $/;
my $d = <F>;
# warn "From file $data (\$^OPEN=${^OPEN}, \$^UNICODE=${^UNICODE}): ", join q( ), map ord, split //, $d;
CORE::close F or die "Can't close file `$data' for parsing: $!";
$d =~ s/^(?:\x{FEFF}|\xEF\xBB\xBF)// unless $flags =~ /B/; # strip BOM
$data = $d;
}
my @data = $data;
if ($flags =~ /[ln]/) {
my $p = $self->get_config('parse_split')->[0];
view all matches for this distribution
view release on metacpan or search on metacpan
bind_match|5.003007||Viu
block_end|5.004000|5.004000|
block_gimme|5.004000|5.004000|u
blockhook_register|5.013003|5.013003|x
block_start|5.004000|5.004000|
BOM_UTF8|5.025005|5.003007|p
boolSV|5.004000|5.003007|p
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
boot_core_UNIVERSAL|5.003007||Viu
_byte_dump_string|5.025006||Viu
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MPEG/ID3v2Tag.pm view on Meta::CPAN
$self->{ENCODING} = unpack( "C", substr( $data, 0, 1 ) );
if ( $self->{ENCODING} == 0 ) {
$self->{DATA} = unpack( "Z*", substr( $data, 1 ) );
}
elsif ( $self->{ENCODING} == 1 ) { ##with BOM
######## a really dirty hack to change the UNICODE to normal ISO-8859-1 this will of course
######## destroy the real unicode. so no need to write a UNICODE back to file
my @text_as_list;
$self->{BOM} = unpack( "n", substr( $data, 1, 2 ) );
if ( $self->{BOM} == 0xfeff ) {
@text_as_list = unpack( "n*", substr( $data, 3 ) );
}
else {
@text_as_list = unpack( "v*", substr( $data, 3 ) );
}
$self->{DATA} = pack( "C*", @text_as_list );
$self->{ENCODING} = 0; ## now
}
elsif ( $self->{ENCODING} == 2 ) { #no BOM here ##never tested
######## a really dirty hack to change the UNICODE to normal ISO-8859-1 this will of course
######## destroy the real unicode. so no need to write a UNICODE back to file
## I hope this n is working for ENCODING type 2. else change to back to v like type 1
my @text_as_list;
lib/MPEG/ID3v2Tag.pm view on Meta::CPAN
if ( $self->{ENCODING} == 0 ) {
$self->{DESCRIPTION} = $desc;
$self->{TEXT} = $text;
}
elsif ( $self->{ENCODING} == 1 ) { ##with BOM
######## a really dirty hack to change the UNICODE to normal ISO-8859-1 this will of course
######## destroy the real unicode. so no need to write a UNICODE back to file
my @text_as_list_t;
my @text_as_list_d;
$self->{BOM} = unpack( "n", substr( $data, 1, 2 ) );
if ( $self->{BOM} == 0xfeff ) {
@text_as_list_t = unpack( "n*", substr( $text, 2 ) );
@text_as_list_d = unpack( "n*", substr( $desc, 2 ) );
}
else {
@text_as_list_t = unpack( "v*", $text );
view all matches for this distribution
view release on metacpan or search on metacpan
BOL_t8_p8|5.033003||Viu
BOL_t8_pb|5.033003||Viu
BOL_tb|5.035004||Viu
BOL_tb_p8|5.033003||Viu
BOL_tb_pb|5.033003||Viu
BOM_UTF8|5.025005|5.003007|p
BOM_UTF8_FIRST_BYTE|5.019004||Viu
BOM_UTF8_TAIL|5.019004||Viu
boolSV|5.004000|5.003007|p
boot_core_builtin|5.035007||Viu
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
boot_core_UNIVERSAL|5.003007||Viu
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
# empty four bytes for lang code
typeIntlText() => sub {' ' . MacPack(typeChar, $_[0])},
typeUnicodeText() => sub {
if ($ENCODE) {
# BOM sometimes causes problems, so it is optional, and
# we leave it off, and use native ordering explicitly
require Config;
my $bom = $Config::Config{byteorder} eq '1234' ? 'LE' : 'BE';
return new AEDesc typeUnicodeText,
Encode::encode('UTF-16'.$bom, $_[0]);
view all matches for this distribution
view release on metacpan or search on metacpan
BOL_t8_p8|5.033003||Viu
BOL_t8_pb|5.033003||Viu
BOL_tb|5.035004||Viu
BOL_tb_p8|5.033003||Viu
BOL_tb_pb|5.033003||Viu
BOM_UTF8|5.025005|5.003007|p
BOM_UTF8_FIRST_BYTE|5.019004||Viu
BOM_UTF8_TAIL|5.019004||Viu
bool|5.003007||Viu
boolSV|5.004000|5.003007|p
boot_core_builtin|5.035007||Viu
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
BOL_t8_p8|5.033003||Viu
BOL_t8_pb|5.033003||Viu
BOL_tb|5.035004||Viu
BOL_tb_p8|5.033003||Viu
BOL_tb_pb|5.033003||Viu
BOM_UTF8|5.025005|5.003007|p
BOM_UTF8_FIRST_BYTE|5.019004||Viu
BOM_UTF8_TAIL|5.019004||Viu
boolSV|5.004000|5.003007|p
boot_core_builtin|5.035007||Viu
boot_core_mro|5.009005||Viu
boot_core_PerlIO|5.007002||Viu
boot_core_UNIVERSAL|5.003007||Viu
#endif
#endif
#if 'A' == 65
#ifndef BOM_UTF8
# define BOM_UTF8 "\xEF\xBB\xBF"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD"
#endif
#elif '^' == 95
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x73\x66\x73"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71"
#endif
#elif '^' == 176
#ifndef BOM_UTF8
# define BOM_UTF8 "\xDD\x72\x65\x72"
#endif
#ifndef REPLACEMENT_CHARACTER_UTF8
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70"
#endif
view all matches for this distribution