PHP Class Overtrue\Pinyin\FileDictLoader

Inheritance: implements Overtrue\Pinyin\DictLoaderInterface
Afficher le fichier Open project: overtrue/pinyin

Protected Properties

Свойство Type Description
$path string Dict path.
$segmentName string Words segment name.

Méthodes publiques

Méthode Description
__construct ( string $path ) Constructor.
map ( Closure $callback ) Load dict.
mapSurname ( Closure $callback ) Load surname dict.

Method Details

__construct() public méthode

Constructor.
public __construct ( string $path )
$path string

map() public méthode

Load dict.
public map ( Closure $callback )
$callback Closure

mapSurname() public méthode

Load surname dict.
public mapSurname ( Closure $callback )
$callback Closure

Property Details

$path protected_oe property

Dict path.
protected string $path
Résultat string

$segmentName protected_oe property

Words segment name.
protected string $segmentName
Résultat string