NAME
Localizer::Dictionary - Dictionary for Localizer::Scanner
DESCRIPTION
Dictionary for Localizer::Scanner class. This module is ** IRRELEVANT ** to dictionary of Localizer::Resource.
SYNOPSIS
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'); # => ''
METHODS
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
.$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.
LICENSE
Copyright (C) Tokuhiro Matsuno.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.