1 |
wakaba |
1.1 |
<!DOCTYPE HTML> |
2 |
|
|
<html lang="en"> |
3 |
|
|
<head> |
4 |
|
|
<title>CharClass — A Perl Regular Expression Character Class |
5 |
|
|
Library</title> |
6 |
|
|
<link rel=stylesheet href="http://suika.fam.cx/www/style/html/xhtml"> |
7 |
|
|
<link rel=license href="#license"> |
8 |
|
|
<link rel=author href="http://suika.fam.cx/~wakaba/who?" title="わかば" lang=ja> |
9 |
|
|
</head> |
10 |
|
|
<body> |
11 |
|
|
<h1><i>CharClass</i> — A Perl Regular Expression Character Class |
12 |
|
|
Library</h1> |
13 |
|
|
|
14 |
|
|
<div class="section" id="modules"> |
15 |
|
|
<h2>Modules</h2> |
16 |
|
|
|
17 |
|
|
<dl> |
18 |
|
|
<dt><a href="lib/Char/Class/Alphabet.html"><code>Char::Class::Alphabet</code></a></dt> |
19 |
|
|
<dd>Character classes for alphabetical letters.</dd> |
20 |
|
|
<dt><a href="lib/Char/Class/Han.html"><code>Char::Class::Han</code></a></dt> |
21 |
|
|
<dd>Han character (CJK ideograph) classes.</dd> |
22 |
|
|
<dt><a href="lib/Char/Class/Hiragana.html"><code>Char::Class::Hiragana</code></a></dt> |
23 |
|
|
<dd>Hiragana classes.</dd> |
24 |
|
|
<dt><a href="lib/Char/Class/JaInput.html"><code>Char::Class::JaInput</code></a></dt> |
25 |
|
|
<dd>Character classes defined in JIS input method standards.</dd> |
26 |
|
|
<dt><a href="lib/Char/Class/ISOIECTR10176.html"><code>Char::Class::ISOIECTR10176</code></a></dt> |
27 |
|
|
<dd>ISO/IEC TR 10176 character repertoires.</dd> |
28 |
|
|
<dt><a href="lib/Char/Class/JISX0221.html"><code>Char::Class::JISX0221</code></a></dt> |
29 |
|
|
<dd>JIS X 0221 character collections.</dd> |
30 |
|
|
<dt><a href="lib/Char/Class/JISX4051.html"><code>Char::Class::JISX4051</code></a></dt> |
31 |
|
|
<dd>JIS X 4051 character classes.</dd> |
32 |
|
|
<dt><a href="lib/Char/Class/JISX4052.html"><code>Char::Class::JISX4052</code></a></dt> |
33 |
|
|
<dd>JIS X 4052 character classes.</dd> |
34 |
|
|
<dt><a href="lib/Char/Class/Katakana.html"><code>Char::Class::Katakana</code></a></dt> |
35 |
|
|
<dd>Katakana classes.</dd> |
36 |
|
|
<dt><a href="lib/Char/Class/Kana.html"><code>Char::Class::Kana</code></a></dt> |
37 |
|
|
<dd>Kana (hiragana, katakana, and additions) classes.</dd> |
38 |
|
|
<dt><a href="lib/Char/Class/RFC1815.html"><code>Char::Class::RFC1815</code></a></dt> |
39 |
|
|
<dd><a href="urn:ietf:rfc:1815">RFC 1815</a> character sets.</dd> |
40 |
|
|
<dt><a href="lib/Char/Class/UCS.html"><code>Char::Class::UCS</code></a></dt> |
41 |
|
|
<dd>UCS (ISO/IEC 10646) character collections.</dd> |
42 |
|
|
<dt><a href="lib/Char/Class/XML.html"><code>Char::Class::XML</code></a></dt> |
43 |
|
|
<dd>XML-related character classes such as <code>InXML_NameStartChar10</code> |
44 |
|
|
(XML 1.0 name start characters) and |
45 |
|
|
<code>InXMLNameChar</code> (XML 1.1 name characters).</dd> |
46 |
|
|
</dl> |
47 |
|
|
</div> |
48 |
|
|
|
49 |
|
|
<div class="section" id="install"> |
50 |
|
|
<h2>Install</h2> |
51 |
|
|
|
52 |
|
|
<ol> |
53 |
|
|
<li>Download the <a href="#download">tarball</a> and extract it.</li> |
54 |
|
|
<li><kbd>perl Makefile.PL</kbd></li> |
55 |
|
|
<li><kbd>make</kbd></li> |
56 |
|
|
<li><kbd>make install</kbd></li> |
57 |
|
|
</ol> |
58 |
|
|
|
59 |
|
|
<p>Alternatively, just putting all files in the directory <code>lib</code> |
60 |
|
|
into your directory for Perl modules should work as well. |
61 |
|
|
All Perl modules in this package are written in pure Perl.</p> |
62 |
|
|
</div> |
63 |
|
|
|
64 |
|
|
<div class="section" id="example"> |
65 |
|
|
<h2>Example</h2> |
66 |
|
|
|
67 |
|
|
<div class="fig example"> |
68 |
|
|
<pre class="perl"><code>use Char::Class::XML qw/InXML_NameStartChar10 InXMLNameChar10/; |
69 |
|
|
|
70 |
|
|
if ($name !~ /\A<strong>\p{InXML_NameStartChar10}</strong><strong>\p{InXMLNameChar10}</strong>*\z/) { |
71 |
|
|
die "$0: $name: This is not an XML 1.0 Name"; |
72 |
|
|
}</code></pre> |
73 |
|
|
</div> |
74 |
|
|
</div> |
75 |
|
|
|
76 |
|
|
<div class="section" id="download"> |
77 |
|
|
<h2>Distribution</h2> |
78 |
|
|
|
79 |
|
|
<ul> |
80 |
|
|
<li><a href="http://suika.fam.cx/www/charclass/release/latest-stable.tar.gz">CharClass Latest Stable Release |
81 |
|
|
(tar + gzip)</a></li> |
82 |
|
|
<li><a href="http://suika.fam.cx/www/charclass/release/charclass-1.0.tar.gz">CharClass Version 1.0, |
83 |
|
|
<time datetime="2007-07-19">July 19, 2007</time> |
84 |
|
|
(tar + gzip, 244<abbr title="kilooctets">ko</abbr>)</a></li> |
85 |
|
|
</ul> |
86 |
|
|
|
87 |
|
|
<p>The development version is available in the |
88 |
|
|
<a href="http://suika.fam.cx/gate/cvs/perl/charclass/">CVS repository</a>.</p> |
89 |
|
|
</div> |
90 |
|
|
|
91 |
|
|
<div class="section" id="todo"> |
92 |
|
|
<h2>TODO</h2> |
93 |
|
|
|
94 |
|
|
<ul> |
95 |
|
|
<li>Some classes are no longer up-to-date. Need to update.</li> |
96 |
|
|
<li>Need to improve documentation.</li> |
97 |
|
|
</ul> |
98 |
|
|
</div> |
99 |
|
|
|
100 |
|
|
<div class="section" id="license"> |
101 |
|
|
<h2>License</h2> |
102 |
|
|
|
103 |
|
|
<p>© <time>2003</time>‐<time>2007</time> |
104 |
|
|
<a href="http://suika.fam.cx/~wakaba/who?" lang=ja>わかば (Wakaba)</a> |
105 |
|
|
<code class="mail"><<a href="mailto:w@suika.fam.cx">w@suika.fam.cx</a>></code></p> |
106 |
|
|
|
107 |
|
|
<p>This library and the library generated by it is free software; you |
108 |
|
|
can redistribute them and/or modify them under the same terms as Perl itself.</p> |
109 |
|
|
</div> |
110 |
|
|
|
111 |
|
|
</body> |
112 |
|
|
</html> |