Localizer::Dictionary - Dictionary for Localizer::Scanner
Dictionary for Localizer::Scanner class. This module is ** IRRELEVANT ** to dictionary of Localizer::Resource.
use Localizer::Dictionary; my $dict = Localizer::Dictionary->new(); $dict->add_entry_position('Hi %1', 'path/to/foo.tt', 10); $dict->exists_msgid('Hi %1'); # => 1 $dict->exists_msgid('foobar'); # => ''
Localizer::Dictionary->new()
Constructor. It makes dictionary instance.
$dictionary->add_entry_position($msgid, $file, $line)
Add entry into dictionary. $msgid is the ID of message (similar to key of dictionary of Localizer::Resource), $file is the location of file, and $line is the line number where there is $msgid.
$msgid
$file
$line
$dictionary->exists_msgid($msgid)
Returns whether $msgid is registered in the dictionary. If it exists, this method returns true value, otherwise it returns false value.
Copyright (C) Tokuhiro Matsuno.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Localizer::Scanner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Localizer::Scanner
CPAN shell
perl -MCPAN -e shell install Localizer::Scanner
For more information on module installation, please visit the detailed CPAN module installation guide.