Свойство | Type | Description | |
---|---|---|---|
$loader | Overtrue\Pinyin\DictLoaderInterface | Dict loader. | |
$punctuations | array | Punctuations map. |
Méthode | Description | |
---|---|---|
__construct ( string $loaderName = null ) | Constructor. | |
abbr ( string $string, string $delimiter = '' ) : string | Return first letters. | |
convert ( string $string, string $option = self::NONE ) : array | Convert string to pinyin. | |
getLoader ( ) : Overtrue\Pinyin\DictLoaderInterface | Return dict loader,. | |
name ( string $stringName, string $option = self::NONE ) : array | Convert string (person name) to pinyin. | |
permalink ( string $string, string $delimiter = '-' ) : string | Return a pinyin permalink from string. | |
sentence ( string $sentence, $withTone = false ) : string | Chinese to pinyin sentense. | |
setLoader ( Overtrue\Pinyin\DictLoaderInterface $loader ) | Loader setter. | |
splitWords ( string $pinyin, string $option ) : array | Split pinyin string to words. |
Méthode | Description | |
---|---|---|
convertSurname ( string $string, Overtrue\Pinyin\DictLoaderInterface $dictLoader ) : string | Convert Chinese Surname to pinyin. | |
format ( string $pinyin, boolean $tone = false ) : string | Format. | |
prepare ( string $string ) : string | Preprocess. | |
romanize ( string $string, boolean $isName = false ) : string | Convert Chinese to pinyin. |
public __construct ( string $loaderName = null ) | ||
$loaderName | string |
protected convertSurname ( string $string, Overtrue\Pinyin\DictLoaderInterface $dictLoader ) : string | ||
$string | string | |
$dictLoader | Overtrue\Pinyin\DictLoaderInterface | |
Résultat | string |
public getLoader ( ) : Overtrue\Pinyin\DictLoaderInterface | ||
Résultat | Overtrue\Pinyin\DictLoaderInterface |
public setLoader ( Overtrue\Pinyin\DictLoaderInterface $loader ) | ||
$loader | Overtrue\Pinyin\DictLoaderInterface |
protected DictLoaderInterface,Overtrue\Pinyin $loader | ||
Résultat | Overtrue\Pinyin\DictLoaderInterface |