annotate vendor/pear/net_idna2/Net/IDNA2.php @ 41:d2414df68d78

Updated by Alex S Grebenschikov (www.poralix.com) to make it compatible with RoundCube 1.3.0
author Charlie Root
date Fri, 24 Jan 2025 14:20:15 -0500
parents 1e000243b222
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1 <?php
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3 // {{{ license
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
4
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
5 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
6 //
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
7 // +----------------------------------------------------------------------+
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
8 // | This library is free software; you can redistribute it and/or modify |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
9 // | it under the terms of the GNU Lesser General Public License as |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
10 // | published by the Free Software Foundation; either version 2.1 of the |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
11 // | License, or (at your option) any later version. |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
12 // | |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
13 // | This library is distributed in the hope that it will be useful, but |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
14 // | WITHOUT ANY WARRANTY; without even the implied warranty of |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
16 // | Lesser General Public License for more details. |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
17 // | |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
18 // | You should have received a copy of the GNU Lesser General Public |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
19 // | License along with this library; if not, write to the Free Software |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
20 // | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
21 // | USA. |
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
22 // +----------------------------------------------------------------------+
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
23 //
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
24
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
25 // }}}
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
26 require_once 'Net/IDNA2/Exception.php';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
27 require_once 'Net/IDNA2/Exception/Nameprep.php';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
28
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
29 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
30 * Encode/decode Internationalized Domain Names.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
31 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
32 * The class allows one to convert internationalized domain names
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
33 * (see RFC 3490 for details) as they can be used with various registries worldwide
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
34 * to be translated between their original (localized) form and their encoded form
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
35 * as it will be used in the DNS (Domain Name System).
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
36 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
37 * The class provides two public methods, encode() and decode(), which do exactly
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
38 * what you would expect them to do. You are allowed to use complete domain names,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
39 * simple strings and complete email addresses as well. That means, that you might
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
40 * use any of the following notations:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
41 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
42 * - www.n�rgler.com
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
43 * - xn--nrgler-wxa
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
44 * - xn--brse-5qa.xn--knrz-1ra.info
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
45 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
46 * Unicode input might be given as either UTF-8 string, UCS-4 string or UCS-4
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
47 * array. Unicode output is available in the same formats.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
48 * You can select your preferred format via {@link set_paramter()}.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
49 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
50 * ACE input and output is always expected to be ASCII.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
51 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
52 * @package Net
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
53 * @author Markus Nix <mnix@docuverse.de>
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
54 * @author Matthias Sommerfeld <mso@phlylabs.de>
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
55 * @author Stefan Neufeind <pear.neufeind@speedpartner.de>
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
56 * @version $Id$
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
57 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
58 class Net_IDNA2
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
59 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
60 // {{{ npdata
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
61 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
62 * These Unicode codepoints are
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
63 * mapped to nothing, See RFC3454 for details
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
64 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
65 * @static
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
66 * @var array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
67 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
68 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
69 private static $_np_map_nothing = array(
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
70 0xAD,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
71 0x34F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
72 0x1806,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
73 0x180B,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
74 0x180C,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
75 0x180D,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
76 0x200B,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
77 0x200C,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
78 0x200D,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
79 0x2060,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
80 0xFE00,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
81 0xFE01,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
82 0xFE02,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
83 0xFE03,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
84 0xFE04,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
85 0xFE05,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
86 0xFE06,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
87 0xFE07,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
88 0xFE08,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
89 0xFE09,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
90 0xFE0A,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
91 0xFE0B,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
92 0xFE0C,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
93 0xFE0D,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
94 0xFE0E,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
95 0xFE0F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
96 0xFEFF
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
97 );
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
98
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
99 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
100 * Prohibited codepints
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
101 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
102 * @static
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
103 * @var array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
104 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
105 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
106 private static $_general_prohibited = array(
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
107 0,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
108 1,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
109 2,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
110 3,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
111 4,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
112 5,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
113 6,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
114 7,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
115 8,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
116 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
117 0xA,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
118 0xB,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
119 0xC,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
120 0xD,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
121 0xE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
122 0xF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
123 0x10,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
124 0x11,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
125 0x12,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
126 0x13,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
127 0x14,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
128 0x15,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
129 0x16,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
130 0x17,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
131 0x18,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
132 0x19,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
133 0x1A,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
134 0x1B,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
135 0x1C,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
136 0x1D,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
137 0x1E,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
138 0x1F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
139 0x20,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
140 0x21,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
141 0x22,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
142 0x23,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
143 0x24,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
144 0x25,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
145 0x26,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
146 0x27,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
147 0x28,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
148 0x29,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
149 0x2A,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
150 0x2B,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
151 0x2C,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
152 0x2F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
153 0x3B,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
154 0x3C,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
155 0x3D,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
156 0x3E,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
157 0x3F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
158 0x40,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
159 0x5B,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
160 0x5C,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
161 0x5D,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
162 0x5E,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
163 0x5F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
164 0x60,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
165 0x7B,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
166 0x7C,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
167 0x7D,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
168 0x7E,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
169 0x7F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
170 0x3002
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
171 );
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
172
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
173 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
174 * Codepints prohibited by Nameprep
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
175 * @static
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
176 * @var array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
177 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
178 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
179 private static $_np_prohibit = array(
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
180 0xA0,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
181 0x1680,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
182 0x2000,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
183 0x2001,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
184 0x2002,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
185 0x2003,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
186 0x2004,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
187 0x2005,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
188 0x2006,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
189 0x2007,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
190 0x2008,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
191 0x2009,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
192 0x200A,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
193 0x200B,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
194 0x202F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
195 0x205F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
196 0x3000,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
197 0x6DD,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
198 0x70F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
199 0x180E,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
200 0x200C,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
201 0x200D,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
202 0x2028,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
203 0x2029,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
204 0xFEFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
205 0xFFF9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
206 0xFFFA,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
207 0xFFFB,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
208 0xFFFC,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
209 0xFFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
210 0xFFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
211 0x1FFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
212 0x1FFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
213 0x2FFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
214 0x2FFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
215 0x3FFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
216 0x3FFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
217 0x4FFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
218 0x4FFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
219 0x5FFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
220 0x5FFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
221 0x6FFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
222 0x6FFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
223 0x7FFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
224 0x7FFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
225 0x8FFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
226 0x8FFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
227 0x9FFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
228 0x9FFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
229 0xAFFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
230 0xAFFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
231 0xBFFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
232 0xBFFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
233 0xCFFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
234 0xCFFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
235 0xDFFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
236 0xDFFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
237 0xEFFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
238 0xEFFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
239 0xFFFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
240 0xFFFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
241 0x10FFFE,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
242 0x10FFFF,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
243 0xFFF9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
244 0xFFFA,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
245 0xFFFB,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
246 0xFFFC,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
247 0xFFFD,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
248 0x340,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
249 0x341,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
250 0x200E,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
251 0x200F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
252 0x202A,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
253 0x202B,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
254 0x202C,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
255 0x202D,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
256 0x202E,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
257 0x206A,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
258 0x206B,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
259 0x206C,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
260 0x206D,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
261 0x206E,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
262 0x206F,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
263 0xE0001
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
264 );
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
265
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
266 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
267 * Codepoint ranges prohibited by nameprep
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
268 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
269 * @static
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
270 * @var array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
271 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
272 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
273 private static $_np_prohibit_ranges = array(
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
274 array(0x80, 0x9F ),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
275 array(0x2060, 0x206F ),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
276 array(0x1D173, 0x1D17A ),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
277 array(0xE000, 0xF8FF ),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
278 array(0xF0000, 0xFFFFD ),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
279 array(0x100000, 0x10FFFD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
280 array(0xFDD0, 0xFDEF ),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
281 array(0xD800, 0xDFFF ),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
282 array(0x2FF0, 0x2FFB ),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
283 array(0xE0020, 0xE007F )
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
284 );
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
285
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
286 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
287 * Replacement mappings (casemapping, replacement sequences, ...)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
288 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
289 * @static
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
290 * @var array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
291 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
292 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
293 private static $_np_replacemaps = array(
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
294 0x41 => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
295 0x42 => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
296 0x43 => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
297 0x44 => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
298 0x45 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
299 0x46 => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
300 0x47 => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
301 0x48 => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
302 0x49 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
303 0x4A => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
304 0x4B => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
305 0x4C => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
306 0x4D => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
307 0x4E => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
308 0x4F => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
309 0x50 => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
310 0x51 => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
311 0x52 => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
312 0x53 => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
313 0x54 => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
314 0x55 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
315 0x56 => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
316 0x57 => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
317 0x58 => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
318 0x59 => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
319 0x5A => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
320 0xB5 => array(0x3BC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
321 0xC0 => array(0xE0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
322 0xC1 => array(0xE1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
323 0xC2 => array(0xE2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
324 0xC3 => array(0xE3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
325 0xC4 => array(0xE4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
326 0xC5 => array(0xE5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
327 0xC6 => array(0xE6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
328 0xC7 => array(0xE7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
329 0xC8 => array(0xE8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
330 0xC9 => array(0xE9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
331 0xCA => array(0xEA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
332 0xCB => array(0xEB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
333 0xCC => array(0xEC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
334 0xCD => array(0xED),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
335 0xCE => array(0xEE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
336 0xCF => array(0xEF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
337 0xD0 => array(0xF0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
338 0xD1 => array(0xF1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
339 0xD2 => array(0xF2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
340 0xD3 => array(0xF3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
341 0xD4 => array(0xF4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
342 0xD5 => array(0xF5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
343 0xD6 => array(0xF6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
344 0xD8 => array(0xF8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
345 0xD9 => array(0xF9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
346 0xDA => array(0xFA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
347 0xDB => array(0xFB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
348 0xDC => array(0xFC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
349 0xDD => array(0xFD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
350 0xDE => array(0xFE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
351 0xDF => array(0x73, 0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
352 0x100 => array(0x101),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
353 0x102 => array(0x103),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
354 0x104 => array(0x105),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
355 0x106 => array(0x107),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
356 0x108 => array(0x109),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
357 0x10A => array(0x10B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
358 0x10C => array(0x10D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
359 0x10E => array(0x10F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
360 0x110 => array(0x111),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
361 0x112 => array(0x113),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
362 0x114 => array(0x115),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
363 0x116 => array(0x117),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
364 0x118 => array(0x119),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
365 0x11A => array(0x11B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
366 0x11C => array(0x11D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
367 0x11E => array(0x11F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
368 0x120 => array(0x121),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
369 0x122 => array(0x123),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
370 0x124 => array(0x125),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
371 0x126 => array(0x127),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
372 0x128 => array(0x129),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
373 0x12A => array(0x12B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
374 0x12C => array(0x12D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
375 0x12E => array(0x12F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
376 0x130 => array(0x69, 0x307),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
377 0x132 => array(0x133),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
378 0x134 => array(0x135),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
379 0x136 => array(0x137),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
380 0x139 => array(0x13A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
381 0x13B => array(0x13C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
382 0x13D => array(0x13E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
383 0x13F => array(0x140),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
384 0x141 => array(0x142),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
385 0x143 => array(0x144),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
386 0x145 => array(0x146),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
387 0x147 => array(0x148),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
388 0x149 => array(0x2BC, 0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
389 0x14A => array(0x14B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
390 0x14C => array(0x14D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
391 0x14E => array(0x14F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
392 0x150 => array(0x151),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
393 0x152 => array(0x153),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
394 0x154 => array(0x155),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
395 0x156 => array(0x157),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
396 0x158 => array(0x159),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
397 0x15A => array(0x15B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
398 0x15C => array(0x15D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
399 0x15E => array(0x15F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
400 0x160 => array(0x161),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
401 0x162 => array(0x163),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
402 0x164 => array(0x165),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
403 0x166 => array(0x167),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
404 0x168 => array(0x169),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
405 0x16A => array(0x16B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
406 0x16C => array(0x16D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
407 0x16E => array(0x16F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
408 0x170 => array(0x171),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
409 0x172 => array(0x173),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
410 0x174 => array(0x175),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
411 0x176 => array(0x177),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
412 0x178 => array(0xFF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
413 0x179 => array(0x17A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
414 0x17B => array(0x17C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
415 0x17D => array(0x17E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
416 0x17F => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
417 0x181 => array(0x253),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
418 0x182 => array(0x183),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
419 0x184 => array(0x185),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
420 0x186 => array(0x254),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
421 0x187 => array(0x188),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
422 0x189 => array(0x256),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
423 0x18A => array(0x257),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
424 0x18B => array(0x18C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
425 0x18E => array(0x1DD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
426 0x18F => array(0x259),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
427 0x190 => array(0x25B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
428 0x191 => array(0x192),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
429 0x193 => array(0x260),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
430 0x194 => array(0x263),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
431 0x196 => array(0x269),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
432 0x197 => array(0x268),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
433 0x198 => array(0x199),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
434 0x19C => array(0x26F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
435 0x19D => array(0x272),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
436 0x19F => array(0x275),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
437 0x1A0 => array(0x1A1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
438 0x1A2 => array(0x1A3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
439 0x1A4 => array(0x1A5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
440 0x1A6 => array(0x280),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
441 0x1A7 => array(0x1A8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
442 0x1A9 => array(0x283),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
443 0x1AC => array(0x1AD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
444 0x1AE => array(0x288),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
445 0x1AF => array(0x1B0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
446 0x1B1 => array(0x28A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
447 0x1B2 => array(0x28B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
448 0x1B3 => array(0x1B4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
449 0x1B5 => array(0x1B6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
450 0x1B7 => array(0x292),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
451 0x1B8 => array(0x1B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
452 0x1BC => array(0x1BD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
453 0x1C4 => array(0x1C6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
454 0x1C5 => array(0x1C6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
455 0x1C7 => array(0x1C9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
456 0x1C8 => array(0x1C9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
457 0x1CA => array(0x1CC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
458 0x1CB => array(0x1CC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
459 0x1CD => array(0x1CE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
460 0x1CF => array(0x1D0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
461 0x1D1 => array(0x1D2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
462 0x1D3 => array(0x1D4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
463 0x1D5 => array(0x1D6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
464 0x1D7 => array(0x1D8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
465 0x1D9 => array(0x1DA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
466 0x1DB => array(0x1DC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
467 0x1DE => array(0x1DF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
468 0x1E0 => array(0x1E1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
469 0x1E2 => array(0x1E3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
470 0x1E4 => array(0x1E5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
471 0x1E6 => array(0x1E7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
472 0x1E8 => array(0x1E9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
473 0x1EA => array(0x1EB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
474 0x1EC => array(0x1ED),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
475 0x1EE => array(0x1EF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
476 0x1F0 => array(0x6A, 0x30C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
477 0x1F1 => array(0x1F3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
478 0x1F2 => array(0x1F3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
479 0x1F4 => array(0x1F5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
480 0x1F6 => array(0x195),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
481 0x1F7 => array(0x1BF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
482 0x1F8 => array(0x1F9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
483 0x1FA => array(0x1FB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
484 0x1FC => array(0x1FD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
485 0x1FE => array(0x1FF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
486 0x200 => array(0x201),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
487 0x202 => array(0x203),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
488 0x204 => array(0x205),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
489 0x206 => array(0x207),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
490 0x208 => array(0x209),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
491 0x20A => array(0x20B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
492 0x20C => array(0x20D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
493 0x20E => array(0x20F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
494 0x210 => array(0x211),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
495 0x212 => array(0x213),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
496 0x214 => array(0x215),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
497 0x216 => array(0x217),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
498 0x218 => array(0x219),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
499 0x21A => array(0x21B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
500 0x21C => array(0x21D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
501 0x21E => array(0x21F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
502 0x220 => array(0x19E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
503 0x222 => array(0x223),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
504 0x224 => array(0x225),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
505 0x226 => array(0x227),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
506 0x228 => array(0x229),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
507 0x22A => array(0x22B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
508 0x22C => array(0x22D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
509 0x22E => array(0x22F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
510 0x230 => array(0x231),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
511 0x232 => array(0x233),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
512 0x345 => array(0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
513 0x37A => array(0x20, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
514 0x386 => array(0x3AC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
515 0x388 => array(0x3AD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
516 0x389 => array(0x3AE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
517 0x38A => array(0x3AF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
518 0x38C => array(0x3CC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
519 0x38E => array(0x3CD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
520 0x38F => array(0x3CE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
521 0x390 => array(0x3B9, 0x308, 0x301),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
522 0x391 => array(0x3B1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
523 0x392 => array(0x3B2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
524 0x393 => array(0x3B3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
525 0x394 => array(0x3B4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
526 0x395 => array(0x3B5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
527 0x396 => array(0x3B6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
528 0x397 => array(0x3B7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
529 0x398 => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
530 0x399 => array(0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
531 0x39A => array(0x3BA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
532 0x39B => array(0x3BB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
533 0x39C => array(0x3BC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
534 0x39D => array(0x3BD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
535 0x39E => array(0x3BE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
536 0x39F => array(0x3BF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
537 0x3A0 => array(0x3C0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
538 0x3A1 => array(0x3C1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
539 0x3A3 => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
540 0x3A4 => array(0x3C4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
541 0x3A5 => array(0x3C5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
542 0x3A6 => array(0x3C6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
543 0x3A7 => array(0x3C7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
544 0x3A8 => array(0x3C8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
545 0x3A9 => array(0x3C9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
546 0x3AA => array(0x3CA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
547 0x3AB => array(0x3CB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
548 0x3B0 => array(0x3C5, 0x308, 0x301),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
549 0x3C2 => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
550 0x3D0 => array(0x3B2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
551 0x3D1 => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
552 0x3D2 => array(0x3C5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
553 0x3D3 => array(0x3CD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
554 0x3D4 => array(0x3CB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
555 0x3D5 => array(0x3C6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
556 0x3D6 => array(0x3C0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
557 0x3D8 => array(0x3D9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
558 0x3DA => array(0x3DB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
559 0x3DC => array(0x3DD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
560 0x3DE => array(0x3DF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
561 0x3E0 => array(0x3E1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
562 0x3E2 => array(0x3E3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
563 0x3E4 => array(0x3E5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
564 0x3E6 => array(0x3E7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
565 0x3E8 => array(0x3E9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
566 0x3EA => array(0x3EB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
567 0x3EC => array(0x3ED),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
568 0x3EE => array(0x3EF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
569 0x3F0 => array(0x3BA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
570 0x3F1 => array(0x3C1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
571 0x3F2 => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
572 0x3F4 => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
573 0x3F5 => array(0x3B5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
574 0x400 => array(0x450),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
575 0x401 => array(0x451),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
576 0x402 => array(0x452),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
577 0x403 => array(0x453),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
578 0x404 => array(0x454),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
579 0x405 => array(0x455),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
580 0x406 => array(0x456),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
581 0x407 => array(0x457),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
582 0x408 => array(0x458),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
583 0x409 => array(0x459),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
584 0x40A => array(0x45A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
585 0x40B => array(0x45B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
586 0x40C => array(0x45C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
587 0x40D => array(0x45D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
588 0x40E => array(0x45E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
589 0x40F => array(0x45F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
590 0x410 => array(0x430),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
591 0x411 => array(0x431),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
592 0x412 => array(0x432),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
593 0x413 => array(0x433),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
594 0x414 => array(0x434),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
595 0x415 => array(0x435),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
596 0x416 => array(0x436),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
597 0x417 => array(0x437),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
598 0x418 => array(0x438),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
599 0x419 => array(0x439),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
600 0x41A => array(0x43A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
601 0x41B => array(0x43B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
602 0x41C => array(0x43C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
603 0x41D => array(0x43D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
604 0x41E => array(0x43E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
605 0x41F => array(0x43F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
606 0x420 => array(0x440),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
607 0x421 => array(0x441),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
608 0x422 => array(0x442),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
609 0x423 => array(0x443),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
610 0x424 => array(0x444),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
611 0x425 => array(0x445),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
612 0x426 => array(0x446),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
613 0x427 => array(0x447),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
614 0x428 => array(0x448),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
615 0x429 => array(0x449),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
616 0x42A => array(0x44A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
617 0x42B => array(0x44B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
618 0x42C => array(0x44C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
619 0x42D => array(0x44D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
620 0x42E => array(0x44E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
621 0x42F => array(0x44F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
622 0x460 => array(0x461),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
623 0x462 => array(0x463),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
624 0x464 => array(0x465),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
625 0x466 => array(0x467),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
626 0x468 => array(0x469),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
627 0x46A => array(0x46B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
628 0x46C => array(0x46D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
629 0x46E => array(0x46F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
630 0x470 => array(0x471),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
631 0x472 => array(0x473),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
632 0x474 => array(0x475),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
633 0x476 => array(0x477),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
634 0x478 => array(0x479),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
635 0x47A => array(0x47B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
636 0x47C => array(0x47D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
637 0x47E => array(0x47F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
638 0x480 => array(0x481),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
639 0x48A => array(0x48B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
640 0x48C => array(0x48D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
641 0x48E => array(0x48F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
642 0x490 => array(0x491),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
643 0x492 => array(0x493),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
644 0x494 => array(0x495),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
645 0x496 => array(0x497),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
646 0x498 => array(0x499),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
647 0x49A => array(0x49B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
648 0x49C => array(0x49D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
649 0x49E => array(0x49F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
650 0x4A0 => array(0x4A1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
651 0x4A2 => array(0x4A3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
652 0x4A4 => array(0x4A5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
653 0x4A6 => array(0x4A7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
654 0x4A8 => array(0x4A9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
655 0x4AA => array(0x4AB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
656 0x4AC => array(0x4AD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
657 0x4AE => array(0x4AF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
658 0x4B0 => array(0x4B1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
659 0x4B2 => array(0x4B3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
660 0x4B4 => array(0x4B5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
661 0x4B6 => array(0x4B7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
662 0x4B8 => array(0x4B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
663 0x4BA => array(0x4BB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
664 0x4BC => array(0x4BD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
665 0x4BE => array(0x4BF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
666 0x4C1 => array(0x4C2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
667 0x4C3 => array(0x4C4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
668 0x4C5 => array(0x4C6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
669 0x4C7 => array(0x4C8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
670 0x4C9 => array(0x4CA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
671 0x4CB => array(0x4CC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
672 0x4CD => array(0x4CE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
673 0x4D0 => array(0x4D1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
674 0x4D2 => array(0x4D3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
675 0x4D4 => array(0x4D5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
676 0x4D6 => array(0x4D7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
677 0x4D8 => array(0x4D9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
678 0x4DA => array(0x4DB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
679 0x4DC => array(0x4DD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
680 0x4DE => array(0x4DF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
681 0x4E0 => array(0x4E1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
682 0x4E2 => array(0x4E3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
683 0x4E4 => array(0x4E5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
684 0x4E6 => array(0x4E7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
685 0x4E8 => array(0x4E9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
686 0x4EA => array(0x4EB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
687 0x4EC => array(0x4ED),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
688 0x4EE => array(0x4EF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
689 0x4F0 => array(0x4F1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
690 0x4F2 => array(0x4F3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
691 0x4F4 => array(0x4F5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
692 0x4F8 => array(0x4F9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
693 0x500 => array(0x501),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
694 0x502 => array(0x503),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
695 0x504 => array(0x505),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
696 0x506 => array(0x507),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
697 0x508 => array(0x509),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
698 0x50A => array(0x50B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
699 0x50C => array(0x50D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
700 0x50E => array(0x50F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
701 0x531 => array(0x561),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
702 0x532 => array(0x562),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
703 0x533 => array(0x563),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
704 0x534 => array(0x564),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
705 0x535 => array(0x565),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
706 0x536 => array(0x566),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
707 0x537 => array(0x567),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
708 0x538 => array(0x568),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
709 0x539 => array(0x569),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
710 0x53A => array(0x56A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
711 0x53B => array(0x56B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
712 0x53C => array(0x56C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
713 0x53D => array(0x56D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
714 0x53E => array(0x56E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
715 0x53F => array(0x56F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
716 0x540 => array(0x570),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
717 0x541 => array(0x571),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
718 0x542 => array(0x572),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
719 0x543 => array(0x573),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
720 0x544 => array(0x574),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
721 0x545 => array(0x575),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
722 0x546 => array(0x576),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
723 0x547 => array(0x577),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
724 0x548 => array(0x578),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
725 0x549 => array(0x579),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
726 0x54A => array(0x57A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
727 0x54B => array(0x57B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
728 0x54C => array(0x57C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
729 0x54D => array(0x57D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
730 0x54E => array(0x57E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
731 0x54F => array(0x57F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
732 0x550 => array(0x580),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
733 0x551 => array(0x581),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
734 0x552 => array(0x582),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
735 0x553 => array(0x583),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
736 0x554 => array(0x584),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
737 0x555 => array(0x585),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
738 0x556 => array(0x586),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
739 0x587 => array(0x565, 0x582),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
740 0x1E00 => array(0x1E01),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
741 0x1E02 => array(0x1E03),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
742 0x1E04 => array(0x1E05),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
743 0x1E06 => array(0x1E07),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
744 0x1E08 => array(0x1E09),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
745 0x1E0A => array(0x1E0B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
746 0x1E0C => array(0x1E0D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
747 0x1E0E => array(0x1E0F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
748 0x1E10 => array(0x1E11),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
749 0x1E12 => array(0x1E13),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
750 0x1E14 => array(0x1E15),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
751 0x1E16 => array(0x1E17),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
752 0x1E18 => array(0x1E19),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
753 0x1E1A => array(0x1E1B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
754 0x1E1C => array(0x1E1D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
755 0x1E1E => array(0x1E1F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
756 0x1E20 => array(0x1E21),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
757 0x1E22 => array(0x1E23),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
758 0x1E24 => array(0x1E25),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
759 0x1E26 => array(0x1E27),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
760 0x1E28 => array(0x1E29),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
761 0x1E2A => array(0x1E2B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
762 0x1E2C => array(0x1E2D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
763 0x1E2E => array(0x1E2F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
764 0x1E30 => array(0x1E31),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
765 0x1E32 => array(0x1E33),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
766 0x1E34 => array(0x1E35),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
767 0x1E36 => array(0x1E37),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
768 0x1E38 => array(0x1E39),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
769 0x1E3A => array(0x1E3B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
770 0x1E3C => array(0x1E3D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
771 0x1E3E => array(0x1E3F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
772 0x1E40 => array(0x1E41),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
773 0x1E42 => array(0x1E43),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
774 0x1E44 => array(0x1E45),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
775 0x1E46 => array(0x1E47),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
776 0x1E48 => array(0x1E49),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
777 0x1E4A => array(0x1E4B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
778 0x1E4C => array(0x1E4D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
779 0x1E4E => array(0x1E4F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
780 0x1E50 => array(0x1E51),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
781 0x1E52 => array(0x1E53),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
782 0x1E54 => array(0x1E55),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
783 0x1E56 => array(0x1E57),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
784 0x1E58 => array(0x1E59),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
785 0x1E5A => array(0x1E5B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
786 0x1E5C => array(0x1E5D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
787 0x1E5E => array(0x1E5F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
788 0x1E60 => array(0x1E61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
789 0x1E62 => array(0x1E63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
790 0x1E64 => array(0x1E65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
791 0x1E66 => array(0x1E67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
792 0x1E68 => array(0x1E69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
793 0x1E6A => array(0x1E6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
794 0x1E6C => array(0x1E6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
795 0x1E6E => array(0x1E6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
796 0x1E70 => array(0x1E71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
797 0x1E72 => array(0x1E73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
798 0x1E74 => array(0x1E75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
799 0x1E76 => array(0x1E77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
800 0x1E78 => array(0x1E79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
801 0x1E7A => array(0x1E7B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
802 0x1E7C => array(0x1E7D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
803 0x1E7E => array(0x1E7F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
804 0x1E80 => array(0x1E81),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
805 0x1E82 => array(0x1E83),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
806 0x1E84 => array(0x1E85),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
807 0x1E86 => array(0x1E87),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
808 0x1E88 => array(0x1E89),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
809 0x1E8A => array(0x1E8B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
810 0x1E8C => array(0x1E8D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
811 0x1E8E => array(0x1E8F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
812 0x1E90 => array(0x1E91),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
813 0x1E92 => array(0x1E93),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
814 0x1E94 => array(0x1E95),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
815 0x1E96 => array(0x68, 0x331),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
816 0x1E97 => array(0x74, 0x308),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
817 0x1E98 => array(0x77, 0x30A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
818 0x1E99 => array(0x79, 0x30A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
819 0x1E9A => array(0x61, 0x2BE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
820 0x1E9B => array(0x1E61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
821 0x1EA0 => array(0x1EA1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
822 0x1EA2 => array(0x1EA3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
823 0x1EA4 => array(0x1EA5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
824 0x1EA6 => array(0x1EA7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
825 0x1EA8 => array(0x1EA9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
826 0x1EAA => array(0x1EAB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
827 0x1EAC => array(0x1EAD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
828 0x1EAE => array(0x1EAF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
829 0x1EB0 => array(0x1EB1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
830 0x1EB2 => array(0x1EB3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
831 0x1EB4 => array(0x1EB5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
832 0x1EB6 => array(0x1EB7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
833 0x1EB8 => array(0x1EB9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
834 0x1EBA => array(0x1EBB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
835 0x1EBC => array(0x1EBD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
836 0x1EBE => array(0x1EBF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
837 0x1EC0 => array(0x1EC1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
838 0x1EC2 => array(0x1EC3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
839 0x1EC4 => array(0x1EC5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
840 0x1EC6 => array(0x1EC7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
841 0x1EC8 => array(0x1EC9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
842 0x1ECA => array(0x1ECB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
843 0x1ECC => array(0x1ECD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
844 0x1ECE => array(0x1ECF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
845 0x1ED0 => array(0x1ED1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
846 0x1ED2 => array(0x1ED3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
847 0x1ED4 => array(0x1ED5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
848 0x1ED6 => array(0x1ED7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
849 0x1ED8 => array(0x1ED9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
850 0x1EDA => array(0x1EDB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
851 0x1EDC => array(0x1EDD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
852 0x1EDE => array(0x1EDF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
853 0x1EE0 => array(0x1EE1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
854 0x1EE2 => array(0x1EE3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
855 0x1EE4 => array(0x1EE5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
856 0x1EE6 => array(0x1EE7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
857 0x1EE8 => array(0x1EE9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
858 0x1EEA => array(0x1EEB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
859 0x1EEC => array(0x1EED),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
860 0x1EEE => array(0x1EEF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
861 0x1EF0 => array(0x1EF1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
862 0x1EF2 => array(0x1EF3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
863 0x1EF4 => array(0x1EF5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
864 0x1EF6 => array(0x1EF7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
865 0x1EF8 => array(0x1EF9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
866 0x1F08 => array(0x1F00),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
867 0x1F09 => array(0x1F01),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
868 0x1F0A => array(0x1F02),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
869 0x1F0B => array(0x1F03),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
870 0x1F0C => array(0x1F04),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
871 0x1F0D => array(0x1F05),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
872 0x1F0E => array(0x1F06),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
873 0x1F0F => array(0x1F07),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
874 0x1F18 => array(0x1F10),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
875 0x1F19 => array(0x1F11),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
876 0x1F1A => array(0x1F12),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
877 0x1F1B => array(0x1F13),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
878 0x1F1C => array(0x1F14),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
879 0x1F1D => array(0x1F15),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
880 0x1F28 => array(0x1F20),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
881 0x1F29 => array(0x1F21),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
882 0x1F2A => array(0x1F22),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
883 0x1F2B => array(0x1F23),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
884 0x1F2C => array(0x1F24),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
885 0x1F2D => array(0x1F25),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
886 0x1F2E => array(0x1F26),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
887 0x1F2F => array(0x1F27),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
888 0x1F38 => array(0x1F30),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
889 0x1F39 => array(0x1F31),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
890 0x1F3A => array(0x1F32),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
891 0x1F3B => array(0x1F33),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
892 0x1F3C => array(0x1F34),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
893 0x1F3D => array(0x1F35),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
894 0x1F3E => array(0x1F36),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
895 0x1F3F => array(0x1F37),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
896 0x1F48 => array(0x1F40),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
897 0x1F49 => array(0x1F41),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
898 0x1F4A => array(0x1F42),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
899 0x1F4B => array(0x1F43),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
900 0x1F4C => array(0x1F44),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
901 0x1F4D => array(0x1F45),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
902 0x1F50 => array(0x3C5, 0x313),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
903 0x1F52 => array(0x3C5, 0x313, 0x300),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
904 0x1F54 => array(0x3C5, 0x313, 0x301),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
905 0x1F56 => array(0x3C5, 0x313, 0x342),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
906 0x1F59 => array(0x1F51),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
907 0x1F5B => array(0x1F53),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
908 0x1F5D => array(0x1F55),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
909 0x1F5F => array(0x1F57),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
910 0x1F68 => array(0x1F60),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
911 0x1F69 => array(0x1F61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
912 0x1F6A => array(0x1F62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
913 0x1F6B => array(0x1F63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
914 0x1F6C => array(0x1F64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
915 0x1F6D => array(0x1F65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
916 0x1F6E => array(0x1F66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
917 0x1F6F => array(0x1F67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
918 0x1F80 => array(0x1F00, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
919 0x1F81 => array(0x1F01, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
920 0x1F82 => array(0x1F02, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
921 0x1F83 => array(0x1F03, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
922 0x1F84 => array(0x1F04, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
923 0x1F85 => array(0x1F05, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
924 0x1F86 => array(0x1F06, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
925 0x1F87 => array(0x1F07, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
926 0x1F88 => array(0x1F00, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
927 0x1F89 => array(0x1F01, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
928 0x1F8A => array(0x1F02, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
929 0x1F8B => array(0x1F03, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
930 0x1F8C => array(0x1F04, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
931 0x1F8D => array(0x1F05, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
932 0x1F8E => array(0x1F06, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
933 0x1F8F => array(0x1F07, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
934 0x1F90 => array(0x1F20, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
935 0x1F91 => array(0x1F21, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
936 0x1F92 => array(0x1F22, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
937 0x1F93 => array(0x1F23, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
938 0x1F94 => array(0x1F24, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
939 0x1F95 => array(0x1F25, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
940 0x1F96 => array(0x1F26, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
941 0x1F97 => array(0x1F27, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
942 0x1F98 => array(0x1F20, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
943 0x1F99 => array(0x1F21, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
944 0x1F9A => array(0x1F22, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
945 0x1F9B => array(0x1F23, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
946 0x1F9C => array(0x1F24, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
947 0x1F9D => array(0x1F25, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
948 0x1F9E => array(0x1F26, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
949 0x1F9F => array(0x1F27, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
950 0x1FA0 => array(0x1F60, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
951 0x1FA1 => array(0x1F61, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
952 0x1FA2 => array(0x1F62, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
953 0x1FA3 => array(0x1F63, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
954 0x1FA4 => array(0x1F64, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
955 0x1FA5 => array(0x1F65, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
956 0x1FA6 => array(0x1F66, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
957 0x1FA7 => array(0x1F67, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
958 0x1FA8 => array(0x1F60, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
959 0x1FA9 => array(0x1F61, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
960 0x1FAA => array(0x1F62, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
961 0x1FAB => array(0x1F63, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
962 0x1FAC => array(0x1F64, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
963 0x1FAD => array(0x1F65, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
964 0x1FAE => array(0x1F66, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
965 0x1FAF => array(0x1F67, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
966 0x1FB2 => array(0x1F70, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
967 0x1FB3 => array(0x3B1, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
968 0x1FB4 => array(0x3AC, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
969 0x1FB6 => array(0x3B1, 0x342),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
970 0x1FB7 => array(0x3B1, 0x342, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
971 0x1FB8 => array(0x1FB0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
972 0x1FB9 => array(0x1FB1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
973 0x1FBA => array(0x1F70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
974 0x1FBB => array(0x1F71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
975 0x1FBC => array(0x3B1, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
976 0x1FBE => array(0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
977 0x1FC2 => array(0x1F74, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
978 0x1FC3 => array(0x3B7, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
979 0x1FC4 => array(0x3AE, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
980 0x1FC6 => array(0x3B7, 0x342),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
981 0x1FC7 => array(0x3B7, 0x342, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
982 0x1FC8 => array(0x1F72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
983 0x1FC9 => array(0x1F73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
984 0x1FCA => array(0x1F74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
985 0x1FCB => array(0x1F75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
986 0x1FCC => array(0x3B7, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
987 0x1FD2 => array(0x3B9, 0x308, 0x300),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
988 0x1FD3 => array(0x3B9, 0x308, 0x301),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
989 0x1FD6 => array(0x3B9, 0x342),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
990 0x1FD7 => array(0x3B9, 0x308, 0x342),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
991 0x1FD8 => array(0x1FD0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
992 0x1FD9 => array(0x1FD1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
993 0x1FDA => array(0x1F76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
994 0x1FDB => array(0x1F77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
995 0x1FE2 => array(0x3C5, 0x308, 0x300),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
996 0x1FE3 => array(0x3C5, 0x308, 0x301),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
997 0x1FE4 => array(0x3C1, 0x313),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
998 0x1FE6 => array(0x3C5, 0x342),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
999 0x1FE7 => array(0x3C5, 0x308, 0x342),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1000 0x1FE8 => array(0x1FE0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1001 0x1FE9 => array(0x1FE1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1002 0x1FEA => array(0x1F7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1003 0x1FEB => array(0x1F7B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1004 0x1FEC => array(0x1FE5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1005 0x1FF2 => array(0x1F7C, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1006 0x1FF3 => array(0x3C9, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1007 0x1FF4 => array(0x3CE, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1008 0x1FF6 => array(0x3C9, 0x342),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1009 0x1FF7 => array(0x3C9, 0x342, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1010 0x1FF8 => array(0x1F78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1011 0x1FF9 => array(0x1F79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1012 0x1FFA => array(0x1F7C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1013 0x1FFB => array(0x1F7D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1014 0x1FFC => array(0x3C9, 0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1015 0x20A8 => array(0x72, 0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1016 0x2102 => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1017 0x2103 => array(0xB0, 0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1018 0x2107 => array(0x25B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1019 0x2109 => array(0xB0, 0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1020 0x210B => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1021 0x210C => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1022 0x210D => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1023 0x2110 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1024 0x2111 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1025 0x2112 => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1026 0x2115 => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1027 0x2116 => array(0x6E, 0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1028 0x2119 => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1029 0x211A => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1030 0x211B => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1031 0x211C => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1032 0x211D => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1033 0x2120 => array(0x73, 0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1034 0x2121 => array(0x74, 0x65, 0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1035 0x2122 => array(0x74, 0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1036 0x2124 => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1037 0x2126 => array(0x3C9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1038 0x2128 => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1039 0x212A => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1040 0x212B => array(0xE5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1041 0x212C => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1042 0x212D => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1043 0x2130 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1044 0x2131 => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1045 0x2133 => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1046 0x213E => array(0x3B3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1047 0x213F => array(0x3C0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1048 0x2145 => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1049 0x2160 => array(0x2170),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1050 0x2161 => array(0x2171),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1051 0x2162 => array(0x2172),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1052 0x2163 => array(0x2173),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1053 0x2164 => array(0x2174),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1054 0x2165 => array(0x2175),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1055 0x2166 => array(0x2176),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1056 0x2167 => array(0x2177),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1057 0x2168 => array(0x2178),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1058 0x2169 => array(0x2179),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1059 0x216A => array(0x217A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1060 0x216B => array(0x217B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1061 0x216C => array(0x217C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1062 0x216D => array(0x217D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1063 0x216E => array(0x217E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1064 0x216F => array(0x217F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1065 0x24B6 => array(0x24D0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1066 0x24B7 => array(0x24D1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1067 0x24B8 => array(0x24D2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1068 0x24B9 => array(0x24D3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1069 0x24BA => array(0x24D4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1070 0x24BB => array(0x24D5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1071 0x24BC => array(0x24D6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1072 0x24BD => array(0x24D7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1073 0x24BE => array(0x24D8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1074 0x24BF => array(0x24D9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1075 0x24C0 => array(0x24DA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1076 0x24C1 => array(0x24DB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1077 0x24C2 => array(0x24DC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1078 0x24C3 => array(0x24DD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1079 0x24C4 => array(0x24DE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1080 0x24C5 => array(0x24DF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1081 0x24C6 => array(0x24E0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1082 0x24C7 => array(0x24E1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1083 0x24C8 => array(0x24E2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1084 0x24C9 => array(0x24E3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1085 0x24CA => array(0x24E4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1086 0x24CB => array(0x24E5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1087 0x24CC => array(0x24E6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1088 0x24CD => array(0x24E7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1089 0x24CE => array(0x24E8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1090 0x24CF => array(0x24E9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1091 0x3371 => array(0x68, 0x70, 0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1092 0x3373 => array(0x61, 0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1093 0x3375 => array(0x6F, 0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1094 0x3380 => array(0x70, 0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1095 0x3381 => array(0x6E, 0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1096 0x3382 => array(0x3BC, 0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1097 0x3383 => array(0x6D, 0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1098 0x3384 => array(0x6B, 0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1099 0x3385 => array(0x6B, 0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1100 0x3386 => array(0x6D, 0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1101 0x3387 => array(0x67, 0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1102 0x338A => array(0x70, 0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1103 0x338B => array(0x6E, 0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1104 0x338C => array(0x3BC, 0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1105 0x3390 => array(0x68, 0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1106 0x3391 => array(0x6B, 0x68, 0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1107 0x3392 => array(0x6D, 0x68, 0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1108 0x3393 => array(0x67, 0x68, 0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1109 0x3394 => array(0x74, 0x68, 0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1110 0x33A9 => array(0x70, 0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1111 0x33AA => array(0x6B, 0x70, 0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1112 0x33AB => array(0x6D, 0x70, 0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1113 0x33AC => array(0x67, 0x70, 0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1114 0x33B4 => array(0x70, 0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1115 0x33B5 => array(0x6E, 0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1116 0x33B6 => array(0x3BC, 0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1117 0x33B7 => array(0x6D, 0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1118 0x33B8 => array(0x6B, 0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1119 0x33B9 => array(0x6D, 0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1120 0x33BA => array(0x70, 0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1121 0x33BB => array(0x6E, 0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1122 0x33BC => array(0x3BC, 0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1123 0x33BD => array(0x6D, 0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1124 0x33BE => array(0x6B, 0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1125 0x33BF => array(0x6D, 0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1126 0x33C0 => array(0x6B, 0x3C9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1127 0x33C1 => array(0x6D, 0x3C9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1128 /* 0x33C2 => array(0x61, 0x2E, 0x6D, 0x2E), */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1129 0x33C3 => array(0x62, 0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1130 0x33C6 => array(0x63, 0x2215, 0x6B, 0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1131 0x33C7 => array(0x63, 0x6F, 0x2E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1132 0x33C8 => array(0x64, 0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1133 0x33C9 => array(0x67, 0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1134 0x33CB => array(0x68, 0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1135 0x33CD => array(0x6B, 0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1136 0x33CE => array(0x6B, 0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1137 0x33D7 => array(0x70, 0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1138 0x33D9 => array(0x70, 0x70, 0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1139 0x33DA => array(0x70, 0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1140 0x33DC => array(0x73, 0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1141 0x33DD => array(0x77, 0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1142 0xFB00 => array(0x66, 0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1143 0xFB01 => array(0x66, 0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1144 0xFB02 => array(0x66, 0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1145 0xFB03 => array(0x66, 0x66, 0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1146 0xFB04 => array(0x66, 0x66, 0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1147 0xFB05 => array(0x73, 0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1148 0xFB06 => array(0x73, 0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1149 0xFB13 => array(0x574, 0x576),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1150 0xFB14 => array(0x574, 0x565),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1151 0xFB15 => array(0x574, 0x56B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1152 0xFB16 => array(0x57E, 0x576),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1153 0xFB17 => array(0x574, 0x56D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1154 0xFF21 => array(0xFF41),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1155 0xFF22 => array(0xFF42),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1156 0xFF23 => array(0xFF43),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1157 0xFF24 => array(0xFF44),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1158 0xFF25 => array(0xFF45),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1159 0xFF26 => array(0xFF46),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1160 0xFF27 => array(0xFF47),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1161 0xFF28 => array(0xFF48),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1162 0xFF29 => array(0xFF49),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1163 0xFF2A => array(0xFF4A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1164 0xFF2B => array(0xFF4B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1165 0xFF2C => array(0xFF4C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1166 0xFF2D => array(0xFF4D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1167 0xFF2E => array(0xFF4E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1168 0xFF2F => array(0xFF4F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1169 0xFF30 => array(0xFF50),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1170 0xFF31 => array(0xFF51),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1171 0xFF32 => array(0xFF52),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1172 0xFF33 => array(0xFF53),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1173 0xFF34 => array(0xFF54),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1174 0xFF35 => array(0xFF55),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1175 0xFF36 => array(0xFF56),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1176 0xFF37 => array(0xFF57),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1177 0xFF38 => array(0xFF58),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1178 0xFF39 => array(0xFF59),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1179 0xFF3A => array(0xFF5A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1180 0x10400 => array(0x10428),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1181 0x10401 => array(0x10429),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1182 0x10402 => array(0x1042A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1183 0x10403 => array(0x1042B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1184 0x10404 => array(0x1042C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1185 0x10405 => array(0x1042D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1186 0x10406 => array(0x1042E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1187 0x10407 => array(0x1042F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1188 0x10408 => array(0x10430),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1189 0x10409 => array(0x10431),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1190 0x1040A => array(0x10432),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1191 0x1040B => array(0x10433),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1192 0x1040C => array(0x10434),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1193 0x1040D => array(0x10435),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1194 0x1040E => array(0x10436),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1195 0x1040F => array(0x10437),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1196 0x10410 => array(0x10438),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1197 0x10411 => array(0x10439),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1198 0x10412 => array(0x1043A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1199 0x10413 => array(0x1043B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1200 0x10414 => array(0x1043C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1201 0x10415 => array(0x1043D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1202 0x10416 => array(0x1043E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1203 0x10417 => array(0x1043F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1204 0x10418 => array(0x10440),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1205 0x10419 => array(0x10441),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1206 0x1041A => array(0x10442),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1207 0x1041B => array(0x10443),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1208 0x1041C => array(0x10444),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1209 0x1041D => array(0x10445),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1210 0x1041E => array(0x10446),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1211 0x1041F => array(0x10447),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1212 0x10420 => array(0x10448),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1213 0x10421 => array(0x10449),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1214 0x10422 => array(0x1044A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1215 0x10423 => array(0x1044B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1216 0x10424 => array(0x1044C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1217 0x10425 => array(0x1044D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1218 0x1D400 => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1219 0x1D401 => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1220 0x1D402 => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1221 0x1D403 => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1222 0x1D404 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1223 0x1D405 => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1224 0x1D406 => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1225 0x1D407 => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1226 0x1D408 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1227 0x1D409 => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1228 0x1D40A => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1229 0x1D40B => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1230 0x1D40C => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1231 0x1D40D => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1232 0x1D40E => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1233 0x1D40F => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1234 0x1D410 => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1235 0x1D411 => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1236 0x1D412 => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1237 0x1D413 => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1238 0x1D414 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1239 0x1D415 => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1240 0x1D416 => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1241 0x1D417 => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1242 0x1D418 => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1243 0x1D419 => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1244 0x1D434 => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1245 0x1D435 => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1246 0x1D436 => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1247 0x1D437 => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1248 0x1D438 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1249 0x1D439 => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1250 0x1D43A => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1251 0x1D43B => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1252 0x1D43C => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1253 0x1D43D => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1254 0x1D43E => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1255 0x1D43F => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1256 0x1D440 => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1257 0x1D441 => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1258 0x1D442 => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1259 0x1D443 => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1260 0x1D444 => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1261 0x1D445 => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1262 0x1D446 => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1263 0x1D447 => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1264 0x1D448 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1265 0x1D449 => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1266 0x1D44A => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1267 0x1D44B => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1268 0x1D44C => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1269 0x1D44D => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1270 0x1D468 => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1271 0x1D469 => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1272 0x1D46A => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1273 0x1D46B => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1274 0x1D46C => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1275 0x1D46D => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1276 0x1D46E => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1277 0x1D46F => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1278 0x1D470 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1279 0x1D471 => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1280 0x1D472 => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1281 0x1D473 => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1282 0x1D474 => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1283 0x1D475 => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1284 0x1D476 => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1285 0x1D477 => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1286 0x1D478 => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1287 0x1D479 => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1288 0x1D47A => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1289 0x1D47B => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1290 0x1D47C => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1291 0x1D47D => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1292 0x1D47E => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1293 0x1D47F => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1294 0x1D480 => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1295 0x1D481 => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1296 0x1D49C => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1297 0x1D49E => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1298 0x1D49F => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1299 0x1D4A2 => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1300 0x1D4A5 => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1301 0x1D4A6 => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1302 0x1D4A9 => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1303 0x1D4AA => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1304 0x1D4AB => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1305 0x1D4AC => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1306 0x1D4AE => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1307 0x1D4AF => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1308 0x1D4B0 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1309 0x1D4B1 => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1310 0x1D4B2 => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1311 0x1D4B3 => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1312 0x1D4B4 => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1313 0x1D4B5 => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1314 0x1D4D0 => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1315 0x1D4D1 => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1316 0x1D4D2 => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1317 0x1D4D3 => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1318 0x1D4D4 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1319 0x1D4D5 => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1320 0x1D4D6 => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1321 0x1D4D7 => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1322 0x1D4D8 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1323 0x1D4D9 => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1324 0x1D4DA => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1325 0x1D4DB => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1326 0x1D4DC => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1327 0x1D4DD => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1328 0x1D4DE => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1329 0x1D4DF => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1330 0x1D4E0 => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1331 0x1D4E1 => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1332 0x1D4E2 => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1333 0x1D4E3 => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1334 0x1D4E4 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1335 0x1D4E5 => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1336 0x1D4E6 => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1337 0x1D4E7 => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1338 0x1D4E8 => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1339 0x1D4E9 => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1340 0x1D504 => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1341 0x1D505 => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1342 0x1D507 => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1343 0x1D508 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1344 0x1D509 => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1345 0x1D50A => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1346 0x1D50D => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1347 0x1D50E => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1348 0x1D50F => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1349 0x1D510 => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1350 0x1D511 => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1351 0x1D512 => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1352 0x1D513 => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1353 0x1D514 => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1354 0x1D516 => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1355 0x1D517 => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1356 0x1D518 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1357 0x1D519 => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1358 0x1D51A => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1359 0x1D51B => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1360 0x1D51C => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1361 0x1D538 => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1362 0x1D539 => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1363 0x1D53B => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1364 0x1D53C => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1365 0x1D53D => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1366 0x1D53E => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1367 0x1D540 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1368 0x1D541 => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1369 0x1D542 => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1370 0x1D543 => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1371 0x1D544 => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1372 0x1D546 => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1373 0x1D54A => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1374 0x1D54B => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1375 0x1D54C => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1376 0x1D54D => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1377 0x1D54E => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1378 0x1D54F => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1379 0x1D550 => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1380 0x1D56C => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1381 0x1D56D => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1382 0x1D56E => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1383 0x1D56F => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1384 0x1D570 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1385 0x1D571 => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1386 0x1D572 => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1387 0x1D573 => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1388 0x1D574 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1389 0x1D575 => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1390 0x1D576 => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1391 0x1D577 => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1392 0x1D578 => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1393 0x1D579 => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1394 0x1D57A => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1395 0x1D57B => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1396 0x1D57C => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1397 0x1D57D => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1398 0x1D57E => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1399 0x1D57F => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1400 0x1D580 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1401 0x1D581 => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1402 0x1D582 => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1403 0x1D583 => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1404 0x1D584 => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1405 0x1D585 => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1406 0x1D5A0 => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1407 0x1D5A1 => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1408 0x1D5A2 => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1409 0x1D5A3 => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1410 0x1D5A4 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1411 0x1D5A5 => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1412 0x1D5A6 => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1413 0x1D5A7 => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1414 0x1D5A8 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1415 0x1D5A9 => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1416 0x1D5AA => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1417 0x1D5AB => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1418 0x1D5AC => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1419 0x1D5AD => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1420 0x1D5AE => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1421 0x1D5AF => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1422 0x1D5B0 => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1423 0x1D5B1 => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1424 0x1D5B2 => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1425 0x1D5B3 => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1426 0x1D5B4 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1427 0x1D5B5 => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1428 0x1D5B6 => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1429 0x1D5B7 => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1430 0x1D5B8 => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1431 0x1D5B9 => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1432 0x1D5D4 => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1433 0x1D5D5 => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1434 0x1D5D6 => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1435 0x1D5D7 => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1436 0x1D5D8 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1437 0x1D5D9 => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1438 0x1D5DA => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1439 0x1D5DB => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1440 0x1D5DC => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1441 0x1D5DD => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1442 0x1D5DE => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1443 0x1D5DF => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1444 0x1D5E0 => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1445 0x1D5E1 => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1446 0x1D5E2 => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1447 0x1D5E3 => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1448 0x1D5E4 => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1449 0x1D5E5 => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1450 0x1D5E6 => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1451 0x1D5E7 => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1452 0x1D5E8 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1453 0x1D5E9 => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1454 0x1D5EA => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1455 0x1D5EB => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1456 0x1D5EC => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1457 0x1D5ED => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1458 0x1D608 => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1459 0x1D609 => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1460 0x1D60A => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1461 0x1D60B => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1462 0x1D60C => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1463 0x1D60D => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1464 0x1D60E => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1465 0x1D60F => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1466 0x1D610 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1467 0x1D611 => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1468 0x1D612 => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1469 0x1D613 => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1470 0x1D614 => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1471 0x1D615 => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1472 0x1D616 => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1473 0x1D617 => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1474 0x1D618 => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1475 0x1D619 => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1476 0x1D61A => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1477 0x1D61B => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1478 0x1D61C => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1479 0x1D61D => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1480 0x1D61E => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1481 0x1D61F => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1482 0x1D620 => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1483 0x1D621 => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1484 0x1D63C => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1485 0x1D63D => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1486 0x1D63E => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1487 0x1D63F => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1488 0x1D640 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1489 0x1D641 => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1490 0x1D642 => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1491 0x1D643 => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1492 0x1D644 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1493 0x1D645 => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1494 0x1D646 => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1495 0x1D647 => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1496 0x1D648 => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1497 0x1D649 => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1498 0x1D64A => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1499 0x1D64B => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1500 0x1D64C => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1501 0x1D64D => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1502 0x1D64E => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1503 0x1D64F => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1504 0x1D650 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1505 0x1D651 => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1506 0x1D652 => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1507 0x1D653 => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1508 0x1D654 => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1509 0x1D655 => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1510 0x1D670 => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1511 0x1D671 => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1512 0x1D672 => array(0x63),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1513 0x1D673 => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1514 0x1D674 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1515 0x1D675 => array(0x66),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1516 0x1D676 => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1517 0x1D677 => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1518 0x1D678 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1519 0x1D679 => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1520 0x1D67A => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1521 0x1D67B => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1522 0x1D67C => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1523 0x1D67D => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1524 0x1D67E => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1525 0x1D67F => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1526 0x1D680 => array(0x71),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1527 0x1D681 => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1528 0x1D682 => array(0x73),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1529 0x1D683 => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1530 0x1D684 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1531 0x1D685 => array(0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1532 0x1D686 => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1533 0x1D687 => array(0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1534 0x1D688 => array(0x79),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1535 0x1D689 => array(0x7A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1536 0x1D6A8 => array(0x3B1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1537 0x1D6A9 => array(0x3B2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1538 0x1D6AA => array(0x3B3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1539 0x1D6AB => array(0x3B4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1540 0x1D6AC => array(0x3B5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1541 0x1D6AD => array(0x3B6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1542 0x1D6AE => array(0x3B7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1543 0x1D6AF => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1544 0x1D6B0 => array(0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1545 0x1D6B1 => array(0x3BA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1546 0x1D6B2 => array(0x3BB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1547 0x1D6B3 => array(0x3BC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1548 0x1D6B4 => array(0x3BD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1549 0x1D6B5 => array(0x3BE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1550 0x1D6B6 => array(0x3BF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1551 0x1D6B7 => array(0x3C0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1552 0x1D6B8 => array(0x3C1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1553 0x1D6B9 => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1554 0x1D6BA => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1555 0x1D6BB => array(0x3C4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1556 0x1D6BC => array(0x3C5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1557 0x1D6BD => array(0x3C6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1558 0x1D6BE => array(0x3C7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1559 0x1D6BF => array(0x3C8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1560 0x1D6C0 => array(0x3C9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1561 0x1D6D3 => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1562 0x1D6E2 => array(0x3B1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1563 0x1D6E3 => array(0x3B2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1564 0x1D6E4 => array(0x3B3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1565 0x1D6E5 => array(0x3B4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1566 0x1D6E6 => array(0x3B5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1567 0x1D6E7 => array(0x3B6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1568 0x1D6E8 => array(0x3B7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1569 0x1D6E9 => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1570 0x1D6EA => array(0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1571 0x1D6EB => array(0x3BA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1572 0x1D6EC => array(0x3BB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1573 0x1D6ED => array(0x3BC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1574 0x1D6EE => array(0x3BD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1575 0x1D6EF => array(0x3BE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1576 0x1D6F0 => array(0x3BF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1577 0x1D6F1 => array(0x3C0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1578 0x1D6F2 => array(0x3C1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1579 0x1D6F3 => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1580 0x1D6F4 => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1581 0x1D6F5 => array(0x3C4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1582 0x1D6F6 => array(0x3C5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1583 0x1D6F7 => array(0x3C6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1584 0x1D6F8 => array(0x3C7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1585 0x1D6F9 => array(0x3C8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1586 0x1D6FA => array(0x3C9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1587 0x1D70D => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1588 0x1D71C => array(0x3B1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1589 0x1D71D => array(0x3B2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1590 0x1D71E => array(0x3B3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1591 0x1D71F => array(0x3B4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1592 0x1D720 => array(0x3B5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1593 0x1D721 => array(0x3B6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1594 0x1D722 => array(0x3B7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1595 0x1D723 => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1596 0x1D724 => array(0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1597 0x1D725 => array(0x3BA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1598 0x1D726 => array(0x3BB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1599 0x1D727 => array(0x3BC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1600 0x1D728 => array(0x3BD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1601 0x1D729 => array(0x3BE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1602 0x1D72A => array(0x3BF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1603 0x1D72B => array(0x3C0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1604 0x1D72C => array(0x3C1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1605 0x1D72D => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1606 0x1D72E => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1607 0x1D72F => array(0x3C4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1608 0x1D730 => array(0x3C5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1609 0x1D731 => array(0x3C6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1610 0x1D732 => array(0x3C7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1611 0x1D733 => array(0x3C8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1612 0x1D734 => array(0x3C9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1613 0x1D747 => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1614 0x1D756 => array(0x3B1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1615 0x1D757 => array(0x3B2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1616 0x1D758 => array(0x3B3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1617 0x1D759 => array(0x3B4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1618 0x1D75A => array(0x3B5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1619 0x1D75B => array(0x3B6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1620 0x1D75C => array(0x3B7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1621 0x1D75D => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1622 0x1D75E => array(0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1623 0x1D75F => array(0x3BA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1624 0x1D760 => array(0x3BB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1625 0x1D761 => array(0x3BC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1626 0x1D762 => array(0x3BD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1627 0x1D763 => array(0x3BE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1628 0x1D764 => array(0x3BF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1629 0x1D765 => array(0x3C0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1630 0x1D766 => array(0x3C1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1631 0x1D767 => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1632 0x1D768 => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1633 0x1D769 => array(0x3C4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1634 0x1D76A => array(0x3C5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1635 0x1D76B => array(0x3C6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1636 0x1D76C => array(0x3C7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1637 0x1D76D => array(0x3C8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1638 0x1D76E => array(0x3C9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1639 0x1D781 => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1640 0x1D790 => array(0x3B1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1641 0x1D791 => array(0x3B2),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1642 0x1D792 => array(0x3B3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1643 0x1D793 => array(0x3B4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1644 0x1D794 => array(0x3B5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1645 0x1D795 => array(0x3B6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1646 0x1D796 => array(0x3B7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1647 0x1D797 => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1648 0x1D798 => array(0x3B9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1649 0x1D799 => array(0x3BA),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1650 0x1D79A => array(0x3BB),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1651 0x1D79B => array(0x3BC),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1652 0x1D79C => array(0x3BD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1653 0x1D79D => array(0x3BE),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1654 0x1D79E => array(0x3BF),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1655 0x1D79F => array(0x3C0),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1656 0x1D7A0 => array(0x3C1),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1657 0x1D7A1 => array(0x3B8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1658 0x1D7A2 => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1659 0x1D7A3 => array(0x3C4),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1660 0x1D7A4 => array(0x3C5),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1661 0x1D7A5 => array(0x3C6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1662 0x1D7A6 => array(0x3C7),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1663 0x1D7A7 => array(0x3C8),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1664 0x1D7A8 => array(0x3C9),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1665 0x1D7BB => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1666 0x3F9 => array(0x3C3),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1667 0x1D2C => array(0x61),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1668 0x1D2D => array(0xE6),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1669 0x1D2E => array(0x62),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1670 0x1D30 => array(0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1671 0x1D31 => array(0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1672 0x1D32 => array(0x1DD),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1673 0x1D33 => array(0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1674 0x1D34 => array(0x68),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1675 0x1D35 => array(0x69),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1676 0x1D36 => array(0x6A),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1677 0x1D37 => array(0x6B),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1678 0x1D38 => array(0x6C),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1679 0x1D39 => array(0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1680 0x1D3A => array(0x6E),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1681 0x1D3C => array(0x6F),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1682 0x1D3D => array(0x223),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1683 0x1D3E => array(0x70),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1684 0x1D3F => array(0x72),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1685 0x1D40 => array(0x74),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1686 0x1D41 => array(0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1687 0x1D42 => array(0x77),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1688 0x213B => array(0x66, 0x61, 0x78),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1689 0x3250 => array(0x70, 0x74, 0x65),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1690 0x32CC => array(0x68, 0x67),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1691 0x32CE => array(0x65, 0x76),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1692 0x32CF => array(0x6C, 0x74, 0x64),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1693 0x337A => array(0x69, 0x75),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1694 0x33DE => array(0x76, 0x2215, 0x6D),
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1695 0x33DF => array(0x61, 0x2215, 0x6D)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1696 );
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1697
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1698 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1699 * Normalization Combining Classes; Code Points not listed
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1700 * got Combining Class 0.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1701 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1702 * @static
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1703 * @var array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1704 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1705 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1706 private static $_np_norm_combcls = array(
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1707 0x334 => 1,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1708 0x335 => 1,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1709 0x336 => 1,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1710 0x337 => 1,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1711 0x338 => 1,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1712 0x93C => 7,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1713 0x9BC => 7,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1714 0xA3C => 7,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1715 0xABC => 7,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1716 0xB3C => 7,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1717 0xCBC => 7,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1718 0x1037 => 7,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1719 0x3099 => 8,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1720 0x309A => 8,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1721 0x94D => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1722 0x9CD => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1723 0xA4D => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1724 0xACD => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1725 0xB4D => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1726 0xBCD => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1727 0xC4D => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1728 0xCCD => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1729 0xD4D => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1730 0xDCA => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1731 0xE3A => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1732 0xF84 => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1733 0x1039 => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1734 0x1714 => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1735 0x1734 => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1736 0x17D2 => 9,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1737 0x5B0 => 10,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1738 0x5B1 => 11,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1739 0x5B2 => 12,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1740 0x5B3 => 13,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1741 0x5B4 => 14,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1742 0x5B5 => 15,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1743 0x5B6 => 16,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1744 0x5B7 => 17,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1745 0x5B8 => 18,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1746 0x5B9 => 19,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1747 0x5BB => 20,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1748 0x5Bc => 21,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1749 0x5BD => 22,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1750 0x5BF => 23,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1751 0x5C1 => 24,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1752 0x5C2 => 25,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1753 0xFB1E => 26,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1754 0x64B => 27,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1755 0x64C => 28,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1756 0x64D => 29,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1757 0x64E => 30,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1758 0x64F => 31,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1759 0x650 => 32,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1760 0x651 => 33,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1761 0x652 => 34,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1762 0x670 => 35,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1763 0x711 => 36,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1764 0xC55 => 84,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1765 0xC56 => 91,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1766 0xE38 => 103,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1767 0xE39 => 103,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1768 0xE48 => 107,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1769 0xE49 => 107,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1770 0xE4A => 107,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1771 0xE4B => 107,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1772 0xEB8 => 118,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1773 0xEB9 => 118,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1774 0xEC8 => 122,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1775 0xEC9 => 122,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1776 0xECA => 122,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1777 0xECB => 122,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1778 0xF71 => 129,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1779 0xF72 => 130,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1780 0xF7A => 130,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1781 0xF7B => 130,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1782 0xF7C => 130,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1783 0xF7D => 130,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1784 0xF80 => 130,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1785 0xF74 => 132,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1786 0x321 => 202,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1787 0x322 => 202,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1788 0x327 => 202,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1789 0x328 => 202,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1790 0x31B => 216,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1791 0xF39 => 216,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1792 0x1D165 => 216,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1793 0x1D166 => 216,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1794 0x1D16E => 216,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1795 0x1D16F => 216,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1796 0x1D170 => 216,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1797 0x1D171 => 216,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1798 0x1D172 => 216,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1799 0x302A => 218,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1800 0x316 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1801 0x317 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1802 0x318 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1803 0x319 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1804 0x31C => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1805 0x31D => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1806 0x31E => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1807 0x31F => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1808 0x320 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1809 0x323 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1810 0x324 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1811 0x325 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1812 0x326 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1813 0x329 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1814 0x32A => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1815 0x32B => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1816 0x32C => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1817 0x32D => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1818 0x32E => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1819 0x32F => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1820 0x330 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1821 0x331 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1822 0x332 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1823 0x333 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1824 0x339 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1825 0x33A => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1826 0x33B => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1827 0x33C => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1828 0x347 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1829 0x348 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1830 0x349 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1831 0x34D => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1832 0x34E => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1833 0x353 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1834 0x354 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1835 0x355 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1836 0x356 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1837 0x591 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1838 0x596 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1839 0x59B => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1840 0x5A3 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1841 0x5A4 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1842 0x5A5 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1843 0x5A6 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1844 0x5A7 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1845 0x5AA => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1846 0x655 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1847 0x656 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1848 0x6E3 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1849 0x6EA => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1850 0x6ED => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1851 0x731 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1852 0x734 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1853 0x737 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1854 0x738 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1855 0x739 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1856 0x73B => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1857 0x73C => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1858 0x73E => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1859 0x742 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1860 0x744 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1861 0x746 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1862 0x748 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1863 0x952 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1864 0xF18 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1865 0xF19 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1866 0xF35 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1867 0xF37 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1868 0xFC6 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1869 0x193B => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1870 0x20E8 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1871 0x1D17B => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1872 0x1D17C => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1873 0x1D17D => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1874 0x1D17E => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1875 0x1D17F => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1876 0x1D180 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1877 0x1D181 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1878 0x1D182 => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1879 0x1D18A => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1880 0x1D18B => 220,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1881 0x59A => 222,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1882 0x5AD => 222,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1883 0x1929 => 222,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1884 0x302D => 222,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1885 0x302E => 224,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1886 0x302F => 224,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1887 0x1D16D => 226,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1888 0x5AE => 228,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1889 0x18A9 => 228,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1890 0x302B => 228,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1891 0x300 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1892 0x301 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1893 0x302 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1894 0x303 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1895 0x304 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1896 0x305 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1897 0x306 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1898 0x307 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1899 0x308 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1900 0x309 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1901 0x30A => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1902 0x30B => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1903 0x30C => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1904 0x30D => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1905 0x30E => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1906 0x30F => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1907 0x310 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1908 0x311 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1909 0x312 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1910 0x313 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1911 0x314 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1912 0x33D => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1913 0x33E => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1914 0x33F => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1915 0x340 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1916 0x341 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1917 0x342 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1918 0x343 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1919 0x344 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1920 0x346 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1921 0x34A => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1922 0x34B => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1923 0x34C => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1924 0x350 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1925 0x351 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1926 0x352 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1927 0x357 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1928 0x363 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1929 0x364 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1930 0x365 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1931 0x366 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1932 0x367 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1933 0x368 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1934 0x369 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1935 0x36A => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1936 0x36B => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1937 0x36C => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1938 0x36D => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1939 0x36E => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1940 0x36F => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1941 0x483 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1942 0x484 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1943 0x485 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1944 0x486 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1945 0x592 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1946 0x593 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1947 0x594 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1948 0x595 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1949 0x597 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1950 0x598 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1951 0x599 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1952 0x59C => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1953 0x59D => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1954 0x59E => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1955 0x59F => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1956 0x5A0 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1957 0x5A1 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1958 0x5A8 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1959 0x5A9 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1960 0x5AB => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1961 0x5AC => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1962 0x5AF => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1963 0x5C4 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1964 0x610 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1965 0x611 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1966 0x612 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1967 0x613 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1968 0x614 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1969 0x615 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1970 0x653 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1971 0x654 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1972 0x657 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1973 0x658 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1974 0x6D6 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1975 0x6D7 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1976 0x6D8 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1977 0x6D9 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1978 0x6DA => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1979 0x6DB => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1980 0x6DC => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1981 0x6DF => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1982 0x6E0 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1983 0x6E1 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1984 0x6E2 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1985 0x6E4 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1986 0x6E7 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1987 0x6E8 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1988 0x6EB => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1989 0x6EC => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1990 0x730 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1991 0x732 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1992 0x733 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1993 0x735 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1994 0x736 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1995 0x73A => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1996 0x73D => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1997 0x73F => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1998 0x740 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
1999 0x741 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2000 0x743 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2001 0x745 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2002 0x747 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2003 0x749 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2004 0x74A => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2005 0x951 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2006 0x953 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2007 0x954 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2008 0xF82 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2009 0xF83 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2010 0xF86 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2011 0xF87 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2012 0x170D => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2013 0x193A => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2014 0x20D0 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2015 0x20D1 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2016 0x20D4 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2017 0x20D5 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2018 0x20D6 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2019 0x20D7 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2020 0x20DB => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2021 0x20DC => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2022 0x20E1 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2023 0x20E7 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2024 0x20E9 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2025 0xFE20 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2026 0xFE21 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2027 0xFE22 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2028 0xFE23 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2029 0x1D185 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2030 0x1D186 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2031 0x1D187 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2032 0x1D189 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2033 0x1D188 => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2034 0x1D1AA => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2035 0x1D1AB => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2036 0x1D1AC => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2037 0x1D1AD => 230,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2038 0x315 => 232,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2039 0x31A => 232,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2040 0x302C => 232,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2041 0x35F => 233,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2042 0x362 => 233,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2043 0x35D => 234,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2044 0x35E => 234,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2045 0x360 => 234,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2046 0x361 => 234,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2047 0x345 => 240
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2048 );
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2049 // }}}
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2050
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2051 // {{{ properties
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2052 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2053 * @var string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2054 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2055 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2056 private $_punycode_prefix = 'xn--';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2057
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2058 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2059 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2060 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2061 private $_invalid_ucs = 0x80000000;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2062
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2063 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2064 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2065 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2066 private $_max_ucs = 0x10FFFF;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2067
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2068 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2069 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2070 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2071 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2072 private $_base = 36;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2073
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2074 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2075 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2076 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2077 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2078 private $_tmin = 1;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2079
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2080 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2081 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2082 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2083 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2084 private $_tmax = 26;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2085
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2086 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2087 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2088 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2089 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2090 private $_skew = 38;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2091
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2092 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2093 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2094 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2095 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2096 private $_damp = 700;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2097
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2098 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2099 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2100 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2101 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2102 private $_initial_bias = 72;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2103
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2104 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2105 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2106 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2107 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2108 private $_initial_n = 0x80;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2109
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2110 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2111 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2112 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2113 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2114 private $_slast;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2115
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2116 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2117 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2118 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2119 private $_sbase = 0xAC00;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2120
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2121 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2122 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2123 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2124 private $_lbase = 0x1100;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2125
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2126 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2127 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2128 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2129 private $_vbase = 0x1161;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2130
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2131 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2132 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2133 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2134 private $_tbase = 0x11a7;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2135
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2136 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2137 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2138 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2139 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2140 private $_lcount = 19;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2141
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2142 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2143 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2144 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2145 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2146 private $_vcount = 21;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2147
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2148 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2149 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2150 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2151 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2152 private $_tcount = 28;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2153
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2154 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2155 * vcount * tcount
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2156 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2157 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2158 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2159 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2160 private $_ncount = 588;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2161
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2162 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2163 * lcount * tcount * vcount
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2164 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2165 * @var int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2166 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2167 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2168 private $_scount = 11172;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2169
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2170 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2171 * Default encoding for encode()'s input and decode()'s output is UTF-8;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2172 * Other possible encodings are ucs4_string and ucs4_array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2173 * See {@link setParams()} for how to select these
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2174 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2175 * @var bool
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2176 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2177 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2178 private $_api_encoding = 'utf8';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2179
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2180 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2181 * Overlong UTF-8 encodings are forbidden
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2182 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2183 * @var bool
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2184 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2185 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2186 private $_allow_overlong = false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2187
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2188 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2189 * Behave strict or not
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2190 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2191 * @var bool
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2192 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2193 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2194 private $_strict_mode = false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2195
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2196 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2197 * IDNA-version to use
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2198 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2199 * Values are "2003" and "2008".
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2200 * Defaults to "2003", since that was the original version and for
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2201 * compatibility with previous versions of this library.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2202 * If you need to encode "new" characters like the German "Eszett",
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2203 * please switch to 2008 first before encoding.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2204 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2205 * @var bool
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2206 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2207 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2208 private $_version = '2003';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2209
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2210 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2211 * Cached value indicating whether or not mbstring function overloading is
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2212 * on for strlen
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2213 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2214 * This is cached for optimal performance.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2215 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2216 * @var boolean
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2217 * @see Net_IDNA2::_byteLength()
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2218 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2219 private static $_mb_string_overload = null;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2220 // }}}
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2221
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2222
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2223 // {{{ constructor
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2224 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2225 * Constructor
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2226 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2227 * @param array $options Options to initialise the object with
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2228 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2229 * @access public
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2230 * @see setParams()
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2231 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2232 public function __construct($options = null)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2233 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2234 $this->_slast = $this->_sbase + $this->_lcount * $this->_vcount * $this->_tcount;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2235
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2236 if (is_array($options)) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2237 $this->setParams($options);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2238 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2239
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2240 // populate mbstring overloading cache if not set
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2241 if (self::$_mb_string_overload === null) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2242 self::$_mb_string_overload = (extension_loaded('mbstring')
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2243 && (ini_get('mbstring.func_overload') & 0x02) === 0x02);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2244 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2245 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2246 // }}}
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2247
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2248
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2249 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2250 * Sets a new option value. Available options and values:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2251 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2252 * [utf8 - Use either UTF-8 or ISO-8859-1 as input (true for UTF-8, false
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2253 * otherwise); The output is always UTF-8]
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2254 * [overlong - Unicode does not allow unnecessarily long encodings of chars,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2255 * to allow this, set this parameter to true, else to false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2256 * default is false.]
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2257 * [strict - true: strict mode, good for registration purposes - Causes errors
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2258 * on failures; false: loose mode, ideal for "wildlife" applications
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2259 * by silently ignoring errors and returning the original input instead]
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2260 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2261 * @param mixed $option Parameter to set (string: single parameter; array of Parameter => Value pairs)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2262 * @param string $value Value to use (if parameter 1 is a string)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2263 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2264 * @return boolean true on success, false otherwise
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2265 * @access public
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2266 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2267 public function setParams($option, $value = false)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2268 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2269 if (!is_array($option)) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2270 $option = array($option => $value);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2271 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2272
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2273 foreach ($option as $k => $v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2274 switch ($k) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2275 case 'encoding':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2276 switch ($v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2277 case 'utf8':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2278 case 'ucs4_string':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2279 case 'ucs4_array':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2280 $this->_api_encoding = $v;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2281 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2282
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2283 default:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2284 throw new InvalidArgumentException('Set Parameter: Unknown parameter '.$v.' for option '.$k);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2285 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2286
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2287 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2288
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2289 case 'overlong':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2290 $this->_allow_overlong = ($v) ? true : false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2291 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2292
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2293 case 'strict':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2294 $this->_strict_mode = ($v) ? true : false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2295 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2296
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2297 case 'version':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2298 if (in_array($v, array('2003', '2008'))) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2299 $this->_version = $v;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2300 } else {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2301 throw new InvalidArgumentException('Set Parameter: Invalid parameter '.$v.' for option '.$k);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2302 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2303 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2304
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2305 default:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2306 return false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2307 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2308 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2309
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2310 return true;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2311 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2312
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2313 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2314 * Encode a given UTF-8 domain name.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2315 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2316 * @param string $decoded Domain name (UTF-8 or UCS-4)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2317 * @param string $one_time_encoding Desired input encoding, see {@link set_parameter}
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2318 * If not given will use default-encoding
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2319 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2320 * @return string Encoded Domain name (ACE string)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2321 * @return mixed processed string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2322 * @throws Exception
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2323 * @access public
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2324 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2325 public function encode($decoded, $one_time_encoding = false)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2326 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2327 // Forcing conversion of input to UCS4 array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2328 // If one time encoding is given, use this, else the objects property
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2329 switch (($one_time_encoding) ? $one_time_encoding : $this->_api_encoding) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2330 case 'utf8':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2331 $decoded = $this->_utf8_to_ucs4($decoded);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2332 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2333 case 'ucs4_string':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2334 $decoded = $this->_ucs4_string_to_ucs4($decoded);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2335 case 'ucs4_array': // No break; before this line. Catch case, but do nothing
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2336 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2337 default:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2338 throw new InvalidArgumentException('Unsupported input format');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2339 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2340
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2341 // No input, no output, what else did you expect?
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2342 if (empty($decoded)) return '';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2343
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2344 // Anchors for iteration
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2345 $last_begin = 0;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2346 // Output string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2347 $output = '';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2348
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2349 foreach ($decoded as $k => $v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2350 // Make sure to use just the plain dot
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2351 switch($v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2352 case 0x3002:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2353 case 0xFF0E:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2354 case 0xFF61:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2355 $decoded[$k] = 0x2E;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2356 // It's right, no break here
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2357 // The codepoints above have to be converted to dots anyway
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2358
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2359 // Stumbling across an anchoring character
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2360 case 0x2E:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2361 case 0x2F:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2362 case 0x3A:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2363 case 0x3F:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2364 case 0x40:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2365 // Neither email addresses nor URLs allowed in strict mode
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2366 if ($this->_strict_mode) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2367 throw new InvalidArgumentException('Neither email addresses nor URLs are allowed in strict mode.');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2368 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2369 // Skip first char
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2370 if ($k) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2371 $encoded = '';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2372 $encoded = $this->_encode(array_slice($decoded, $last_begin, (($k)-$last_begin)));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2373 if ($encoded) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2374 $output .= $encoded;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2375 } else {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2376 $output .= $this->_ucs4_to_utf8(array_slice($decoded, $last_begin, (($k)-$last_begin)));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2377 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2378 $output .= chr($decoded[$k]);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2379 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2380 $last_begin = $k + 1;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2381 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2382 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2383 // Catch the rest of the string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2384 if ($last_begin) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2385 $inp_len = sizeof($decoded);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2386 $encoded = '';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2387 $encoded = $this->_encode(array_slice($decoded, $last_begin, (($inp_len)-$last_begin)));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2388 if ($encoded) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2389 $output .= $encoded;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2390 } else {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2391 $output .= $this->_ucs4_to_utf8(array_slice($decoded, $last_begin, (($inp_len)-$last_begin)));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2392 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2393 return $output;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2394 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2395
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2396 if ($output = $this->_encode($decoded)) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2397 return $output;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2398 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2399
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2400 return $this->_ucs4_to_utf8($decoded);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2401 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2402
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2403 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2404 * Decode a given ACE domain name.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2405 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2406 * @param string $input Domain name (ACE string)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2407 * @param string $one_time_encoding Desired output encoding, see {@link set_parameter}
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2408 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2409 * @return string Decoded Domain name (UTF-8 or UCS-4)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2410 * @throws Exception
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2411 * @access public
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2412 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2413 public function decode($input, $one_time_encoding = false)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2414 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2415 // Optionally set
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2416 if ($one_time_encoding) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2417 switch ($one_time_encoding) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2418 case 'utf8':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2419 case 'ucs4_string':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2420 case 'ucs4_array':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2421 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2422 default:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2423 throw new InvalidArgumentException('Unknown encoding '.$one_time_encoding);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2424 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2425 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2426 // Make sure to drop any newline characters around
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2427 $input = trim($input);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2428
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2429 // Negotiate input and try to determine, whether it is a plain string,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2430 // an email address or something like a complete URL
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2431 if (strpos($input, '@')) { // Maybe it is an email address
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2432 // No no in strict mode
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2433 if ($this->_strict_mode) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2434 throw new InvalidArgumentException('Only simple domain name parts can be handled in strict mode');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2435 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2436 list($email_pref, $input) = explode('@', $input, 2);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2437 $arr = explode('.', $input);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2438 foreach ($arr as $k => $v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2439 $conv = $this->_decode($v);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2440 if ($conv) $arr[$k] = $conv;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2441 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2442 $return = $email_pref . '@' . join('.', $arr);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2443 } elseif (preg_match('![:\./]!', $input)) { // Or a complete domain name (with or without paths / parameters)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2444 // No no in strict mode
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2445 if ($this->_strict_mode) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2446 throw new InvalidArgumentException('Only simple domain name parts can be handled in strict mode');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2447 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2448
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2449 $parsed = parse_url($input);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2450 if (isset($parsed['host'])) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2451 $arr = explode('.', $parsed['host']);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2452 foreach ($arr as $k => $v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2453 $conv = $this->_decode($v);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2454 if ($conv) $arr[$k] = $conv;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2455 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2456 $parsed['host'] = join('.', $arr);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2457 if (isset($parsed['scheme'])) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2458 $parsed['scheme'] .= (strtolower($parsed['scheme']) == 'mailto') ? ':' : '://';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2459 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2460 $return = $this->_unparse_url($parsed);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2461 } else { // parse_url seems to have failed, try without it
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2462 $arr = explode('.', $input);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2463 foreach ($arr as $k => $v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2464 $conv = $this->_decode($v);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2465 if ($conv) $arr[$k] = $conv;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2466 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2467 $return = join('.', $arr);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2468 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2469 } else { // Otherwise we consider it being a pure domain name string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2470 $return = $this->_decode($input);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2471 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2472 // The output is UTF-8 by default, other output formats need conversion here
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2473 // If one time encoding is given, use this, else the objects property
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2474 switch (($one_time_encoding) ? $one_time_encoding : $this->_api_encoding) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2475 case 'utf8':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2476 return $return;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2477 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2478 case 'ucs4_string':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2479 return $this->_ucs4_to_ucs4_string($this->_utf8_to_ucs4($return));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2480 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2481 case 'ucs4_array':
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2482 return $this->_utf8_to_ucs4($return);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2483 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2484 default:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2485 throw new InvalidArgumentException('Unsupported output format');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2486 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2487 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2488
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2489
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2490 // {{{ private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2491 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2492 * Opposite function to parse_url()
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2493 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2494 * Inspired by code from comments of php.net-documentation for parse_url()
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2495 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2496 * @param array $parts_arr parts (strings) as returned by parse_url()
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2497 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2498 * @return string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2499 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2500 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2501 private function _unparse_url($parts_arr)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2502 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2503 if (!empty($parts_arr['scheme'])) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2504 $ret_url = $parts_arr['scheme'];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2505 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2506 if (!empty($parts_arr['user'])) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2507 $ret_url .= $parts_arr['user'];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2508 if (!empty($parts_arr['pass'])) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2509 $ret_url .= ':' . $parts_arr['pass'];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2510 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2511 $ret_url .= '@';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2512 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2513 $ret_url .= $parts_arr['host'];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2514 if (!empty($parts_arr['port'])) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2515 $ret_url .= ':' . $parts_arr['port'];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2516 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2517 $ret_url .= $parts_arr['path'];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2518 if (!empty($parts_arr['query'])) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2519 $ret_url .= '?' . $parts_arr['query'];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2520 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2521 if (!empty($parts_arr['fragment'])) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2522 $ret_url .= '#' . $parts_arr['fragment'];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2523 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2524 return $ret_url;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2525 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2526
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2527 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2528 * The actual encoding algorithm.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2529 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2530 * @param string $decoded Decoded string which should be encoded
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2531 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2532 * @return string Encoded string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2533 * @throws Exception
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2534 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2535 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2536 private function _encode($decoded)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2537 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2538 // We cannot encode a domain name containing the Punycode prefix
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2539 $extract = self::_byteLength($this->_punycode_prefix);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2540 $check_pref = $this->_utf8_to_ucs4($this->_punycode_prefix);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2541 $check_deco = array_slice($decoded, 0, $extract);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2542
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2543 if ($check_pref == $check_deco) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2544 throw new InvalidArgumentException('This is already a punycode string');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2545 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2546
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2547 // We will not try to encode strings consisting of basic code points only
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2548 $encodable = false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2549 foreach ($decoded as $k => $v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2550 if ($v > 0x7a) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2551 $encodable = true;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2552 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2553 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2554 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2555 if (!$encodable) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2556 if ($this->_strict_mode) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2557 throw new InvalidArgumentException('The given string does not contain encodable chars');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2558 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2559
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2560 return false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2561 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2562
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2563 // Do NAMEPREP
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2564 $decoded = $this->_nameprep($decoded);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2565
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2566 $deco_len = count($decoded);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2567
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2568 // Empty array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2569 if (!$deco_len) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2570 return false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2571 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2572
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2573 // How many chars have been consumed
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2574 $codecount = 0;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2575
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2576 // Start with the prefix; copy it to output
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2577 $encoded = $this->_punycode_prefix;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2578
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2579 $encoded = '';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2580 // Copy all basic code points to output
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2581 for ($i = 0; $i < $deco_len; ++$i) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2582 $test = $decoded[$i];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2583 // Will match [0-9a-zA-Z-]
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2584 if ((0x2F < $test && $test < 0x40)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2585 || (0x40 < $test && $test < 0x5B)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2586 || (0x60 < $test && $test <= 0x7B)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2587 || (0x2D == $test)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2588 ) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2589 $encoded .= chr($decoded[$i]);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2590 $codecount++;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2591 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2592 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2593
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2594 // All codepoints were basic ones
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2595 if ($codecount == $deco_len) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2596 return $encoded;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2597 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2598
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2599 // Start with the prefix; copy it to output
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2600 $encoded = $this->_punycode_prefix . $encoded;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2601
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2602 // If we have basic code points in output, add an hyphen to the end
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2603 if ($codecount) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2604 $encoded .= '-';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2605 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2606
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2607 // Now find and encode all non-basic code points
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2608 $is_first = true;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2609 $cur_code = $this->_initial_n;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2610 $bias = $this->_initial_bias;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2611 $delta = 0;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2612
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2613 while ($codecount < $deco_len) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2614 // Find the smallest code point >= the current code point and
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2615 // remember the last ouccrence of it in the input
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2616 for ($i = 0, $next_code = $this->_max_ucs; $i < $deco_len; $i++) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2617 if ($decoded[$i] >= $cur_code && $decoded[$i] <= $next_code) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2618 $next_code = $decoded[$i];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2619 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2620 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2621
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2622 $delta += ($next_code - $cur_code) * ($codecount + 1);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2623 $cur_code = $next_code;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2624
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2625 // Scan input again and encode all characters whose code point is $cur_code
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2626 for ($i = 0; $i < $deco_len; $i++) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2627 if ($decoded[$i] < $cur_code) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2628 $delta++;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2629 } else if ($decoded[$i] == $cur_code) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2630 for ($q = $delta, $k = $this->_base; 1; $k += $this->_base) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2631 $t = ($k <= $bias)?
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2632 $this->_tmin :
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2633 (($k >= $bias + $this->_tmax)? $this->_tmax : $k - $bias);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2634
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2635 if ($q < $t) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2636 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2637 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2638
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2639 $encoded .= $this->_encodeDigit(ceil($t + (($q - $t) % ($this->_base - $t))));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2640 $q = ($q - $t) / ($this->_base - $t);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2641 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2642
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2643 $encoded .= $this->_encodeDigit($q);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2644 $bias = $this->_adapt($delta, $codecount + 1, $is_first);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2645 $codecount++;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2646 $delta = 0;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2647 $is_first = false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2648 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2649 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2650
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2651 $delta++;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2652 $cur_code++;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2653 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2654
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2655 return $encoded;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2656 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2657
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2658 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2659 * The actual decoding algorithm.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2660 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2661 * @param string $encoded Encoded string which should be decoded
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2662 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2663 * @return string Decoded string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2664 * @throws Exception
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2665 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2666 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2667 private function _decode($encoded)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2668 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2669 // We do need to find the Punycode prefix
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2670 if (!preg_match('!^' . preg_quote($this->_punycode_prefix, '!') . '!', $encoded)) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2671 return false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2672 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2673
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2674 $encode_test = preg_replace('!^' . preg_quote($this->_punycode_prefix, '!') . '!', '', $encoded);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2675
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2676 // If nothing left after removing the prefix, it is hopeless
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2677 if (!$encode_test) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2678 return false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2679 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2680
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2681 // Find last occurrence of the delimiter
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2682 $delim_pos = strrpos($encoded, '-');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2683
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2684 if ($delim_pos > self::_byteLength($this->_punycode_prefix)) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2685 for ($k = self::_byteLength($this->_punycode_prefix); $k < $delim_pos; ++$k) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2686 $decoded[] = ord($encoded{$k});
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2687 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2688 } else {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2689 $decoded = array();
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2690 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2691
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2692 $deco_len = count($decoded);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2693 $enco_len = self::_byteLength($encoded);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2694
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2695 // Wandering through the strings; init
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2696 $is_first = true;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2697 $bias = $this->_initial_bias;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2698 $idx = 0;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2699 $char = $this->_initial_n;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2700
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2701 for ($enco_idx = ($delim_pos)? ($delim_pos + 1) : 0; $enco_idx < $enco_len; ++$deco_len) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2702 for ($old_idx = $idx, $w = 1, $k = $this->_base; 1 ; $k += $this->_base) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2703 $digit = $this->_decodeDigit($encoded{$enco_idx++});
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2704 $idx += $digit * $w;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2705
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2706 $t = ($k <= $bias) ?
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2707 $this->_tmin :
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2708 (($k >= $bias + $this->_tmax)? $this->_tmax : ($k - $bias));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2709
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2710 if ($digit < $t) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2711 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2712 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2713
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2714 $w = (int)($w * ($this->_base - $t));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2715 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2716
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2717 $bias = $this->_adapt($idx - $old_idx, $deco_len + 1, $is_first);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2718 $is_first = false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2719 $char += (int) ($idx / ($deco_len + 1));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2720 $idx %= ($deco_len + 1);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2721
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2722 if ($deco_len > 0) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2723 // Make room for the decoded char
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2724 for ($i = $deco_len; $i > $idx; $i--) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2725 $decoded[$i] = $decoded[($i - 1)];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2726 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2727 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2728
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2729 $decoded[$idx++] = $char;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2730 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2731
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2732 return $this->_ucs4_to_utf8($decoded);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2733 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2734
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2735 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2736 * Adapt the bias according to the current code point and position.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2737 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2738 * @param int $delta ...
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2739 * @param int $npoints ...
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2740 * @param boolean $is_first ...
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2741 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2742 * @return int
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2743 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2744 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2745 private function _adapt($delta, $npoints, $is_first)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2746 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2747 $delta = (int) ($is_first ? ($delta / $this->_damp) : ($delta / 2));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2748 $delta += (int) ($delta / $npoints);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2749
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2750 for ($k = 0; $delta > (($this->_base - $this->_tmin) * $this->_tmax) / 2; $k += $this->_base) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2751 $delta = (int) ($delta / ($this->_base - $this->_tmin));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2752 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2753
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2754 return (int) ($k + ($this->_base - $this->_tmin + 1) * $delta / ($delta + $this->_skew));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2755 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2756
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2757 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2758 * Encoding a certain digit.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2759 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2760 * @param int $d One digit to encode
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2761 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2762 * @return char Encoded digit
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2763 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2764 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2765 private function _encodeDigit($d)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2766 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2767 return chr($d + 22 + 75 * ($d < 26));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2768 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2769
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2770 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2771 * Decode a certain digit.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2772 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2773 * @param char $cp One digit (character) to decode
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2774 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2775 * @return int Decoded digit
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2776 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2777 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2778 private function _decodeDigit($cp)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2779 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2780 $cp = ord($cp);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2781 return ($cp - 48 < 10)? $cp - 22 : (($cp - 65 < 26)? $cp - 65 : (($cp - 97 < 26)? $cp - 97 : $this->_base));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2782 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2783
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2784 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2785 * Do Nameprep according to RFC3491 and RFC3454.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2786 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2787 * @param array $input Unicode Characters
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2788 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2789 * @return string Unicode Characters, Nameprep'd
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2790 * @throws Exception
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2791 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2792 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2793 private function _nameprep($input)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2794 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2795 $output = array();
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2796
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2797 // Walking through the input array, performing the required steps on each of
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2798 // the input chars and putting the result into the output array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2799 // While mapping required chars we apply the canonical ordering
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2800
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2801 foreach ($input as $v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2802 // Map to nothing == skip that code point
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2803 if (in_array($v, self::$_np_map_nothing)) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2804 continue;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2805 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2806
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2807 // Try to find prohibited input
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2808 if (in_array($v, self::$_np_prohibit) || in_array($v, self::$_general_prohibited)) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2809 throw new Net_IDNA2_Exception_Nameprep('Prohibited input U+' . sprintf('%08X', $v));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2810 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2811
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2812 foreach (self::$_np_prohibit_ranges as $range) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2813 if ($range[0] <= $v && $v <= $range[1]) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2814 throw new Net_IDNA2_Exception_Nameprep('Prohibited input U+' . sprintf('%08X', $v));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2815 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2816 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2817
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2818 // Hangul syllable decomposition
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2819 if (0xAC00 <= $v && $v <= 0xD7AF) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2820 foreach ($this->_hangulDecompose($v) as $out) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2821 $output[] = $out;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2822 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2823 } else if (($this->_version == '2003') && isset(self::$_np_replacemaps[$v])) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2824 // There's a decomposition mapping for that code point
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2825 // Decompositions only in version 2003 (original) of IDNA
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2826 foreach ($this->_applyCannonicalOrdering(self::$_np_replacemaps[$v]) as $out) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2827 $output[] = $out;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2828 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2829 } else {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2830 $output[] = $v;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2831 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2832 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2833
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2834 // Combine code points
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2835
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2836 $last_class = 0;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2837 $last_starter = 0;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2838 $out_len = count($output);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2839
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2840 for ($i = 0; $i < $out_len; ++$i) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2841 $class = $this->_getCombiningClass($output[$i]);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2842
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2843 if ((!$last_class || $last_class != $class) && $class) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2844 // Try to match
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2845 $seq_len = $i - $last_starter;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2846 $out = $this->_combine(array_slice($output, $last_starter, $seq_len));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2847
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2848 // On match: Replace the last starter with the composed character and remove
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2849 // the now redundant non-starter(s)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2850 if ($out) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2851 $output[$last_starter] = $out;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2852
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2853 if (count($out) != $seq_len) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2854 for ($j = $i + 1; $j < $out_len; ++$j) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2855 $output[$j - 1] = $output[$j];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2856 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2857
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2858 unset($output[$out_len]);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2859 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2860
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2861 // Rewind the for loop by one, since there can be more possible compositions
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2862 $i--;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2863 $out_len--;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2864 $last_class = ($i == $last_starter)? 0 : $this->_getCombiningClass($output[$i - 1]);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2865
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2866 continue;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2867 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2868 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2869
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2870 // The current class is 0
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2871 if (!$class) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2872 $last_starter = $i;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2873 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2874
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2875 $last_class = $class;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2876 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2877
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2878 return $output;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2879 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2880
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2881 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2882 * Decomposes a Hangul syllable
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2883 * (see http://www.unicode.org/unicode/reports/tr15/#Hangul).
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2884 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2885 * @param integer $char 32bit UCS4 code point
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2886 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2887 * @return array Either Hangul Syllable decomposed or original 32bit
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2888 * value as one value array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2889 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2890 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2891 private function _hangulDecompose($char)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2892 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2893 $sindex = $char - $this->_sbase;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2894
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2895 if ($sindex < 0 || $sindex >= $this->_scount) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2896 return array($char);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2897 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2898
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2899 $result = array();
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2900 $T = $this->_tbase + $sindex % $this->_tcount;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2901 $result[] = (int)($this->_lbase + $sindex / $this->_ncount);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2902 $result[] = (int)($this->_vbase + ($sindex % $this->_ncount) / $this->_tcount);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2903
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2904 if ($T != $this->_tbase) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2905 $result[] = $T;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2906 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2907
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2908 return $result;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2909 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2910
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2911 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2912 * Ccomposes a Hangul syllable
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2913 * (see http://www.unicode.org/unicode/reports/tr15/#Hangul).
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2914 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2915 * @param array $input Decomposed UCS4 sequence
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2916 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2917 * @return array UCS4 sequence with syllables composed
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2918 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2919 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2920 private function _hangulCompose($input)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2921 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2922 $inp_len = count($input);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2923
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2924 if (!$inp_len) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2925 return array();
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2926 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2927
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2928 $result = array();
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2929 $last = $input[0];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2930 $result[] = $last; // copy first char from input to output
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2931
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2932 for ($i = 1; $i < $inp_len; ++$i) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2933 $char = $input[$i];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2934
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2935 // Find out, wether two current characters from L and V
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2936 $lindex = $last - $this->_lbase;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2937
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2938 if (0 <= $lindex && $lindex < $this->_lcount) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2939 $vindex = $char - $this->_vbase;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2940
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2941 if (0 <= $vindex && $vindex < $this->_vcount) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2942 // create syllable of form LV
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2943 $last = ($this->_sbase + ($lindex * $this->_vcount + $vindex) * $this->_tcount);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2944 $out_off = count($result) - 1;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2945 $result[$out_off] = $last; // reset last
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2946
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2947 // discard char
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2948 continue;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2949 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2950 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2951
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2952 // Find out, wether two current characters are LV and T
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2953 $sindex = $last - $this->_sbase;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2954
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2955 if (0 <= $sindex && $sindex < $this->_scount && ($sindex % $this->_tcount) == 0) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2956 $tindex = $char - $this->_tbase;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2957
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2958 if (0 <= $tindex && $tindex <= $this->_tcount) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2959 // create syllable of form LVT
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2960 $last += $tindex;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2961 $out_off = count($result) - 1;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2962 $result[$out_off] = $last; // reset last
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2963
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2964 // discard char
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2965 continue;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2966 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2967 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2968
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2969 // if neither case was true, just add the character
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2970 $last = $char;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2971 $result[] = $char;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2972 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2973
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2974 return $result;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2975 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2976
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2977 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2978 * Returns the combining class of a certain wide char.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2979 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2980 * @param integer $char Wide char to check (32bit integer)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2981 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2982 * @return integer Combining class if found, else 0
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2983 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2984 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2985 private function _getCombiningClass($char)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2986 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2987 return isset(self::$_np_norm_combcls[$char])? self::$_np_norm_combcls[$char] : 0;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2988 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2989
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2990 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2991 * Apllies the canonical ordering of a decomposed UCS4 sequence.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2992 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2993 * @param array $input Decomposed UCS4 sequence
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2994 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2995 * @return array Ordered USC4 sequence
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2996 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2997 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2998 private function _applyCannonicalOrdering($input)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
2999 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3000 $swap = true;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3001 $size = count($input);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3002
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3003 while ($swap) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3004 $swap = false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3005 $last = $this->_getCombiningClass($input[0]);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3006
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3007 for ($i = 0; $i < $size - 1; ++$i) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3008 $next = $this->_getCombiningClass($input[$i + 1]);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3009
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3010 if ($next != 0 && $last > $next) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3011 // Move item leftward until it fits
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3012 for ($j = $i + 1; $j > 0; --$j) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3013 if ($this->_getCombiningClass($input[$j - 1]) <= $next) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3014 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3015 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3016
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3017 $t = $input[$j];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3018 $input[$j] = $input[$j - 1];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3019 $input[$j - 1] = $t;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3020 $swap = 1;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3021 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3022
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3023 // Reentering the loop looking at the old character again
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3024 $next = $last;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3025 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3026
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3027 $last = $next;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3028 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3029 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3030
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3031 return $input;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3032 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3033
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3034 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3035 * Do composition of a sequence of starter and non-starter.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3036 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3037 * @param array $input UCS4 Decomposed sequence
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3038 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3039 * @return array Ordered USC4 sequence
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3040 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3041 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3042 private function _combine($input)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3043 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3044 $inp_len = count($input);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3045
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3046 // Is it a Hangul syllable?
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3047 if (1 != $inp_len) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3048 $hangul = $this->_hangulCompose($input);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3049
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3050 // This place is probably wrong
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3051 if (count($hangul) != $inp_len) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3052 return $hangul;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3053 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3054 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3055
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3056 foreach (self::$_np_replacemaps as $np_src => $np_target) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3057 if ($np_target[0] != $input[0]) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3058 continue;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3059 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3060
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3061 if (count($np_target) != $inp_len) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3062 continue;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3063 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3064
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3065 $hit = false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3066
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3067 foreach ($input as $k2 => $v2) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3068 if ($v2 == $np_target[$k2]) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3069 $hit = true;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3070 } else {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3071 $hit = false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3072 break;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3073 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3074 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3075
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3076 if ($hit) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3077 return $np_src;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3078 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3079 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3080
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3081 return false;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3082 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3083
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3084 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3085 * This converts an UTF-8 encoded string to its UCS-4 (array) representation
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3086 * By talking about UCS-4 we mean arrays of 32bit integers representing
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3087 * each of the "chars". This is due to PHP not being able to handle strings with
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3088 * bit depth different from 8. This applies to the reverse method _ucs4_to_utf8(), too.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3089 * The following UTF-8 encodings are supported:
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3090 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3091 * bytes bits representation
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3092 * 1 7 0xxxxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3093 * 2 11 110xxxxx 10xxxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3094 * 3 16 1110xxxx 10xxxxxx 10xxxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3095 * 4 21 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3096 * 5 26 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3097 * 6 31 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3098 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3099 * Each x represents a bit that can be used to store character data.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3100 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3101 * @param string $input utf8-encoded string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3102 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3103 * @return array ucs4-encoded array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3104 * @throws Exception
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3105 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3106 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3107 private function _utf8_to_ucs4($input)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3108 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3109 $output = array();
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3110 $out_len = 0;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3111 $inp_len = self::_byteLength($input, '8bit');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3112 $mode = 'next';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3113 $test = 'none';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3114 for ($k = 0; $k < $inp_len; ++$k) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3115 $v = ord($input{$k}); // Extract byte from input string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3116
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3117 if ($v < 128) { // We found an ASCII char - put into string as is
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3118 $output[$out_len] = $v;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3119 ++$out_len;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3120 if ('add' == $mode) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3121 throw new UnexpectedValueException('Conversion from UTF-8 to UCS-4 failed: malformed input at byte '.$k);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3122 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3123 continue;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3124 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3125 if ('next' == $mode) { // Try to find the next start byte; determine the width of the Unicode char
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3126 $start_byte = $v;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3127 $mode = 'add';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3128 $test = 'range';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3129 if ($v >> 5 == 6) { // &110xxxxx 10xxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3130 $next_byte = 0; // Tells, how many times subsequent bitmasks must rotate 6bits to the left
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3131 $v = ($v - 192) << 6;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3132 } elseif ($v >> 4 == 14) { // &1110xxxx 10xxxxxx 10xxxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3133 $next_byte = 1;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3134 $v = ($v - 224) << 12;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3135 } elseif ($v >> 3 == 30) { // &11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3136 $next_byte = 2;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3137 $v = ($v - 240) << 18;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3138 } elseif ($v >> 2 == 62) { // &111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3139 $next_byte = 3;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3140 $v = ($v - 248) << 24;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3141 } elseif ($v >> 1 == 126) { // &1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3142 $next_byte = 4;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3143 $v = ($v - 252) << 30;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3144 } else {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3145 throw new UnexpectedValueException('This might be UTF-8, but I don\'t understand it at byte '.$k);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3146 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3147 if ('add' == $mode) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3148 $output[$out_len] = (int) $v;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3149 ++$out_len;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3150 continue;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3151 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3152 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3153 if ('add' == $mode) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3154 if (!$this->_allow_overlong && $test == 'range') {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3155 $test = 'none';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3156 if (($v < 0xA0 && $start_byte == 0xE0) || ($v < 0x90 && $start_byte == 0xF0) || ($v > 0x8F && $start_byte == 0xF4)) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3157 throw new OutOfRangeException('Bogus UTF-8 character detected (out of legal range) at byte '.$k);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3158 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3159 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3160 if ($v >> 6 == 2) { // Bit mask must be 10xxxxxx
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3161 $v = ($v - 128) << ($next_byte * 6);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3162 $output[($out_len - 1)] += $v;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3163 --$next_byte;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3164 } else {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3165 throw new UnexpectedValueException('Conversion from UTF-8 to UCS-4 failed: malformed input at byte '.$k);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3166 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3167 if ($next_byte < 0) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3168 $mode = 'next';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3169 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3170 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3171 } // for
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3172 return $output;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3173 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3174
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3175 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3176 * Convert UCS-4 array into UTF-8 string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3177 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3178 * @param array $input ucs4-encoded array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3179 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3180 * @return string utf8-encoded string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3181 * @throws Exception
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3182 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3183 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3184 private function _ucs4_to_utf8($input)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3185 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3186 $output = '';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3187
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3188 foreach ($input as $v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3189 // $v = ord($v);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3190
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3191 if ($v < 128) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3192 // 7bit are transferred literally
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3193 $output .= chr($v);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3194 } else if ($v < 1 << 11) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3195 // 2 bytes
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3196 $output .= chr(192 + ($v >> 6))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3197 . chr(128 + ($v & 63));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3198 } else if ($v < 1 << 16) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3199 // 3 bytes
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3200 $output .= chr(224 + ($v >> 12))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3201 . chr(128 + (($v >> 6) & 63))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3202 . chr(128 + ($v & 63));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3203 } else if ($v < 1 << 21) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3204 // 4 bytes
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3205 $output .= chr(240 + ($v >> 18))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3206 . chr(128 + (($v >> 12) & 63))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3207 . chr(128 + (($v >> 6) & 63))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3208 . chr(128 + ($v & 63));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3209 } else if ($v < 1 << 26) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3210 // 5 bytes
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3211 $output .= chr(248 + ($v >> 24))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3212 . chr(128 + (($v >> 18) & 63))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3213 . chr(128 + (($v >> 12) & 63))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3214 . chr(128 + (($v >> 6) & 63))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3215 . chr(128 + ($v & 63));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3216 } else if ($v < 1 << 31) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3217 // 6 bytes
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3218 $output .= chr(252 + ($v >> 30))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3219 . chr(128 + (($v >> 24) & 63))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3220 . chr(128 + (($v >> 18) & 63))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3221 . chr(128 + (($v >> 12) & 63))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3222 . chr(128 + (($v >> 6) & 63))
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3223 . chr(128 + ($v & 63));
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3224 } else {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3225 throw new UnexpectedValueException('Conversion from UCS-4 to UTF-8 failed: malformed input');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3226 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3227 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3228
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3229 return $output;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3230 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3231
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3232 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3233 * Convert UCS-4 array into UCS-4 string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3234 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3235 * @param array $input ucs4-encoded array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3236 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3237 * @return string ucs4-encoded string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3238 * @throws Exception
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3239 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3240 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3241 private function _ucs4_to_ucs4_string($input)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3242 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3243 $output = '';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3244 // Take array values and split output to 4 bytes per value
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3245 // The bit mask is 255, which reads &11111111
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3246 foreach ($input as $v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3247 $output .= ($v & (255 << 24) >> 24) . ($v & (255 << 16) >> 16) . ($v & (255 << 8) >> 8) . ($v & 255);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3248 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3249 return $output;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3250 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3251
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3252 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3253 * Convert UCS-4 string into UCS-4 array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3254 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3255 * @param string $input ucs4-encoded string
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3256 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3257 * @return array ucs4-encoded array
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3258 * @throws InvalidArgumentException
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3259 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3260 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3261 private function _ucs4_string_to_ucs4($input)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3262 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3263 $output = array();
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3264
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3265 $inp_len = self::_byteLength($input);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3266 // Input length must be dividable by 4
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3267 if ($inp_len % 4) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3268 throw new InvalidArgumentException('Input UCS4 string is broken');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3269 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3270
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3271 // Empty input - return empty output
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3272 if (!$inp_len) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3273 return $output;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3274 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3275
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3276 for ($i = 0, $out_len = -1; $i < $inp_len; ++$i) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3277 // Increment output position every 4 input bytes
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3278 if (!$i % 4) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3279 $out_len++;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3280 $output[$out_len] = 0;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3281 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3282 $output[$out_len] += ord($input{$i}) << (8 * (3 - ($i % 4) ) );
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3283 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3284 return $output;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3285 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3286
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3287 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3288 * Echo hex representation of UCS4 sequence.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3289 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3290 * @param array $input UCS4 sequence
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3291 * @param boolean $include_bit Include bitmask in output
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3292 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3293 * @return void
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3294 * @static
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3295 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3296 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3297 private static function _showHex($input, $include_bit = false)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3298 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3299 foreach ($input as $k => $v) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3300 echo '[', $k, '] => ', sprintf('%X', $v);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3301
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3302 if ($include_bit) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3303 echo ' (', Net_IDNA2::_showBitmask($v), ')';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3304 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3305
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3306 echo "\n";
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3307 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3308 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3309
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3310 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3311 * Gives you a bit representation of given Byte (8 bits), Word (16 bits) or DWord (32 bits)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3312 * Output width is automagically determined
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3313 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3314 * @param int $octet ...
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3315 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3316 * @return string Bitmask-representation
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3317 * @static
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3318 * @access private
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3319 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3320 private static function _showBitmask($octet)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3321 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3322 if ($octet >= (1 << 16)) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3323 $w = 31;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3324 } else if ($octet >= (1 << 8)) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3325 $w = 15;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3326 } else {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3327 $w = 7;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3328 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3329
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3330 $return = '';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3331
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3332 for ($i = $w; $i > -1; $i--) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3333 $return .= ($octet & (1 << $i))? '1' : '0';
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3334 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3335
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3336 return $return;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3337 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3338
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3339 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3340 * Gets the length of a string in bytes even if mbstring function
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3341 * overloading is turned on
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3342 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3343 * @param string $string the string for which to get the length.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3344 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3345 * @return integer the length of the string in bytes.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3346 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3347 * @see Net_IDNA2::$_mb_string_overload
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3348 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3349 private static function _byteLength($string)
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3350 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3351 if (self::$_mb_string_overload) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3352 return mb_strlen($string, '8bit');
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3353 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3354 return strlen((binary)$string);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3355 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3356
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3357 // }}}}
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3358
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3359 // {{{ factory
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3360 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3361 * Attempts to return a concrete IDNA instance for either php4 or php5.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3362 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3363 * @param array $params Set of paramaters
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3364 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3365 * @return Net_IDNA2
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3366 * @access public
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3367 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3368 public static function getInstance($params = array())
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3369 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3370 return new Net_IDNA2($params);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3371 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3372 // }}}
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3373
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3374 // {{{ singleton
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3375 /**
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3376 * Attempts to return a concrete IDNA instance for either php4 or php5,
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3377 * only creating a new instance if no IDNA instance with the same
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3378 * parameters currently exists.
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3379 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3380 * @param array $params Set of parameters
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3381 *
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3382 * @return object Net_IDNA2
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3383 * @access public
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3384 */
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3385 public static function singleton($params = array())
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3386 {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3387 static $instances;
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3388 if (!isset($instances)) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3389 $instances = array();
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3390 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3391
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3392 $signature = serialize($params);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3393 if (!isset($instances[$signature])) {
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3394 $instances[$signature] = Net_IDNA2::getInstance($params);
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3395 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3396
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3397 return $instances[$signature];
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3398 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3399 // }}}
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3400 }
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3401
1e000243b222 vanilla 1.3.3 distro, I hope
Charlie Root
parents:
diff changeset
3402 ?>