view release on metacpan or search on metacpan
inc/Module/Install/TrustMetaYml.pm view on Meta::CPAN
1;
__END__
=encoding utf8
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Repository.pm view on Meta::CPAN
}
1;
__END__
=encoding utf-8
#line 128
view all matches for this distribution
view release on metacpan or search on metacpan
inc/MyBumpVersionAfterRelease.pm view on Meta::CPAN
use warnings;
package inc::MyBumpVersionAfterRelease;
use Moose;
with 'Dist::Zilla::Role::AfterRelease';
use utf8;
use Path::Tiny 0.061;
# this is a smarter version of:
# [Run::AfterRelease]
# run = %x -p -i -e's/^version = 3\.(\d+)\s/sprintf(q(version = %0.( . (length($1)+1) . q(g), atan2(1,1)*4)/x'
inc/MyBumpVersionAfterRelease.pm view on Meta::CPAN
my $new_version = substr($Ï, 0, $length);
# munge dist.ini to edit version line
my $path = path('dist.ini');
my $content = $path->slurp_utf8;
my $delta_length = $length - length($original_version);
if ($content =~ s/^(version = )$original_version\s{$delta_length}(\s+)/$1$new_version$2/m)
{
# append+truncate to preserve file mode
$path->append_utf8({ truncate => 1 }, $content);
return 1;
}
return;
}
view all matches for this distribution
view release on metacpan or search on metacpan
benchmark/pinoko_vs_geso.pl view on Meta::CPAN
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Acme::Pinoko;
#use Acme::Ikamusume; # Acme::Ikamusume invades Text::MeCab globally
use Benchmark qw/cmpthese timethese/;
use open qw/:utf8 :std/;
my $kytea_pinoko = Acme::Pinoko->new(parser => 'Text::KyTea');
my $mecab_pinoko = Acme::Pinoko->new(parser => 'Text::MeCab');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Pointer.pm view on Meta::CPAN
our @EXPORT = qw/deref pointer/;
1;
__END__
=encoding utf-8
=head1 NAME
Acme::Pointer - We can access to data using address as the string
lib/Acme/Pointer.pm view on Meta::CPAN
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use feature qw/say/;
use Data::Dumper;
use Acme::Pointer;
my $a = {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Pony/Pink.pm view on Meta::CPAN
use 5.010;
use autodie;
use strict;
no warnings;
use utf8;
BEGIN {
$Acme::Pony::Pink::AUTHORITY = 'cpan:TOBYINK';
$Acme::Pony::Pink::VERSION = '0.003';
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Repository.pm view on Meta::CPAN
}
1;
__END__
=encoding utf-8
#line 128
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/PriPara.pm view on Meta::CPAN
package Acme::PriPara;
use 5.008001;
use strict;
use warnings;
use utf8;
our $VERSION = "0.04";
use Readonly;
lib/Acme/PriPara.pm view on Meta::CPAN
}
1;
__END__
=encoding utf-8
=head1 NAME
Acme::PriPara - It's new $module
view all matches for this distribution
view release on metacpan or search on metacpan
author/RandomEmoji.pm view on Meta::CPAN
package Acme::RandomEmoji;
use strict;
use warnings;
use utf8;
use Exporter 'import';
our @EXPORT_OK = qw(random_emoji);
our $VERSION = '0.01';
author/RandomEmoji.pm view on Meta::CPAN
1;
__END__
=encoding utf-8
=head1 NAME
Acme::RandomEmoji - pick an emoji randomly
view all matches for this distribution
view release on metacpan or search on metacpan
((SvFLAGS(sv) & (SVf_POK|SVf_UTF8)) == (SVf_POK) \
? ((lp = SvCUR(sv)), SvPVX(sv)) : my_sv_2pvbyte(aTHX_ sv, &lp))
static char *
my_sv_2pvbyte(pTHX_ register SV *sv, STRLEN *lp)
{
sv_utf8_downgrade(sv,0);
return SvPV(sv,*lp);
}
# endif
#else
# define SvPVbyte SvPV
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Replica.pm view on Meta::CPAN
}
1;
__END__
=encoding utf8
=head1 NAME
Acme::Replica
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/ReturnValue.pm view on Meta::CPAN
return if $rv eq 1;
return if $rv eq '__PACKAGE__';
return if $rv =~ /^__PACKAGE__->meta->make_immutable/;
$rv = decode_utf8($rv);
my $data = {
'file' => $filename,
'package' => $this_package,
'PPI' => ref $match,
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/SWUECHO/Meta.pm view on Meta::CPAN
1;
__END__
=encoding utf-8
=head1 NAME
Acme::SWUECHO::Meta - a set of tool to learn modules.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/SaBalTongMun.pm view on Meta::CPAN
package Acme::SaBalTongMun;
our $VERSION = '1.100830';
use Moose;
# ENCODING: utf-8
# ABSTRACT: make a round robin (ì¬ë°íµë¬¸, æ²é¢éæ)
use namespace::autoclean;
lib/Acme/SaBalTongMun.pm view on Meta::CPAN
1;
__END__
=pod
=encoding utf-8
=head1 NAME
Acme::SaBalTongMun - make a round robin (ì¬ë°íµë¬¸, æ²é¢éæ)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Samurai.pm view on Meta::CPAN
package Acme::Samurai;
use 5.010001;
use strict;
use warnings;
use utf8;
our $VERSION = '0.04';
use File::ShareDir qw/dist_file/;
use Lingua::JA::Alphabet::Yomi qw/alphabet2yomi/;
use Lingua::JA::Numbers qw/num2ja/;
lib/Acme/Samurai.pm view on Meta::CPAN
}
1;
__END__
=encoding utf-8
=head1 NAME
Acme::Samurai - Speak like a Samurai
=head1 SYNOPSIS
use utf8;
use Acme::Samurai;
Acme::Samurai->gozaru("ç§ãä¾ã§ã"); # => "ãããããä¾ã§ããã"
=head1 DESCRIPTION
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Schlong.pm view on Meta::CPAN
__END__
=pod
=encoding utf-8
=head1 NAME
Acme::Schlong - Fun with Acme::Schlong!
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Selection/RarestFirst.pod view on Meta::CPAN
=pod
=encoding utf-8
=head1 NAME
Acme::Selection::RarestFirst - Rarest-First Selection Algorithm
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Shukugawa/Atom.pm view on Meta::CPAN
package Acme::Shukugawa::Atom;
use strict;
use warnings;
use base qw(Class::Accessor::Fast);
use utf8;
use Encode qw(decode_utf8);
use File::ShareDir;
use Text::MeCab;
use YAML ();
our $VERSION = '0.00004';
lib/Acme/Shukugawa/Atom.pm view on Meta::CPAN
our ($CONFIG, @DEFAULT_WORDS, $RE_EXCEPTION, $RE_SMALL, $RE_SYLLABLE, $RE_NBAR);
BEGIN
{
my $config = YAML::LoadFile(
$CONFIG || File::ShareDir::module_file(__PACKAGE__, 'config.yaml') );
$RE_SMALL = decode_utf8("[ã£ã¥ã§ãã¼]");
$RE_SYLLABLE = decode_utf8("(?:.$RE_SMALL?)");
$RE_NBAR = decode_utf8("^ã³ã¼");
@DEFAULT_WORDS = map {
(decode_utf8($_->[0]), decode_utf8($_->[1]))
} @{ $config->{custom_words} || [] };
}
sub _create_exception_re
{
my $self = shift;
my $custom = $self->custom_words;
return decode_utf8(join("|",
map { $custom->[$_ * 2 + 1] } (0..(scalar(@$custom) - 1)/2) ));
}
sub translate
{
my $self = shift;
my $string = decode_utf8(shift);
if (! ref $self) {
$self = $self->new({ custom_words => \@DEFAULT_WORDS, @_ });
}
lib/Acme/Shukugawa/Atom.pm view on Meta::CPAN
}
foreach (my $node = $mecab->parse($text); $node; $node = $node->next) {
next unless $node->surface;
my $surface = decode_utf8($node->surface);
my $feature = decode_utf8($node->feature);
my ($type, $yomi) = (split(/,/, $feature))[0,8];
# warn "$surface -> $type, $yomi";
if ($surface eq '䏿') {
$ret .= 'ãã¤ã¦ã¼';
next;
}
if ($type eq 'åè©' && $node->next) {
# å©åè©ãè¨ç®ã«å
¥ãã
my $next_feature = decode_utf8($node->next->feature);
my ($next_type, $next_yomi) = (split(/,/, $next_feature))[0,8];
if ($next_type eq 'å©åè©') {
$yomi .= $next_yomi;
$node = $node->next;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Signature/Arity.pod view on Meta::CPAN
=encoding utf8
=for comment POD_DERIVED_INDEX_GENERATED
The following documentation is automatically generated. Please do not edit
this file, but rather the original, inline with Acme::Signature::Arity
at lib/Acme/Signature/Arity.pm
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Songmu.pm view on Meta::CPAN
package Acme::Songmu;
use 5.010;
use strict;
use warnings;
use utf8;
use Encode;
use version 0.77; our $VERSION = version->declare("v0.1.0");
use Time::Piece ();
lib/Acme/Songmu.pm view on Meta::CPAN
my $self = shift;
sprintf '%s %s', $self->first_name, $self->last_name;
}
sub gmu {
say encode_utf8 'ããã¼';
}
1;
__END__
=encoding utf-8
=for stopwords sandboxing
=head1 NAME
view all matches for this distribution
view release on metacpan or search on metacpan
local/lib/perl5/IO/Async/Handle.pm view on Meta::CPAN
unless( $self->can_event( 'on_read_ready' ) ) {
croak 'Expected either a on_read_ready callback or an ->on_read_ready method';
}
my @layers = PerlIO::get_layers( $read_handle );
if( grep m/^encoding\(/, @layers or grep m/^utf8$/, @layers ) {
# Only warn for now, because if it's UTF-8 by default but only
# passes ASCII then all will be well
carp "Constructing a ".ref($self)." with an encoding-enabled handle may not read correctly";
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Speed.pm view on Meta::CPAN
}
1;
__END__
=encoding utf-8
=head1 NAME
Acme::Speed - About "SPEED" is Japanese female vocal/dance group
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/State.pm view on Meta::CPAN
use Devel::Caller 'caller_cv';
use IO::Handle;
my @stop_modules = (
'1' .. '9', ':',
'SIG', 'stderr', '__ANON__', 'utf8::', 'CORE::', 'DynaLoader::', 'strict::',
'stdout', 'attributes::', 'stdin', 'ARGV', 'INC', 'Scalar::', 'ENV',
'Regexp::', 'XSLoader::', 'UNIVERSAL::', 'overload::', 'B::', 'Carp::',
'Data::', 'PerlIO::', '0', 'BEGIN', 'STDOUT', 'IO::', '_', 'Dumper',
'Exporter::', 'bytes::', 'STDERR', 'Internals::', 'STDIN', 'Config::',
'warnings::', 'DB::',
view all matches for this distribution
view release on metacpan or search on metacpan
t/03_flags.t view on Meta::CPAN
# UTF8
my $unistr = "\x{307b}\x{3052}\x{ff01}"; # [hoge] in Japanese hiragana
ok utf8::is_utf8($unistr), 'deals with utf8 string';
ok utf8::is_utf8("[%s]$unistr" % 'foo'), 'lhs';
is "[%s]$unistr" % 'foo', "[foo]$unistr";
ok utf8::is_utf8('[%s]' % $unistr), 'rhs';
is '[%s]' % $unistr, "[$unistr]";
$fmt = '[%s]';
$fmt %= $unistr;
ok utf8::is_utf8($fmt), 'assign';
is $fmt, "[$unistr]";
view all matches for this distribution
view release on metacpan or search on metacpan
DateLocales.pm view on Meta::CPAN
=head2 RESULTS
* Solaris 10:
* does not understand %OB
* %B seems to return the genitive form
* the "short" locale names seem to link to the non-utf8 forms (iso-8859-1 or so)
* encoding seems to match the locale charset
* all Serbian variants are cyrillic
* FreeBSD 6.2, 7.0, 7.2:
* understands %OB, which is usually the nominative form of month names
* %B has the genitive form (modulo bugs, see the Croatian locale)
DateLocales.pm view on Meta::CPAN
* encoding seems to match the locale charset
* Linux (debian etch):
* does not understand %OB
* %B returns the nominative form (at least for Croatian)
* encoding seems to match the locale charset
* the "short" locale names seem to link to the non-utf8 forms (iso-8859-1 or so)
* Linux (s390x-linux):
* does not understand %OB
* %B returns the nominative form (at least for Bosnian and Czech)
* the @euro form seems to be the same like the "short" locale (that is, iso-8859-15 or so)
* OpenBSD 4.5:
DateLocales.pm view on Meta::CPAN
* cygwin:
* does not seem to have the "locales -a" command, so only the default locale was tested
* understands %OB, contents (genitive vs. nominative) unclear
* irix 6.5:
* does not understand %OB
* does not have utf-8 locales, but iso-8859-15 locales
* the non-latin-1 locales (latin2, russian) don't have an encoding spec in its
locale name, so detecting the encoding must be done through an heuristic
=head1 AUTHOR
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Sub/Parms.pod view on Meta::CPAN
code so it can be used B<without> needing Acme::Sub::Parms to be
installed at all.
This would typically be used by setting the flag on the
'use Acme::Sub::Parms', and then running
perl -c sourcefile > outputfile
(with 'sourcefile' and 'outputfile' replaced with the appropriate
filenames).
=back
=head1 Parameter Binding and Validation
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/SuddenlyDeath.pm view on Meta::CPAN
package Acme::SuddenlyDeath;
use strict;
use warnings;
use utf8;
use parent 'Exporter';
use Text::VisualWidth::UTF8;
our @EXPORT = qw/ sudden_death sudden_death_single /;
lib/Acme/SuddenlyDeath.pm view on Meta::CPAN
}
1;
__END__
=encoding utf8
=head1 NAME
Acme::SuddenlyDeath - ASCII Art of sudden death (çªç¶ã®æ») generator
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/TLDR.pm view on Meta::CPAN
package Acme::TLDR;
# ABSTRACT: Abbreviate Perl namespaces for the Extreme Perl Golf
use strict;
use utf8;
use warnings qw(all);
use Digest::MD5 qw(md5_hex);
use ExtUtils::Installed;
use File::HomeDir;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Taboo.pm view on Meta::CPAN
}
1;
__END__
=encoding utf-8
=head1 NAME
Acme::Taboo - Automated Cencoring Micro Engine
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Tanasinn.pm view on Meta::CPAN
use strict;
use 5.008;
=encoding utf-8
=head1 NAME
Acme::Tanasinn - Don't think. Feel and you'll be tanasinn.
view all matches for this distribution