/** * Maps all special chars to the given string * @param string $specialChars * @param string $mapped */ private static function AddSpecialCharsToMap($specialChars, $mapped) { $reader = new StringReader($specialChars); while ($ch = $reader->ReadChar()) { self::$specialWesternCharMap[$ch] = $mapped; } }