PHP 클래스 JpnForPhp\Transliterator\Kana

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

공개 메소드들

메소드 설명
__construct ( $system = '' ) Kana's constructor
__toString ( ) Implements __toString().
transliterate ( $str, $stripwhitespace = self::STRIP_WHITESPACE_NONE ) Override transliterate().

보호된 메소드들

메소드 설명
convertHiraganaToKatakana ( string $str ) : string Hack to call Helper::convertHiraganaToKatakana() within the transliteration workflow.
preTransliterate ( $str ) Override preTransliterate().
prepareChoonpuTransliteration ( string $str ) : string Prepare a string for to transliterate choonpu into kana.
prepareLongVowelsTransliteration ( string $str, array $parameters ) : string Prepare a string for to transliterate long vowels into kana.
transliterateDefaultCharacters ( string $str, array $parameters ) : string Convert the given string into kana using the specified mapping.
transliterateQuotationMarks ( string $str ) : string Transliterate quotation mark into their equivalent in Japanese syllabary.
transliterateSokuon ( string $str, array $parameters ) : string Transliterate proper combinaisons of latin alphabet characters into Sokuon (http://en.wikipedia.org/wiki/Sokuon) characters.

메소드 상세

__construct() 공개 메소드

Kana's constructor
public __construct ( $system = '' )

__toString() 공개 메소드

Implements __toString().
또한 보기: TransliterationSystemInterface
public __toString ( )

convertHiraganaToKatakana() 보호된 메소드

Hack to call Helper::convertHiraganaToKatakana() within the transliteration workflow.
또한 보기: JpnForPhp\Helper\Helper::convertHiraganaToKatakana()
protected convertHiraganaToKatakana ( string $str ) : string
$str string String to be converted.
리턴 string Converted string.

preTransliterate() 보호된 메소드

Override preTransliterate().
또한 보기: TransliterationSystem
protected preTransliterate ( $str )

prepareChoonpuTransliteration() 보호된 메소드

Prepare a string for to transliterate choonpu into kana.
protected prepareChoonpuTransliteration ( string $str ) : string
$str string String to be prepared.
리턴 string Prepared string.

prepareLongVowelsTransliteration() 보호된 메소드

Prepare a string for to transliterate long vowels into kana.
protected prepareLongVowelsTransliteration ( string $str, array $parameters ) : string
$str string String to be prepared.
$parameters array Long vowels mapping.
리턴 string Prepared string.

transliterate() 공개 메소드

Override transliterate().
또한 보기: TransliterationSystem
public transliterate ( $str, $stripwhitespace = self::STRIP_WHITESPACE_NONE )

transliterateDefaultCharacters() 보호된 메소드

Convert the given string into kana using the specified mapping.
protected transliterateDefaultCharacters ( string $str, array $parameters ) : string
$str string String to be converted.
$parameters array Characters mapping.
리턴 string Converted string.

transliterateQuotationMarks() 보호된 메소드

Transliterate quotation mark into their equivalent in Japanese syllabary.
protected transliterateQuotationMarks ( string $str ) : string
$str string String to be transliterated.
리턴 string Transliterated string.

transliterateSokuon() 보호된 메소드

Transliterate proper combinaisons of latin alphabet characters into Sokuon (http://en.wikipedia.org/wiki/Sokuon) characters.
protected transliterateSokuon ( string $str, array $parameters ) : string
$str string String to be transliterated.
$parameters array Sokuon character.
리턴 string Transliterated string.