Acme-EvaTitlenize

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

# =========================================================================
# THIS FILE IS AUTOMATICALLY GENERATED BY MINILLA.
# DO NOT EDIT DIRECTLY.
# =========================================================================

use 5.008_001;

use strict;
use warnings;
use utf8;

use Module::Build;
use File::Basename;
use File::Spec;
use CPAN::Meta;
use CPAN::Meta::Prereqs;

my %args = (
    license              => 'perl',
    dynamic_config       => 0,

bin/eva-titlenize  view on Meta::CPAN

#!perl
use strict;
use warnings;
use utf8;

use Acme::EvaTitlenize;
use Encode;
use Getopt::Long qw(:config posix_default no_ignore_case gnu_compat);

my $upper_right;

Getopt::Long::GetOptions(
    'u' => \$upper_right,
);

my $str1 = Encode::decode_utf8(shift @ARGV);
my $str2 = Encode::decode_utf8(shift @ARGV);

if ($upper_right) {
    print Encode::encode_utf8( Acme::EvaTitlenize::upper_right($str1, $str2) );
} else {
    print Encode::encode_utf8( Acme::EvaTitlenize::lower_left($str1, $str2) );
}

print "\n";

__END__

=encoding utf-8

=head1 NAME

lib/Acme/EvaTitlenize.pm  view on Meta::CPAN

package Acme::EvaTitlenize;
use 5.008005;
use strict;
use warnings;
use utf8;

use Text::VisualWidth::UTF8;

our $VERSION = "0.01";

sub lower_left {
    my ($left, $low) = @_;

    my $evanize;

t/01_generate.t  view on Meta::CPAN

use strict;
use Test::More;
use utf8;

use Acme::EvaTitlenize;

my $expect_1 = <<'END';
使
徒, 襲来
END

is(Acme::EvaTitlenize::lower_left('使徒', ', 襲来') . "\n", $expect_1, 'lower_left');



( run in 1.242 second using v1.01-cache-2.11-cpan-49f99fa48dc )