| 1 | ##---------------------------------------------------------------------------- | ||||||||||||||||||||||||||||
| 2 | ## Person Name Format - ~/lib/PersonName/Format/Compiled.pm | ||||||||||||||||||||||||||||
| 3 | ## Version v0.1.0 | ||||||||||||||||||||||||||||
| 4 | ## Copyright(c) 2026 DEGUEST Pte. Ltd. | ||||||||||||||||||||||||||||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||||||||||||||||||||||||||||
| 6 | ## Created 2026/07/17 | ||||||||||||||||||||||||||||
| 7 | ## Modified 2026/07/17 | ||||||||||||||||||||||||||||
| 8 | ## All rights reserved | ||||||||||||||||||||||||||||
| 9 | ## | ||||||||||||||||||||||||||||
| 10 | ## This program is free software; you can redistribute it and/or modify it | ||||||||||||||||||||||||||||
| 11 | ## under the same terms as Perl itself. | ||||||||||||||||||||||||||||
| 12 | ##---------------------------------------------------------------------------- | ||||||||||||||||||||||||||||
| 13 | package PersonName::Format::Compiled; | ||||||||||||||||||||||||||||
| 14 | BEGIN | ||||||||||||||||||||||||||||
| 15 | 13 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=3 SCAR=13.5
| |||||||||||||||||||||||||||||
| 16 | 13 | ▶ | use v5.10.1; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 17 | 13 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 18 | 13 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 19 | 13 | ▶ | if( $] < 5.013 ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 20 | { | ||||||||||||||||||||||||||||
| 21 | 13 | ▶ | no strict 'refs'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 22 | 0 | ▶ | unless( defined( &warnings::register_categories ) ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 23 | { | ||||||||||||||||||||||||||||
| 24 | *warnings::_mkMask = sub | ||||||||||||||||||||||||||||
| 25 | 0 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 26 | 0 | my $bit = shift( @_ ); | |||||||||||||||||||||||||||
| 27 | 0 | my $mask = ""; | |||||||||||||||||||||||||||
| 28 | 0 | vec( $mask, $bit, 1 ) = 1; | |||||||||||||||||||||||||||
| 29 | 0 | return( $mask ); | |||||||||||||||||||||||||||
| 30 | 0 | }; | |||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||
| 32 | *warnings::register_categories = sub | ||||||||||||||||||||||||||||
| 33 | 0 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=4 SCAR=30.0
| |||||||||||||||||||||||||||||
| 34 | 0 | my @names = @_; | |||||||||||||||||||||||||||
| 35 | 0 | foreach my $name ( @names ) | |||||||||||||||||||||||||||
| 36 | { | ||||||||||||||||||||||||||||
| 37 | 0 | ▶ | if( !defined( $warnings::Bits{ $name } ) ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 38 | { | ||||||||||||||||||||||||||||
| 39 | 0 | $warnings::Offsets{ $name } = $warnings::LAST_BIT; | |||||||||||||||||||||||||||
| 40 | 0 | $warnings::Bits{ $name } = warnings::_mkMask( $warnings::LAST_BIT++ ); | |||||||||||||||||||||||||||
| 41 | 0 | $warnings::DeadBits{ $name } = warnings::_mkMask( $warnings::LAST_BIT++ ); | |||||||||||||||||||||||||||
| 42 | 0 | ▶ | if( length( $warnings::Bits{ $name } ) > length( $warnings::Bits{all} ) ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 43 | { | ||||||||||||||||||||||||||||
| 44 | 0 | $warnings::Bits{all} .= "\x55"; | |||||||||||||||||||||||||||
| 45 | 0 | $warnings::DeadBits{all} .= "\xaa"; | |||||||||||||||||||||||||||
| 46 | } | ||||||||||||||||||||||||||||
| 47 | } | ||||||||||||||||||||||||||||
| 48 | } | ||||||||||||||||||||||||||||
| 49 | 0 | }; | |||||||||||||||||||||||||||
| 50 | } | ||||||||||||||||||||||||||||
| 51 | } | ||||||||||||||||||||||||||||
| 52 | 13 | warnings::register_categories( 'PersonName::Format' ); | |||||||||||||||||||||||||||
| 53 | 13 | ▶ | use parent qw( PersonName::Format::Generic ); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 54 | 13 | ▶ | use vars qw( $VERSION ); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 55 | 13 | ▶ | use PersonName::Format::Name; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 56 | 13 | ▶ | use Scalar::Util (); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 57 | 13 | our( $VERSION ) = 'v0.1.0'; | |||||||||||||||||||||||||||
| 58 | }; | ||||||||||||||||||||||||||||
| 59 | |||||||||||||||||||||||||||||
| 60 | 13 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 61 | 13 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 62 | |||||||||||||||||||||||||||||
| 63 | sub init | ||||||||||||||||||||||||||||
| 64 | 1 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
init: called CC=5 SCAR=17.1
Pod
documented
| |||||||||||||||||||||||||||||
| 65 | 1 | my $self = shift( @_ ); | |||||||||||||||||||||||||||
| 66 | 1 | my $args = $self->_get_args_as_hash( @_ ); | |||||||||||||||||||||||||||
| 67 | 1 | $args = {%$args}; | |||||||||||||||||||||||||||
| 68 | 1 | my $formatter = delete( $args->{formatter} ); | |||||||||||||||||||||||||||
| 69 | 1 | my $context = delete( $args->{context} ); | |||||||||||||||||||||||||||
| 70 | 1 | my $name_script = delete( $args->{name_script} ); | |||||||||||||||||||||||||||
| 71 | 1 | my $name_locale = delete( $args->{name_locale} ); | |||||||||||||||||||||||||||
| 72 | 1 | my $preferred_order = delete( $args->{preferred_order} ); | |||||||||||||||||||||||||||
| 73 | 1 | ▶ | unless( Scalar::Util::blessed( $formatter ) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
builtin::blessed($formatter) and $formatter->isa("PersonName::Format")
MC/DC0%0/2
builtin::blessed($formatter) and $formatter->isa("PersonName::Format")
builtin::blessed($formatter)
$formatter->isa("PersonName::Format")
Truth table33%1/3
A and B
A= builtin::blessed($formatter)B= $formatter->isa("PersonName::Format")
| |||||||||||||||||||||||||||||
| 74 | $formatter->isa( 'PersonName::Format' ) ) | ||||||||||||||||||||||||||||
| 75 | { | ||||||||||||||||||||||||||||
| 76 | 0 | return( $self->error( "No formatter was provided." ) ); | |||||||||||||||||||||||||||
| 77 | } | ||||||||||||||||||||||||||||
| 78 | 1 | ▶ | unless( ref( $context ) eq 'HASH' ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 79 | { | ||||||||||||||||||||||||||||
| 80 | 0 | return( $self->error( "No compiled formatting context was provided." ) ); | |||||||||||||||||||||||||||
| 81 | } | ||||||||||||||||||||||||||||
| 82 | 1 | ▶ | if( scalar( keys( %$args ) ) ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 83 | { | ||||||||||||||||||||||||||||
| 84 | 0 | return( $self->error( "Unknown Compiled option '", ( keys( %$args ) )[0], "'." ) ); | |||||||||||||||||||||||||||
| 85 | } | ||||||||||||||||||||||||||||
| 86 | 1 | $self->{formatter} = $formatter; | |||||||||||||||||||||||||||
| 87 | 1 | $self->{context} = $context; | |||||||||||||||||||||||||||
| 88 | 1 | $self->{name_script} = $name_script; | |||||||||||||||||||||||||||
| 89 | 1 | $self->{name_locale} = $name_locale; | |||||||||||||||||||||||||||
| 90 | 1 | $self->{preferred_order} = $preferred_order; | |||||||||||||||||||||||||||
| 91 | 1 | return( $self ); | |||||||||||||||||||||||||||
| 92 | } | ||||||||||||||||||||||||||||
| 93 | |||||||||||||||||||||||||||||
| 94 | sub format | ||||||||||||||||||||||||||||
| 95 | 2 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
format: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||||||||||
| 96 | 2 | my $self = shift( @_ ); | |||||||||||||||||||||||||||
| 97 | 2 | ▶ | my $name = $self->_name( @_ ) || return( $self->pass_error ); | ||||||||||||||||||||||||||
|
Condition50%1/2
$self->_name(@_) || (return $self->pass_error)
MC/DC0%0/1
$self->_name(@_) || (return $self->pass_error)
$self->_name(@_)
Truth table50%1/2
A
A= $self->_name(@_)
| |||||||||||||||||||||||||||||
| 98 | 2 | ▶ | return( $self->pass_error ) unless( $self->_validate_identity( $name ) ); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 99 | 1 | return( $self->{formatter}->_render_context( $self->{context}, $name, 0 ) ); | |||||||||||||||||||||||||||
| 100 | } | ||||||||||||||||||||||||||||
| 101 | |||||||||||||||||||||||||||||
| 102 | sub format_to_parts | ||||||||||||||||||||||||||||
| 103 | 1 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
format_to_parts: called CC=3 SCAR=11.4
Pod
documented
| |||||||||||||||||||||||||||||
| 104 | 1 | my $self = shift( @_ ); | |||||||||||||||||||||||||||
| 105 | 1 | ▶ | my $name = $self->_name( @_ ) || return( $self->pass_error ); | ||||||||||||||||||||||||||
|
Condition50%1/2
$self->_name(@_) || (return $self->pass_error)
MC/DC0%0/1
$self->_name(@_) || (return $self->pass_error)
$self->_name(@_)
Truth table50%1/2
A
A= $self->_name(@_)
| |||||||||||||||||||||||||||||
| 106 | 1 | ▶ | return( $self->pass_error ) unless( $self->_validate_identity( $name ) ); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 107 | 1 | return( $self->{formatter}->_render_context( $self->{context}, $name, 1 ) ); | |||||||||||||||||||||||||||
| 108 | } | ||||||||||||||||||||||||||||
| 109 | |||||||||||||||||||||||||||||
| 110 | sub formatToParts | ||||||||||||||||||||||||||||
| 111 | 1 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
formatToParts: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 112 | 1 | return( shift->format_to_parts( @_ ) ); | |||||||||||||||||||||||||||
| 113 | } | ||||||||||||||||||||||||||||
| 114 | |||||||||||||||||||||||||||||
| 115 | sub resolved_options | ||||||||||||||||||||||||||||
| 116 | 2 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
resolved_options: called CC=3 SCAR=11.2
Pod
undocumented
| |||||||||||||||||||||||||||||
| 117 | 2 | my $self = shift( @_ ); | |||||||||||||||||||||||||||
| 118 | 2 | my $options = $self->{formatter}->resolved_options; | |||||||||||||||||||||||||||
| 119 | 2 | $options->{nameScript} = $self->{name_script}; | |||||||||||||||||||||||||||
| 120 | $options->{nameLocale} = $self->{name_locale} | ||||||||||||||||||||||||||||
| 121 | 2 | ▶ | if( defined( $self->{name_locale} ) ); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 122 | $options->{preferredOrder} = $self->{preferred_order} | ||||||||||||||||||||||||||||
| 123 | 2 | ▶ | if( defined( $self->{preferred_order} ) ); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 124 | 2 | return( $options ); | |||||||||||||||||||||||||||
| 125 | } | ||||||||||||||||||||||||||||
| 126 | |||||||||||||||||||||||||||||
| 127 | sub resolvedOptions | ||||||||||||||||||||||||||||
| 128 | 2 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
resolvedOptions: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 129 | 2 | return( shift->resolved_options( @_ ) ); | |||||||||||||||||||||||||||
| 130 | } | ||||||||||||||||||||||||||||
| 131 | |||||||||||||||||||||||||||||
| 132 | sub _name | ||||||||||||||||||||||||||||
| 133 | 3 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
_name: called CC=2 SCAR=8.1
| |||||||||||||||||||||||||||||
| 134 | 3 | my $self = shift( @_ ); | |||||||||||||||||||||||||||
| 135 | 3 | ▶ | return( $self->{formatter}->_coerce_name( @_ ) || $self->pass_error( $self->{formatter}->error ) ); | ||||||||||||||||||||||||||
|
Condition33%1/3
$self->{'formatter'}->_coerce_name(@_) || $self->pass_error($self->{'formatter'}->error)
MC/DC0%0/2
$self->{'formatter'}->_coerce_name(@_) || $self->pass_error($self->{'formatter'}->error)
$self->{'formatter'}->_coerce_name(@_)
$self->pass_error($self->{'formatter'}->error)
Truth table33%1/3
A || B
A= $self->{'formatter'}->_coerce_name(@_)B= $self->pass_error($self->{'formatter'}->error)
| |||||||||||||||||||||||||||||
| 136 | } | ||||||||||||||||||||||||||||
| 137 | |||||||||||||||||||||||||||||
| 138 | sub _validate_identity | ||||||||||||||||||||||||||||
| 139 | 3 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
_validate_identity: called CC=9 SCAR=29.0
| |||||||||||||||||||||||||||||
| 140 | 3 | my $self = shift( @_ ); | |||||||||||||||||||||||||||
| 141 | 3 | my $name = shift( @_ ); | |||||||||||||||||||||||||||
| 142 | 3 | my $script = $self->{formatter}->_detected_script( $name ); | |||||||||||||||||||||||||||
| 143 | 3 | ▶ | unless( $self->{formatter}->_scripts_match( $script, $self->{name_script} ) ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 144 | { | ||||||||||||||||||||||||||||
| 145 | 1 | return( $self->error( "The compiled formatter expects nameScript '$self->{name_script}', but the supplied name uses '$script'." ) ); | |||||||||||||||||||||||||||
| 146 | } | ||||||||||||||||||||||||||||
| 147 | |||||||||||||||||||||||||||||
| 148 | 2 | ▶ | if( defined( $self->{name_locale} ) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $self->{"name_locale"} and length qq[$self->{"name_locale"}]
MC/DC0%0/2
defined $self->{"name_locale"} and length qq[$self->{"name_locale"}]
defined $self->{"name_locale"}
length qq[$self->{"name_locale"}]
Truth table33%1/3
A and B
A= defined $self->{"name_locale"}B= length qq[$self->{"name_locale"}]
| |||||||||||||||||||||||||||||
| 149 | length( "$self->{name_locale}" ) ) | ||||||||||||||||||||||||||||
| 150 | { | ||||||||||||||||||||||||||||
| 151 | 2 | my $actual = $name->name_locale; | |||||||||||||||||||||||||||
| 152 | 2 | ▶ | if( !defined( $actual ) || lc( "$actual" ) ne lc( "$self->{name_locale}" ) ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $actual or lc "$actual" ne lc qq[$self->{"name_locale"}]
MC/DC0%0/2
not defined $actual or lc "$actual" ne lc qq[$self->{"name_locale"}]
not defined $actual
lc "$actual" ne lc qq[$self->{"name_locale"}]
Truth table33%1/3
not(A) or B
A= not defined $actualB= lc "$actual" ne lc qq[$self->{"name_locale"}]
| |||||||||||||||||||||||||||||
| 153 | { | ||||||||||||||||||||||||||||
| 154 | 0 | return( $self->error( "The compiled formatter requires nameLocale '$self->{name_locale}'." ) ); | |||||||||||||||||||||||||||
| 155 | } | ||||||||||||||||||||||||||||
| 156 | } | ||||||||||||||||||||||||||||
| 157 | 2 | ▶ | if( defined( $self->{preferred_order} ) ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 158 | { | ||||||||||||||||||||||||||||
| 159 | 0 | my $actual = $name->preferred_order; | |||||||||||||||||||||||||||
| 160 | 0 | ▶ | if( !defined( $actual ) || $actual ne $self->{preferred_order} ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
not defined $actual or $actual ne $self->{"preferred_order"}
MC/DC0%0/2
not defined $actual or $actual ne $self->{"preferred_order"}
not defined $actual
$actual ne $self->{"preferred_order"}
Truth table0%0/3
not(A) or B
A= not defined $actualB= $actual ne $self->{"preferred_order"}
| |||||||||||||||||||||||||||||
| 161 | { | ||||||||||||||||||||||||||||
| 162 | 0 | return( $self->error( "The compiled formatter requires preferredOrder '$self->{preferred_order}'." ) ); | |||||||||||||||||||||||||||
| 163 | } | ||||||||||||||||||||||||||||
| 164 | } | ||||||||||||||||||||||||||||
| 165 | 2 | return(1); | |||||||||||||||||||||||||||
| 166 | } | ||||||||||||||||||||||||||||
| 167 | |||||||||||||||||||||||||||||
| 168 | # NOTE: PersonName::Format::Compiled::IdentityName class | ||||||||||||||||||||||||||||
| 169 | package PersonName::Format::Compiled::IdentityName; | ||||||||||||||||||||||||||||
| 170 | BEGIN | ||||||||||||||||||||||||||||
| 171 | { | ||||||||||||||||||||||||||||
| 172 | 13 | ▶ | use v5.10.1; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 173 | 13 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 174 | 13 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 175 | 13 | ▶ | use parent qw( PersonName::Format::Name ); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 176 | 13 | ▶ | use Locale::Unicode; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: not called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 177 | }; | ||||||||||||||||||||||||||||
| 178 | |||||||||||||||||||||||||||||
| 179 | 13 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 180 | 13 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 181 | |||||||||||||||||||||||||||||
| 182 | sub init | ||||||||||||||||||||||||||||
| 183 | 1 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
init: called CC=6 SCAR=20.5
| |||||||||||||||||||||||||||||
| 184 | 1 | my $self = shift( @_ ); | |||||||||||||||||||||||||||
| 185 | 1 | my $args = $self->_get_args_as_hash( @_ ); | |||||||||||||||||||||||||||
| 186 | 1 | ▶ | $self->SUPER::init || return( $self->pass_error ); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 187 | 1 | ▶ | if( defined( $args->{name_locale} ) && length( "$args->{name_locale}" ) ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $args->{"name_locale"} and length qq[$args->{"name_locale"}]
MC/DC0%0/2
defined $args->{"name_locale"} and length qq[$args->{"name_locale"}]
defined $args->{"name_locale"}
length qq[$args->{"name_locale"}]
Truth table33%1/3
A and B
A= defined $args->{"name_locale"}B= length qq[$args->{"name_locale"}]
| |||||||||||||||||||||||||||||
| 188 | { | ||||||||||||||||||||||||||||
| 189 | 1 | ▶ | $self->{name_locale} = Locale::Unicode->new( $args->{name_locale} ) || | ||||||||||||||||||||||||||
|
Condition50%1/2
'Locale::Unicode'->new($args->{'name_locale'}) || (return $self->pass_error('Locale::Unicode'->error))
MC/DC0%0/1
'Locale::Unicode'->new($args->{'name_locale'}) || (return $self->pass_error('Locale::Unicode'->error))
'Locale::Unicode'->new($args->{'name_locale'})
Truth table50%1/2
A
A= 'Locale::Unicode'->new($args->{'name_locale'})
| |||||||||||||||||||||||||||||
| 190 | return( $self->pass_error( Locale::Unicode->error ) ); | ||||||||||||||||||||||||||||
| 191 | } | ||||||||||||||||||||||||||||
| 192 | 1 | ▶ | if( defined( $args->{preferred_order} ) ) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 193 | { | ||||||||||||||||||||||||||||
| 194 | 0 | $self->{preferred_order} = $args->{preferred_order}; | |||||||||||||||||||||||||||
| 195 | } | ||||||||||||||||||||||||||||
| 196 | 1 | return( $self ); | |||||||||||||||||||||||||||
| 197 | } | ||||||||||||||||||||||||||||
| 198 | |||||||||||||||||||||||||||||
| 199 | sub get_field_value | ||||||||||||||||||||||||||||
| 200 | 0 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
get_field_value: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 201 | 0 | return; | |||||||||||||||||||||||||||
| 202 | } | ||||||||||||||||||||||||||||
| 203 | |||||||||||||||||||||||||||||
| 204 | 13 | 1; | |||||||||||||||||||||||||||
| 205 | # NOTE: POD | ||||||||||||||||||||||||||||
| 206 | __END__ | ||||||||||||||||||||||||||||