PHP Class Overtrue\Pinyin\MemoryFileDictLoader

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

Protected Properties

Свойство Type Description
$path string Data directory.
$segmentName string Words segment name.
$segments array Segment files.
$surnames array Surname cache.

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

Data directory.
protected string $path
Résultat string

$segmentName protected_oe property

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

$segments protected_oe property

Segment files.
protected array $segments
Résultat array

$surnames protected_oe property

Surname cache.
protected array $surnames
Résultat array