Class

eZCodePage

class eZCodePage

Constants

CACHE_CODE_DATE

Properties

$RequestedCharsetCode
$CharsetCode
$CharsetEncodingScheme
$UnicodeMap
$UTF8Map
$CodeMap
$UTF8CodeMap
$MinCharValue
$MaxCharValue
$Valid
$SubstituteChar

Methods

__construct(string $charset_code, bool $use_cache = true)

Initializes the codepage with the charset code $charset_code, and then loads it.

convertString($str)

convertStringToUnicode($str)

convertUnicodeToString($unicodeValues)

convertStringFromUTF8($multi_char)

strlen($str)

strlenFromUTF8($str)

charToUtf8($str, $pos, $charLen)

charToUnicode($str, $pos, $charLen)

codeToUtf8($code)

codeToUnicode($code)

utf8ToChar($ucode)

unicodeToChar($ucode)

utf8ToCode($ucode)

unicodeToCode($ucode)

substituteChar()

setSubstituteChar($char)

cacheFileName($charset_code)

fileModification($charset_code)

codepageList()

storeCacheObject($filename, $permissionArray)

cacheFilepath()

load($use_cache = true)

charsetCode()

requestedCharsetCode()

minCharValue()

maxCharValue()

isValid()

Details

at line 28
public __construct(string $charset_code, bool $use_cache = true)

Initializes the codepage with the charset code $charset_code, and then loads it.

Parameters

string $charset_code
bool $use_cache

at line 41
public convertString($str)

Parameters

$str

at line 59
public convertStringToUnicode($str)

Parameters

$str

at line 74
public convertUnicodeToString($unicodeValues)

Parameters

$unicodeValues

at line 87
public convertStringFromUTF8($multi_char)

Parameters

$multi_char

at line 210
public strlen($str)

Parameters

$str

at line 231
public strlenFromUTF8($str)

Parameters

$str

at line 236
public charToUtf8($str, $pos, $charLen)

Parameters

$str
$pos
$charLen

at line 250
public charToUnicode($str, $pos, $charLen)

Parameters

$str
$pos
$charLen

at line 264
public codeToUtf8($code)

Parameters

$code

at line 269
public codeToUnicode($code)

Parameters

$code

at line 278
public utf8ToChar($ucode)

Parameters

$ucode

at line 292
public unicodeToChar($ucode)

Parameters

$ucode

at line 306
public utf8ToCode($ucode)

Parameters

$ucode

at line 313
public unicodeToCode($ucode)

Parameters

$ucode

at line 320
public substituteChar()

at line 325
public setSubstituteChar($char)

Parameters

$char

at line 351
public cacheFileName($charset_code)

Parameters

$charset_code

at line 364
public fileModification($charset_code)

Parameters

$charset_code

at line 372
public codepageList()

at line 395
public storeCacheObject($filename, $permissionArray)

Parameters

$filename
$permissionArray

at line 485
public cacheFilepath()

at line 505
public load($use_cache = true)

Parameters

$use_cache

at line 667
public charsetCode()

at line 675
public requestedCharsetCode()

at line 683
public minCharValue()

at line 691
public maxCharValue()

at line 699
public isValid()