SetaPDF_Core_Encoding_Standard Implementation of the StandardEncoding

File: /SetaPDF v2/Core/Encoding/Standard.php

Class hierarchy

Implements

Summary

Static Properties

$table

static public SetaPDF_Core_Encoding_Standard::$table = array(...)


Static Methods

fromUtf16Be()

public static SetaPDF_Core_Encoding_Standard::fromUtf16Be (
string $string [, boolean $ignore = false [, boolean $translit = false ]]
): string

Converts a string from UTF-16BE to StandardEncoding.

Parameters
$string : string

The input string

$ignore : boolean

Characters that cannot be represented in the target charset are silently discarded

$translit : boolean

Transliteration activated

getTable()

public static SetaPDF_Core_Encoding_Standard::getTable (
void
): array

Returns the encoding table array.

Keys are the unicode values while the values are the code points in the specific encoding.

See

toUtf16Be()

public static SetaPDF_Core_Encoding_Standard::toUtf16Be (
string $string [, boolean $ignore = false [, boolean $translit = false ]]
): string

Converts a string from StandardEncoding to UTF-16BE.

Parameters
$string : string

The input string

$ignore : boolean

Characters that cannot be represented in the target charset are silently discarded

$translit : boolean

Transliteration activated