pluf2

pluf2 Commit Details


Date:2009-07-03 02:37:03 (15 years 5 months ago)
Author:Loic d'Anterroches
Branch:master
Commit:ac2602dca45a26a961880d43a96f816b00465314
Parents: 68cc225bb566ac4d80db6192f7816200487f66c1
Message:Removed the MacCyrillic encoding as not supported by PHP.

Changes:

File differences

src/Pluf/Text/UTF8.php
140140
141141
142142
143
144143
145144
146145
......
161160
162161
163162
164
165
166
167
168163
169164
170165
'Windows-1251' => 0,
'CP-866' => 0,
'ISO-8859-5' => 0,
'MacCyrillic' => 0
);
$length = strlen($str);
for ($i=0; $i<$length; $i++) {
if ($char > 223 && $char < 256) $charsets['Windows-1251']+=3;
if ($char > 191 && $char < 224) $charsets['Windows-1251']+=1;
//MAC
if ($char > 221 && $char < 255) $charsets['MacCyrillic']+=3;
if ($char > 127 && $char < 160) $charsets['MacCyrillic']+=1;
//ISO-8859-5
if ($char > 207 && $char < 240) $charsets['ISO-8859-5']+=3;
if ($char > 175 && $char < 208) $charsets['ISO-8859-5']+=1;

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05261s using 13 queries.