For more documentation see here: http://userguide.icu-project.org/transforms/generalThe Transliterator class
(PHP 5 >= 5.4.0, PHP 7, PHP 8, PECL intl >= 2.0.0)
Introduction
Transliterator provides transliteration of strings.
Class synopsis
class Transliterator
{
/* Constants */
/* Properties */
/* Methods */
public static function create(string
$id, int $direction = Transliterator::FORWARD): ?Transliteratorpublic static function createFromRules(string
}$rules, int $direction = Transliterator::FORWARD): ?TransliteratorProperties
- id
-
Predefined Constants
Changelog
| Version | Description |
|---|---|
| 8.4.0 | The class constants are now typed. |
| 8.2.0 | The id property is now readonly. |
Table of Contents
- Transliterator::__construct — Private constructor to deny instantiation
- Transliterator::create — Create a transliterator
- Transliterator::createFromRules — Create transliterator from rules
- Transliterator::createInverse — Create an inverse transliterator
- Transliterator::getErrorCode — Get last error code
- Transliterator::getErrorMessage — Get last error message
- Transliterator::listIDs — Get transliterator IDs
- Transliterator::transliterate — Transliterate a string
+add a note
User Contributed Notes 2 notes
asphp at dsgml dot com ¶
11 years ago
metalinspired ¶
4 years ago
New location of documentation: https://unicode-org.github.io/icu/userguide/transforms/general/