Class

eZTextCodec

class eZTextCodec

Methods

__construct(string $inputCharsetCode, string $outputCharsetCode, string $realInputCharsetCode, string $realOutputCharsetCode, string $inputEncoding, string $outputEncoding)

initializeConversionFunction($encodingConvertInitMap, $encodingConvertInitFunction)

initializeCodepageMapper()

initializeInputCodepage()

initializeOutputCodepage()

conversionRequired()

setUseMBString($use)

useMBString()

requestedInputCharsetCode()

requestedOutputCharsetCode()

inputCharsetCode()

outputCharsetCode()

convertString($str)

strlen($str)

convertNoneToUnicode($str)

convertCodepageToUnicode($str)

convertUTF8ToUnicode($str)

convertUnicodeToCodepage($unicodeValues)

convertUnicodeToUTF8($unicodeValues)

convertNone($str)

convertCodepage($str)

convertCodepageRev($str)

convertCodepageMapper($str)

convertMBString($str)

strlenNone($str)

strlenUnicode($unicodeValues)

strlenCodepage($str)

strlenUTF8($str)

strlenCodepageRev($str)

strlenCodepageMapper($str)

strlenMBString($str)

Details

at line 32
public __construct(string $inputCharsetCode, string $outputCharsetCode, string $realInputCharsetCode, string $realOutputCharsetCode, string $inputEncoding, string $outputEncoding)

Parameters

string $inputCharsetCode
string $outputCharsetCode
string $realInputCharsetCode
string $realOutputCharsetCode
string $inputEncoding
string $outputEncoding

at line 220
public initializeConversionFunction($encodingConvertInitMap, $encodingConvertInitFunction)

Parameters

$encodingConvertInitMap
$encodingConvertInitFunction

at line 242
public initializeCodepageMapper()

at line 248
public initializeInputCodepage()

at line 253
public initializeOutputCodepage()

at line 261
public conversionRequired()

at line 266
public setUseMBString($use)

Parameters

$use

at line 271
public useMBString()

at line 279
public requestedInputCharsetCode()

at line 284
public requestedOutputCharsetCode()

at line 289
public inputCharsetCode()

at line 294
public outputCharsetCode()

at line 299
public convertString($str)

Parameters

$str

at line 309
public strlen($str)

Parameters

$str

at line 318
public convertNoneToUnicode($str)

Parameters

$str

at line 323
public convertCodepageToUnicode($str)

Parameters

$str

at line 331
public convertUTF8ToUnicode($str)

Parameters

$str

at line 339
public convertUnicodeToCodepage($unicodeValues)

Parameters

$unicodeValues

at line 347
public convertUnicodeToUTF8($unicodeValues)

Parameters

$unicodeValues

at line 355
public convertNone($str)

Parameters

$str

at line 360
public convertCodepage($str)

Parameters

$str

at line 368
public convertCodepageRev($str)

Parameters

$str

at line 376
public convertCodepageMapper($str)

Parameters

$str

at line 384
public convertMBString($str)

Parameters

$str

at line 395
public strlenNone($str)

Parameters

$str

at line 400
public strlenUnicode($unicodeValues)

Parameters

$unicodeValues

at line 405
public strlenCodepage($str)

Parameters

$str

at line 410
public strlenUTF8($str)

Parameters

$str

at line 416
public strlenCodepageRev($str)

Parameters

$str

at line 421
public strlenCodepageMapper($str)

Parameters

$str

at line 426
public strlenMBString($str)

Parameters

$str