summaryrefslogtreecommitdiff
path: root/inc/utf8.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-06-11 19:32:40 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-06-11 19:32:40 +0200
commit54662a044eb6fd07b3246aed0d598d02bf7a1e4a (patch)
treeecce669f222de4e3fb5936a8343b107b53c86b67 /inc/utf8.php
parentedb16ad562c5896924ac8ef324235847d7e353c0 (diff)
downloadrpg-54662a044eb6fd07b3246aed0d598d02bf7a1e4a.tar.gz
rpg-54662a044eb6fd07b3246aed0d598d02bf7a1e4a.tar.bz2
make sure UTF8 lookup tables are always global
darcs-hash:20060611173240-7ad00-9bc775163fd9fc65917ffe10f78f872a302bdbcf.gz
Diffstat (limited to 'inc/utf8.php')
-rw-r--r--inc/utf8.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/utf8.php b/inc/utf8.php
index 578745f9b..cf2ff3b2a 100644
--- a/inc/utf8.php
+++ b/inc/utf8.php
@@ -734,7 +734,8 @@ if(!UTF8_MBSTRING){
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
- static $UTF8_LOWER_TO_UPPER = array(
+ global $UTF8_LOWER_TO_UPPER;
+ $UTF8_LOWER_TO_UPPER = array(
0x0061=>0x0041, 0x03C6=>0x03A6, 0x0163=>0x0162, 0x00E5=>0x00C5, 0x0062=>0x0042,
0x013A=>0x0139, 0x00E1=>0x00C1, 0x0142=>0x0141, 0x03CD=>0x038E, 0x0101=>0x0100,
0x0491=>0x0490, 0x03B4=>0x0394, 0x015B=>0x015A, 0x0064=>0x0044, 0x03B3=>0x0393,
@@ -788,6 +789,7 @@ if(!UTF8_MBSTRING){
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
+ global $UTF8_UPPER_TO_LOWER;
$UTF8_UPPER_TO_LOWER = @array_flip($UTF8_LOWER_TO_UPPER);
} // end of case lookup tables
@@ -802,6 +804,7 @@ if(!UTF8_MBSTRING){
* @author Andreas Gohr <andi@splitbrain.org>
* @see utf8_deaccent()
*/
+global $UTF8_LOWER_ACCENTS;
$UTF8_LOWER_ACCENTS = array(
'à' => 'a', 'ô' => 'o', 'ď' => 'd', 'ḟ' => 'f', 'ë' => 'e', 'š' => 's', 'ơ' => 'o',
'ß' => 'ss', 'ă' => 'a', 'ř' => 'r', 'ț' => 't', 'ň' => 'n', 'ā' => 'a', 'ķ' => 'k',
@@ -829,6 +832,7 @@ $UTF8_LOWER_ACCENTS = array(
* @author Andreas Gohr <andi@splitbrain.org>
* @see utf8_deaccent()
*/
+global $UTF8_UPPER_ACCENTS;
$UTF8_UPPER_ACCENTS = array(
'À' => 'A', 'Ô' => 'O', 'Ď' => 'D', 'Ḟ' => 'F', 'Ë' => 'E', 'Š' => 'S', 'Ơ' => 'O',
'Ă' => 'A', 'Ř' => 'R', 'Ț' => 'T', 'Ň' => 'N', 'Ā' => 'A', 'Ķ' => 'K',
@@ -861,6 +865,7 @@ $UTF8_UPPER_ACCENTS = array(
* @author Andreas Gohr <andi@splitbrain.org>
* @see utf8_stripspecials()
*/
+global $UTF8_SPECIAL_CHARS;
$UTF8_SPECIAL_CHARS = array(
0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f, 0x0020, 0x0021, 0x0022, 0x0023,
0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002b, 0x002c,
@@ -933,6 +938,7 @@ $UTF8_SPECIAL_CHARS = array(
* @link http://en.wikipedia.org/wiki/Royal_Thai_General_System_of_Transcription
* @link http://www.btranslations.com/resources/romanization/korean.asp
*/
+global $UTF8_ROMANIZATION;
$UTF8_ROMANIZATION = array(
//russian cyrillic
'а'=>'a','А'=>'A','б'=>'b','Б'=>'B','в'=>'v','В'=>'V','г'=>'g','Г'=>'G',