12 |
ok (scalar ($s =~ /\p{InBasicLatin}+/), '\p+ support of perl'); |
ok (scalar ($s =~ /\p{InBasicLatin}+/), '\p+ support of perl'); |
13 |
ok (scalar ($s =~ /^\p{InBasicLatin}+$/), '^\p+$ support of perl'); |
ok (scalar ($s =~ /^\p{InBasicLatin}+$/), '^\p+$ support of perl'); |
14 |
## perl 5.8.0 has bug?? |
## perl 5.8.0 has bug?? |
15 |
},'', |
ok (scalar ($s =~ /^\p{InBasicLatin}\p{InBasicLatin}+$/), '^\p\p+$ support of perl'); |
16 |
|
ok (scalar ($s =~ /^\p{InBasicLatin}\p{InBasicLatin}*$/), '^\p\p*$ support of perl'); |
17 |
|
},1..4, |
18 |
sub { |
sub { |
19 |
package foo; |
package foo; |
20 |
my $s = 'NAME'; |
my $s = 'NAME'; |
21 |
main::ok (scalar ($s =~ /\p{InBasicLatin}/), 'NSed \p support of perl'); |
main::ok (scalar ($s =~ /\p{InBasicLatin}/), 'NSed \p support of perl'); |
22 |
main::ok (scalar ($s =~ /\p{InBasicLatin}+/), 'NSed \p+ support of perl'); |
main::ok (scalar ($s =~ /\p{InBasicLatin}+/), 'NSed \p+ support of perl'); |
23 |
main::ok (scalar ($s =~ /^\p{InBasicLatin}+$/), 'NSed ^\p+$ support of perl'); |
main::ok (scalar ($s =~ /^\p{InBasicLatin}+$/), 'NSed ^\p+$ support of perl'); |
24 |
}, '','','', |
main::ok (scalar ($s =~ /^\p{InBasicLatin}\p{InBasicLatin}+$/), 'NSed ^\p\p+$ support of perl'); |
25 |
|
main::ok (scalar ($s =~ /^\p{InBasicLatin}\p{InBasicLatin}*$/), 'NSed ^\p\p*$ support of perl'); |
26 |
|
}, 1..4, |
27 |
); |
); |
28 |
$case += @test; |
$case += @test; |
29 |
$case += @test; |
$case += @test; |
42 |
|
|
43 |
=head1 LICENSE |
=head1 LICENSE |
44 |
|
|
45 |
Copyright 2003 Wakaba <w@suika.fam.cx> |
Copyright 2003, 2007 Wakaba <w@suika.fam.cx> |
46 |
|
|
47 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
48 |
modify it under the same terms as Perl itself. |
modify it under the same terms as Perl itself. |