Changeset 38965
- Timestamp:
- 07/26/11 19:25:10 (22 months ago)
- Location:
- lang/perl/Lingua-JA-Kana/trunk
- Files:
-
- 3 modified
-
Changes (modified) (1 diff)
-
Makefile.PL (modified) (1 diff)
-
lib/Lingua/JA/Kana.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Lingua-JA-Kana/trunk/Changes
r38936 r38965 1 1 # Revision history for Lingua-JA-Kana 2 2 # 3 # $Id: Changes,v 0. 5 2011/06/10 10:23:43dankogai Exp dankogai $3 # $Id: Changes,v 0.6 2011/07/26 09:50:36 dankogai Exp dankogai $ 4 4 # 5 $Revision: 0.5 $ $Date: 2011/06/10 10:23:43 $ 5 $Revision: 0.6 $ $Date: 2011/07/26 09:50:36 $ 6 ! lib/Lingua/JA/Kana.pm 7 support perl 5.14+, that is "Stringification of regexes has changed". 8 by @tokuhirom 9 https://github.com/dankogai/p5-lingua-ja-kana/pull/1/files 10 11 0.05 2011/06/10 10:23:43 6 12 + t/01-RT.t 7 13 ! Makefile.PL -
lang/perl/Lingua-JA-Kana/trunk/Makefile.PL
r38936 r38965 1 1 # 2 # $Id: Makefile.PL,v 0.2 2011/06/10 10:23:43 dankogai Exp dankogai$2 # $Id: Makefile.PL,v 0.2 2011/06/10 10:23:43 dankogai Exp $ 3 3 # 4 4 use 5.008001; # needs perl 5.8.1 or better -
lang/perl/Lingua-JA-Kana/trunk/lib/Lingua/JA/Kana.pm
r38936 r38965 4 4 use utf8; 5 5 6 our $VERSION = sprintf "%d.%02d", q$Revision: 0.5 $ =~ /(\d+)/g; 7 6 our $VERSION = sprintf "%d.%02d", q$Revision: 0.6 $ =~ /(\d+)/g; 7 8 use re (); 8 9 require Exporter; 9 10 use base qw/Exporter/; … … 122 123 $ra->add($_) for keys %Romaji2Kata; 123 124 my $str = $ra->re; 124 substr( $str, 0, 8, '' ); # remove '(?-xism:' 125 substr( $str, -1, 1, '' ); # and ')'; 125 if ($] >= 5.009005) { 126 my ($pattern, $mod) = re::regexp_pattern($str); 127 $str = $pattern; 128 } else { 129 substr( $str, 0, 8, '' ); # remove '(?-xism:' 130 substr( $str, -1, 1, '' ); # and ')'; 131 } 126 132 qr/$str/i; # and recompile with i 127 133 } … … 222 228 =head1 VERSION 223 229 224 $Id: Kana.pm,v 0. 5 2011/06/10 10:23:43 dankogai Exp dankogai$230 $Id: Kana.pm,v 0.6 2011/07/26 09:48:18 dankogai Exp $ 225 231 226 232 =head1 SYNOPSIS
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)