PHP 클래스 JpnForPhp\Transliterator\TransliterationSystem

저자: Matthieu Bilbille (@mbibille)
파일 보기 프로젝트 열기: mbilbille/jpnforphp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$configuration Load transliteration system configuration.

공개 메소드들

메소드 설명
__construct ( $file ) Transliteration system's constructor
__toString ( ) Implement magic method __toString().
transliterate ( string $str ) : string Transliterate a string from an alphabet into another alphabet as per the workflow specified in the configuration file.

보호된 메소드들

메소드 설명
postTransliterate ( string $str ) : string To be executed after the transliteration workflow.
preTransliterate ( string $str ) : string To be executed before the transliteration workflow.

메소드 상세

__construct() 공개 메소드

Transliteration system's constructor
public __construct ( $file )

__toString() 추상적인 공개 메소드

Implement magic method __toString().
abstract public __toString ( )

postTransliterate() 보호된 메소드

To be executed after the transliteration workflow.
protected postTransliterate ( string $str ) : string
$str string The transliterated string.
리턴 string The transliterated string.

preTransliterate() 보호된 메소드

To be executed before the transliteration workflow.
protected preTransliterate ( string $str ) : string
$str string The input string.
리턴 string The string ready for transliteration.

transliterate() 공개 메소드

Transliterate a string from an alphabet into another alphabet as per the workflow specified in the configuration file.
public transliterate ( string $str ) : string
$str string The string to be converted.
리턴 string Converted string.

프로퍼티 상세

$configuration 공개적으로 프로퍼티

Load transliteration system configuration.
public $configuration