/[suikacvs]/perl/charclass/lib/Char/Class/Katakana.pm
Suika

Contents of /perl/charclass/lib/Char/Class/Katakana.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Nov 24 04:25:10 2008 UTC (16 years ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
++ ChangeLog	24 Nov 2008 04:24:23 -0000
2008-11-24  Wakaba  <wakaba@suika.fam.cx>

	* mkcommitfeed.pl: New script (copied from Harusame).

	* cvscommit.sh: New script (copied from Harusame).

	* Makefile.PL: Version changed to 2.0.

++ charclass/lib/Char/ChangeLog	24 Nov 2008 01:52:26 -0000
2008-11-24  Wakaba  <wakaba@suika.fam.cx>

	* Normalize/: New directory.

++ charclass/lib/Char/Normalize/ChangeLog	24 Nov 2008 04:20:30 -0000
2008-11-24  Wakaba  <wakaba@suika.fam.cx>

	* FullwidthHalfwidth.pod: New documentation.

	* FullwidthHalfwidth.pm: New module (content from SuikaWiki4
	sw.cgi).

	* ChangeLog: New file.

1 wakaba 1.2 ## This file is auto-generated (at 2008-11-24T04:21:27Z).
2 wakaba 1.1 ## Do not edit by hand!
3     use strict;
4    
5     package Char::Class::Katakana;
6     our $VERSION = '1.02';
7    
8     use Exporter;
9     use vars qw(@EXPORT_OK @ISA $VERSION);
10     @ISA = qw(Exporter);
11    
12     =head1 NAME
13    
14     Char::Class::Katakana - Regular Expression Character Classes - C<Katakana>
15    
16    
17     =cut
18    
19     sub import ($;@) {
20     my ($self, @sub) = (shift, @_);
21     for (@sub) {
22     no strict 'refs';
23     *{'main::'.$_} = \&{$_};
24     }
25     $Exporter::ExportLevel = 1;
26     $self->SUPER::import (@_);
27     $Exporter::ExportLevel = 0;
28     }
29    
30     @EXPORT_OK = qw(InKatakanaAll InKatakanaDigraph InKatakanaHatsuon InKatakanaSeion InKatakanaSemiVoiced InKatakanaSmall InKatakanaVoiced);
31    
32     sub InKatakanaAll {
33     <<EOH;
34     30A1 30FA
35     30FD 30FF
36     31F0 31FF
37     EOH
38     }
39    
40     sub InKatakanaDigraph {
41     <<EOH;
42     30FF
43     EOH
44     }
45    
46     sub InKatakanaHatsuon {
47     <<EOH;
48     30F3
49     EOH
50     }
51    
52     sub InKatakanaSeion {
53     <<EOH;
54     30A2
55     30A4
56     30A6
57     30A8
58     30AA
59     30AB
60     30AD
61     30AF
62     30B1
63     30B3
64     30B5
65     30B7
66     30B9
67     30BB
68     30BD
69     30BF
70     30C1
71     30C4
72     30C6
73     30C8
74     30CA
75     30CB
76     30CC
77     30CD
78     30CE
79     30CF
80     30D2
81     30D5
82     30D8
83     30DB
84     30DE
85     30DF
86     30E0
87     30E1
88     30E2
89     30E4
90     30E6
91     30E8
92     30E9
93     30EA
94     30EB
95     30EC
96     30ED
97     30EF
98     30F0
99     30F1
100     30F2
101     EOH
102     }
103    
104     sub InKatakanaSemiVoiced {
105     <<EOH;
106     30D1
107     30D4
108     30D7
109     30DA
110     30DD
111     EOH
112     }
113    
114     sub InKatakanaSmall {
115     <<EOH;
116     30A1
117     30A3
118     30A5
119     30A7
120     30A9
121     30C3
122     30E3
123     30E5
124     30E7
125     30EE
126     30F5
127     30F6
128     31F0
129     31F1
130     31F2
131     31F3
132     31F4
133     31F5
134     31F6
135     31F7
136     31F8
137     31F9
138     31FA
139     31FB
140     31FC
141     31FD
142     31FE
143     31FF
144     EOH
145     }
146    
147     sub InKatakanaVoiced {
148     <<EOH;
149     30AC
150     30AE
151     30B0
152     30B2
153     30B4
154     30B6
155     30B8
156     30BA
157     30BC
158     30BE
159     30C0
160     30C2
161     30C5
162     30C7
163     30C9
164     30D0
165     30D3
166     30D6
167     30D9
168     30DC
169     30F4
170     30F7
171     30F8
172     30F9
173     30FA
174     EOH
175     }
176    
177     =head1 COLLECTION NAMES
178    
179     =over 4
180    
181     =item C<InKatakanaAll>
182    
183     =item C<InKatakanaDigraph>
184    
185     =item C<InKatakanaHatsuon>
186    
187     =item C<InKatakanaSeion>
188    
189     =item C<InKatakanaSemiVoiced>
190    
191     =item C<InKatakanaSmall>
192    
193     =item C<InKatakanaVoiced>
194    
195     =back
196    
197     =cut
198    
199    
200     =head1 EXAMPLE
201    
202     use Char::Class::Katakana;
203     if ($s =~ /\p{InSeion}/) {
204     print "Match!\n";
205     }
206    
207     =head1 LICENSE
208    
209 wakaba 1.2 Copyright 2008 Wakaba <w@suika.fam.cx>
210 wakaba 1.1
211     This library and the library generated by it is free software;
212     you can redistribute them and/or modify them under the same
213     terms as Perl itself.
214    
215     =cut
216    
217     1;
218     ### Katakana.pm ends here

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24