SetaPDF_Core_Encoding_EncodingInterface Interface for encoding tables

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

Implemented in

Summary

Static Methods

fromUtf16Be()

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

Converts a string from UTF-16BE to the implemended encoding.

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()

abstract public static SetaPDF_Core_Encoding_EncodingInterface::getTable (
void
): array

Returns the encoding table array.

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

toUtf16Be()

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

Converts a string from the implemented encoding 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