| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Locale::Maketext::Utils::Phrase::Norm::BeginUpper; |
|
2
|
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
5469
|
use strict; |
|
|
4
|
|
|
|
|
9
|
|
|
|
4
|
|
|
|
|
150
|
|
|
4
|
4
|
|
|
4
|
|
22
|
use warnings; |
|
|
4
|
|
|
|
|
8
|
|
|
|
4
|
|
|
|
|
1813
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub normalize_maketext_string { |
|
7
|
66
|
|
|
66
|
0
|
155
|
my ($filter) = @_; |
|
8
|
|
|
|
|
|
|
|
|
9
|
66
|
|
|
|
|
331
|
my $string_sr = $filter->get_string_sr(); |
|
10
|
|
|
|
|
|
|
|
|
11
|
66
|
100
|
|
|
|
158
|
if ( ${$string_sr} !~ m/\A(?:[A-Z]|(?:\[[^\]]+)|(?: …)|“)/ ) { |
|
|
66
|
|
|
|
|
341
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# ${$string_sr} = "[comment,beginning needs to be upper case ?]" . ${$string_sr}; |
|
14
|
4
|
|
|
|
|
19
|
$filter->add_warning('Does not start with an uppercase letter, ellipsis preceded by space, or bracket notation.'); |
|
15
|
|
|
|
|
|
|
} |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# TODO (phrase obj?) If it starts w/ bracket notation will it be appropriately begun when rendered? |
|
18
|
|
|
|
|
|
|
|
|
19
|
66
|
|
|
|
|
207
|
return $filter->return_value; |
|
20
|
|
|
|
|
|
|
} |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |