Location: PHPKode > scripts > AfterLogic WebMail Lite PHP > afterlogic-webmail-lite-php/webmail/common/utf8utils/utf8_strtoupper.php
<?php

/*
 * AfterLogic WebMail Pro PHP by AfterLogic Corp. <hide@address.com>
 *
 * Copyright (C) 2002-2010  AfterLogic Corp. (www.afterlogic.com)
 * Distributed under the terms of the license described in COPYING
 * 
 */

	/**
	 * @param string $string
	 * @return string
	 */
	function Utf8StrToUpper($string)
	{
		$mapping = array(
					"\x41" => "\x61",
					"\x42" => "\x62",
					"\x43" => "\x63",
					"\x44" => "\x64",
					"\x45" => "\x65",
					"\x46" => "\x66",
					"\x47" => "\x67",
					"\x48" => "\x68",
					"\x49" => "\x69",
					"\x4A" => "\x6A",
					"\x4B" => "\x6B",
					"\x4C" => "\x6C",
					"\x4D" => "\x6D",
					"\x4E" => "\x6E",
					"\x4F" => "\x6F",
					"\x50" => "\x70",
					"\x51" => "\x71",
					"\x52" => "\x72",
					"\x53" => "\x73",
					"\x54" => "\x74",
					"\x55" => "\x75",
					"\x56" => "\x76",
					"\x57" => "\x77",
					"\x58" => "\x78",
					"\x59" => "\x79",
					"\x5A" => "\x7A",
					"\xC5\xA0" => "\xC5\xA1",
					"\xC5\x9A" => "\xC5\x9B",
					"\xC5\xA4" => "\xC5\xA5",
					"\xC5\xBD" => "\xC5\xBE",
					"\xC5\xB9" => "\xC5\xBA",
					"\xC5\x81" => "\xC5\x82",
					"\xC4\x84" => "\xC4\x85",
					"\xC5\x9E" => "\xC5\x9F",
					"\xC5\xBB" => "\xC5\xBC",
					"\xC4\xBD" => "\xC4\xBE",
					"\xC5\x94" => "\xC5\x95",
					"\xC3\x81" => "\xC3\xA1",
					"\xC3\x82" => "\xC3\xA2",
					"\xC4\x82" => "\xC4\x83",
					"\xC3\x84" => "\xC3\xA4",
					"\xC4\xB9" => "\xC4\xBA",
					"\xC4\x86" => "\xC4\x87",
					"\xC3\x87" => "\xC3\xA7",
					"\xC4\x8C" => "\xC4\x8D",
					"\xC3\x89" => "\xC3\xA9",
					"\xC4\x98" => "\xC4\x99",
					"\xC3\x8B" => "\xC3\xAB",
					"\xC4\x9A" => "\xC4\x9B",
					"\xC3\x8D" => "\xC3\xAD",
					"\xC3\x8E" => "\xC3\xAE",
					"\xC4\x8E" => "\xC4\x8F",
					"\xC4\x90" => "\xC4\x91",
					"\xC5\x83" => "\xC5\x84",
					"\xC5\x87" => "\xC5\x88",
					"\xC3\x93" => "\xC3\xB3",
					"\xC3\x94" => "\xC3\xB4",
					"\xC5\x90" => "\xC5\x91",
					"\xC3\x96" => "\xC3\xB6",
					"\xC5\x98" => "\xC5\x99",
					"\xC5\xAE" => "\xC5\xAF",
					"\xC3\x9A" => "\xC3\xBA",
					"\xC5\xB0" => "\xC5\xB1",
					"\xC3\x9C" => "\xC3\xBC",
					"\xC3\x9D" => "\xC3\xBD",
					"\xC5\xA2" => "\xC5\xA3",
					"\xD0\x90" => "\xD0\xB0",
					"\xD0\x91" => "\xD0\xB1",
					"\xD0\x92" => "\xD0\xB2",
					"\xD0\x93" => "\xD0\xB3",
					"\xD0\x94" => "\xD0\xB4",
					"\xD0\x95" => "\xD0\xB5",
					"\xD0\x96" => "\xD0\xB6",
					"\xD0\x97" => "\xD0\xB7",
					"\xD0\x98" => "\xD0\xB8",
					"\xD0\x99" => "\xD0\xB9",
					"\xD0\x9A" => "\xD0\xBA",
					"\xD0\x9B" => "\xD0\xBB",
					"\xD0\x9C" => "\xD0\xBC",
					"\xD0\x9D" => "\xD0\xBD",
					"\xD0\x9E" => "\xD0\xBE",
					"\xD0\x9F" => "\xD0\xBF",
					"\xD0\xA0" => "\xD1\x80",
					"\xD0\xA1" => "\xD1\x81",
					"\xD0\xA2" => "\xD1\x82",
					"\xD0\xA3" => "\xD1\x83",
					"\xD0\xA4" => "\xD1\x84",
					"\xD0\xA5" => "\xD1\x85",
					"\xD0\xA6" => "\xD1\x86",
					"\xD0\xA7" => "\xD1\x87",
					"\xD0\xA8" => "\xD1\x88",
					"\xD0\xA9" => "\xD1\x89",
					"\xD0\xAA" => "\xD1\x8A",
					"\xD0\xAB" => "\xD1\x8B",
					"\xD0\xAC" => "\xD1\x8C",
					"\xD0\xAD" => "\xD1\x8D",
					"\xD0\xAE" => "\xD1\x8E",
					"\xD0\xAF" => "\xD1\x8F",
					"\xD0\x82" => "\xD1\x92",
					"\xD0\x83" => "\xD1\x93",
					"\xD0\x89" => "\xD1\x99",
					"\xD0\x8A" => "\xD1\x9A",
					"\xD0\x8C" => "\xD1\x9C",
					"\xD0\x8B" => "\xD1\x9B",
					"\xD0\x8F" => "\xD1\x9F",
					"\xD0\x8E" => "\xD1\x9E",
					"\xD0\x88" => "\xD1\x98",
					"\xD2\x90" => "\xD2\x91",
					"\xD0\x81" => "\xD1\x91",
					"\xD0\x84" => "\xD1\x94",
					"\xD0\x87" => "\xD1\x97",
					"\xD0\x86" => "\xD1\x96",
					"\xD0\x85" => "\xD1\x95",
					"\xC5\x92" => "\xC5\x93",
					"\xC5\xB8" => "\xC3\xBF",
					"\xC3\x80" => "\xC3\xA0",
					"\xC3\x83" => "\xC3\xA3",
					"\xC3\x85" => "\xC3\xA5",
					"\xC3\x86" => "\xC3\xA6",
					"\xC3\x88" => "\xC3\xA8",
					"\xC3\x8A" => "\xC3\xAA",
					"\xC3\x8C" => "\xC3\xAC",
					"\xC3\x8F" => "\xC3\xAF",
					"\xC3\x90" => "\xC3\xB0",
					"\xC3\x91" => "\xC3\xB1",
					"\xC3\x92" => "\xC3\xB2",
					"\xC3\x95" => "\xC3\xB5",
					"\xC3\x98" => "\xC3\xB8",
					"\xC3\x99" => "\xC3\xB9",
					"\xC3\x9B" => "\xC3\xBB",
					"\xC3\x9E" => "\xC3\xBE",
					"\xCE\x86" => "\xCE\xAC",
					"\xCE\x88" => "\xCE\xAD",
					"\xCE\x89" => "\xCE\xAE",
					"\xCE\x8A" => "\xCE\xAF",
					"\xCE\x8C" => "\xCF\x8C",
					"\xCE\x8E" => "\xCF\x8D",
					"\xCE\x8F" => "\xCF\x8E",
					"\xCE\x91" => "\xCE\xB1",
					"\xCE\x92" => "\xCE\xB2",
					"\xCE\x93" => "\xCE\xB3",
					"\xCE\x94" => "\xCE\xB4",
					"\xCE\x95" => "\xCE\xB5",
					"\xCE\x96" => "\xCE\xB6",
					"\xCE\x97" => "\xCE\xB7",
					"\xCE\x98" => "\xCE\xB8",
					"\xCE\x99" => "\xCE\xB9",
					"\xCE\x9A" => "\xCE\xBA",
					"\xCE\x9B" => "\xCE\xBB",
					"\xCE\x9C" => "\xCE\xBC",
					"\xCE\x9D" => "\xCE\xBD",
					"\xCE\x9E" => "\xCE\xBE",
					"\xCE\x9F" => "\xCE\xBF",
					"\xCE\xA0" => "\xCF\x80",
					"\xCE\xA1" => "\xCF\x81",
					"\xCE\xA3" => "\xCF\x83",
					"\xCE\xA4" => "\xCF\x84",
					"\xCE\xA5" => "\xCF\x85",
					"\xCE\xA6" => "\xCF\x86",
					"\xCE\xA7" => "\xCF\x87",
					"\xCE\xA8" => "\xCF\x88",
					"\xCE\xA9" => "\xCF\x89",
					"\xCE\xAA" => "\xCF\x8A",
					"\xCE\xAB" => "\xCF\x8B",
					"\xC4\x9E" => "\xC4\x9F",
					"\xC5\x96" => "\xC5\x97",
					"\xC4\xAE" => "\xC4\xAF",
					"\xC4\x80" => "\xC4\x81",
					"\xC4\x92" => "\xC4\x93",
					"\xC4\x96" => "\xC4\x97",
					"\xC4\xA2" => "\xC4\xA3",
					"\xC4\xB6" => "\xC4\xB7",
					"\xC4\xAA" => "\xC4\xAB",
					"\xC4\xBB" => "\xC4\xBC",
					"\xC5\x85" => "\xC5\x86",
					"\xC5\x8C" => "\xC5\x8D",
					"\xC5\xB2" => "\xC5\xB3",
					"\xC5\xAA" => "\xC5\xAB",
					"\xC6\xA0" => "\xC6\xA1",
					"\xC6\xAF" => "\xC6\xB0",
					"\xC4\xA8" => "\xC4\xA9",
					"\xC5\xA6" => "\xC5\xA7",
					"\xC5\x8A" => "\xC5\x8B",
					"\xC5\xA8" => "\xC5\xA9",
					"\xE1\xB8\x82" => "\xE1\xB8\x83",
					"\xC4\x8A" => "\xC4\x8B",
					"\xE1\xB8\x8A" => "\xE1\xB8\x8B",
					"\xE1\xB8\x9E" => "\xE1\xB8\x9F",
					"\xC4\xA0" => "\xC4\xA1",
					"\xE1\xB9\x80" => "\xE1\xB9\x81",
					"\xE1\xBA\x80" => "\xE1\xBA\x81",
					"\xE1\xBA\x82" => "\xE1\xBA\x83",
					"\xE1\xBB\xB2" => "\xE1\xBB\xB3",
					"\xE1\xB9\x96" => "\xE1\xB9\x97",
					"\xE1\xB9\xA0" => "\xE1\xB9\xA1",
					"\xE1\xBA\x84" => "\xE1\xBA\x85",
					"\xC5\xB4" => "\xC5\xB5",
					"\xE1\xB9\xAA" => "\xE1\xB9\xAB",
					"\xC5\xB6" => "\xC5\xB7",
					"\xC8\x98" => "\xC8\x99",
					"\xC8\x9A" => "\xC8\x9B",
					"\xC4\xA6" => "\xC4\xA7",
					"\xC4\xA4" => "\xC4\xA5",
					"\xC4\xB4" => "\xC4\xB5",
					"\xC4\x88" => "\xC4\x89",
					"\xC4\x9C" => "\xC4\x9D",
					"\xC5\xAC" => "\xC5\xAD",
					"\xC5\x9C" => "\xC5\x9D");
					
		return str_replace(array_values($mapping), array_keys($mapping), $string);
	}
Return current item: AfterLogic WebMail Lite PHP