| 1 | package Localizer::Dictionary; | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use 5.010_001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | ▶ | use Class::Accessor::Lite 0.05 ( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 2 | ro => [qw(_entries)], | |
| 9 | 2 | ); | |
| 10 | |||
| 11 | 2 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 12 | 2 | my $class = shift; | |
| 13 | 2 | bless { | |
| 14 | _entries => {}, | ||
| 15 | }, $class; | ||
| 16 | } | ||
| 17 | |||
| 18 | 2 | ▶ | sub exists_msgid { |
|
Subroutine
exists_msgid: called CC=1 SCAR=0.0
Pod
documented
| |||
| 19 | 2 | my ($self, $msgid) = @_; | |
| 20 | 2 | exists $self->_entries->{$msgid} | |
| 21 | } | ||
| 22 | |||
| 23 | 42 | ▶ | sub add_entry_position { |
|
Subroutine
add_entry_position: called CC=1 SCAR=0.0
Pod
documented
| |||
| 24 | 42 | my ($self, $msgid, $file, $line) = @_; | |
| 25 | 42 | push @{$self->_entries->{$msgid}->{position}}, [$file, $line]; | |
| 26 | } | ||
| 27 | |||
| 28 | 2 | 1; | |
| 29 | __END__ | ||