The Transliterator class

Introduction

Transliterator provides transliteration of strings.

Class synopsis

Transliterator
/* Constants */
public const int Transliterator::FORWARD;
public const int Transliterator::REVERSE;
/* Properties */
public readonly string $id;
/* Methods */
final private __construct()
public static Transliteratornull create(string $id, int $direction = Transliterator::FORWARD)
public static Transliteratornull createFromRules(string $rules, int $direction = Transliterator::FORWARD)
public Transliteratornull createInverse()
public intfalse getErrorCode()
public stringfalse getErrorMessage()
public static arrayfalse listIDs()
public stringfalse transliterate(string $string, int $start = 0, int $end = -1)

Properties

id

Predefined Constants

Transliterator::FORWARD

Transliterator::REVERSE

Changelog

Version Description
8.2.0 The id property is now readonly.
Table of Contents