| 1 | package Test::HexDifferences::HexDump; ## no critic (TidyCode) | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 6 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 6 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 6 | our $VERSION = '0.008'; | |||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 6 | ▶ | use Hash::Util qw(lock_keys); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | 6 | ▶ | use Sub::Exporter -setup => { | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | exports => [ | ||||||||||||||||||||||||||||
| 11 | qw(hex_dump), | ||||||||||||||||||||||||||||
| 12 | ], | ||||||||||||||||||||||||||||
| 13 | groups => { | ||||||||||||||||||||||||||||
| 14 | default => [ qw(hex_dump) ], | ||||||||||||||||||||||||||||
| 15 | }, | ||||||||||||||||||||||||||||
| 16 | 6 | }; | |||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | 6 | my $default_format = "%a : %4C : %d\n"; | |||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | 9 | ▶ | sub hex_dump { | ||||||||||||||||||||||||||
|
Subroutine
hex_dump: called CC=7 SCAR=19.5
Pod
documented
| |||||||||||||||||||||||||||||
| 21 | 9 | my ($data, $attr_ref) = @_; | |||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 9 | ▶ | defined $data | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 24 | or return $data; | ||||||||||||||||||||||||||||
| 25 | 9 | ▶ | ref $data | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 26 | and return $data; | ||||||||||||||||||||||||||||
| 27 | 9 | ▶ | $attr_ref | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 28 | = ref $attr_ref eq 'HASH' | ||||||||||||||||||||||||||||
| 29 | ? $attr_ref | ||||||||||||||||||||||||||||
| 30 | : {}; | ||||||||||||||||||||||||||||
| 31 | my $data_pool = { | ||||||||||||||||||||||||||||
| 32 | # global | ||||||||||||||||||||||||||||
| 33 | data => $data, | ||||||||||||||||||||||||||||
| 34 | format => $attr_ref->{format} || "$default_format%*x", | ||||||||||||||||||||||||||||
| 35 | 9 | ▶ | address => $attr_ref->{address} || 0, | ||||||||||||||||||||||||||
|
Condition100%4/4
$attr_ref->{'format'} || "$default_format%*x"
$attr_ref->{'address'} || 0
MC/DC100%1/1
$attr_ref->{'format'} || "$default_format%*x"
$attr_ref->{'format'}
MC/DC100%1/1
$attr_ref->{'address'} || 0
$attr_ref->{'address'}
Truth table100%2/2
A
A= $attr_ref->{'format'}
Truth table100%2/2
A
A= $attr_ref->{'address'}
| |||||||||||||||||||||||||||||
| 36 | output => q{}, | ||||||||||||||||||||||||||||
| 37 | # to format a block | ||||||||||||||||||||||||||||
| 38 | format_block => undef, | ||||||||||||||||||||||||||||
| 39 | data_length => undef, | ||||||||||||||||||||||||||||
| 40 | is_multibyte_error => undef, | ||||||||||||||||||||||||||||
| 41 | }; | ||||||||||||||||||||||||||||
| 42 | 9 | lock_keys %{$data_pool}; | |||||||||||||||||||||||||||
| 43 | BLOCK: | ||||||||||||||||||||||||||||
| 44 | 9 | ▶ | while ( length $data_pool->{data} ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 45 | 20 | _next_format($data_pool); | |||||||||||||||||||||||||||
| 46 | 20 | _format_items($data_pool); | |||||||||||||||||||||||||||
| 47 | } | ||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||
| 49 | 9 | return $data_pool->{output}; | |||||||||||||||||||||||||||
| 50 | } | ||||||||||||||||||||||||||||
| 51 | |||||||||||||||||||||||||||||
| 52 | 26 | ▶ | sub _next_format { | ||||||||||||||||||||||||||
|
Subroutine
_next_format: called CC=5 SCAR=16.1
| |||||||||||||||||||||||||||||
| 53 | 26 | my $data_pool = shift; | |||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||
| 55 | 26 | my $is_match = $data_pool->{format} =~ s{ | |||||||||||||||||||||||||||
| 56 | \A | ||||||||||||||||||||||||||||
| 57 | ( .*? [^%] ) # format of the block | ||||||||||||||||||||||||||||
| 58 | % ( 0* [1-9] \d* | [*] ) x # repetition factor | ||||||||||||||||||||||||||||
| 59 | } { | ||||||||||||||||||||||||||||
| 60 | 25 | ▶ | my $new_count = $2 eq q{*} ? q{*} : $2 - 1; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 61 | 25 | $data_pool->{format_block} = $1; | |||||||||||||||||||||||||||
| 62 | 25 | ▶ | $new_count | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 63 | ? "$1\%${new_count}x" | ||||||||||||||||||||||||||||
| 64 | : q{}; | ||||||||||||||||||||||||||||
| 65 | }xmse; | ||||||||||||||||||||||||||||
| 66 | 26 | ▶ | if ( $data_pool->{is_multibyte_error} || ! $is_match ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$data_pool->{"is_multibyte_error"} or not $is_match
MC/DC50%1/2
$data_pool->{"is_multibyte_error"} or not $is_match
$data_pool->{"is_multibyte_error"}
not $is_match
Truth table66%2/3
A or not(B)
A= $data_pool->{"is_multibyte_error"}B= not $is_match
| |||||||||||||||||||||||||||||
| 67 | 1 | $data_pool->{format} = "$default_format%*x"; | |||||||||||||||||||||||||||
| 68 | 1 | $data_pool->{format_block} = $default_format; | |||||||||||||||||||||||||||
| 69 | 1 | $data_pool->{is_multibyte_error} = 0; | |||||||||||||||||||||||||||
| 70 | 1 | return; | |||||||||||||||||||||||||||
| 71 | } | ||||||||||||||||||||||||||||
| 72 | |||||||||||||||||||||||||||||
| 73 | 25 | return; | |||||||||||||||||||||||||||
| 74 | } | ||||||||||||||||||||||||||||
| 75 | |||||||||||||||||||||||||||||
| 76 | 20 | ▶ | sub _format_items { | ||||||||||||||||||||||||||
|
Subroutine
_format_items: called CC=8 SCAR=21.1
| |||||||||||||||||||||||||||||
| 77 | 20 | my $data_pool = shift; | |||||||||||||||||||||||||||
| 78 | |||||||||||||||||||||||||||||
| 79 | 20 | $data_pool->{data_length} = 0; | |||||||||||||||||||||||||||
| 80 | RUN: { | ||||||||||||||||||||||||||||
| 81 | # % written as %% | ||||||||||||||||||||||||||||
| 82 | 20 | ▶ | $data_pool->{format_block} =~ s{ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 83 | \A % ( % ) | ||||||||||||||||||||||||||||
| 84 | } { | ||||||||||||||||||||||||||||
| 85 | 0 | do { | |||||||||||||||||||||||||||
| 86 | 0 | $data_pool->{output} .= $1; | |||||||||||||||||||||||||||
| 87 | 0 | q{}; | |||||||||||||||||||||||||||
| 88 | } | ||||||||||||||||||||||||||||
| 89 | }xmse and redo RUN; | ||||||||||||||||||||||||||||
| 90 | # \n written as %\n will be ignored | ||||||||||||||||||||||||||||
| 91 | 246 | ▶ | $data_pool->{format_block} =~ s{ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 92 | \A % [\n] | ||||||||||||||||||||||||||||
| 93 | }{}xms and redo RUN; | ||||||||||||||||||||||||||||
| 94 | # address | ||||||||||||||||||||||||||||
| 95 | 238 | ▶ | _format_address($data_pool) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 96 | and redo RUN; | ||||||||||||||||||||||||||||
| 97 | # words | ||||||||||||||||||||||||||||
| 98 | 218 | ▶ | _format_word($data_pool) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 99 | and redo RUN; | ||||||||||||||||||||||||||||
| 100 | # display ASCII | ||||||||||||||||||||||||||||
| 101 | 192 | ▶ | _format_ascii($data_pool) | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 102 | and redo RUN; | ||||||||||||||||||||||||||||
| 103 | # display any other char | ||||||||||||||||||||||||||||
| 104 | 181 | ▶ | $data_pool->{format_block} =~ s{ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 105 | \A (.) | ||||||||||||||||||||||||||||
| 106 | } { | ||||||||||||||||||||||||||||
| 107 | 161 | do { | |||||||||||||||||||||||||||
| 108 | 161 | $data_pool->{output} .= $1; | |||||||||||||||||||||||||||
| 109 | 161 | q{}; | |||||||||||||||||||||||||||
| 110 | } | ||||||||||||||||||||||||||||
| 111 | }xmse and redo RUN; | ||||||||||||||||||||||||||||
| 112 | 20 | ▶ | if ( $data_pool->{data_length} ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 113 | # clear already displayed data | ||||||||||||||||||||||||||||
| 114 | 20 | substr $data_pool->{data}, 0, $data_pool->{data_length}, q{}; | |||||||||||||||||||||||||||
| 115 | 20 | $data_pool->{data_length} = 0; | |||||||||||||||||||||||||||
| 116 | } | ||||||||||||||||||||||||||||
| 117 | } | ||||||||||||||||||||||||||||
| 118 | |||||||||||||||||||||||||||||
| 119 | 20 | return; | |||||||||||||||||||||||||||
| 120 | } | ||||||||||||||||||||||||||||
| 121 | |||||||||||||||||||||||||||||
| 122 | 238 | ▶ | sub _format_address { | ||||||||||||||||||||||||||
|
Subroutine
_format_address: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 123 | 238 | my $data_pool = shift; | |||||||||||||||||||||||||||
| 124 | |||||||||||||||||||||||||||||
| 125 | 238 | return $data_pool->{format_block} =~ s{ | |||||||||||||||||||||||||||
| 126 | \A % ( 0* [48]? ) a | ||||||||||||||||||||||||||||
| 127 | } { | ||||||||||||||||||||||||||||
| 128 | 20 | do { | |||||||||||||||||||||||||||
| 129 | 20 | ▶ | my $length = $1 || 4; | ||||||||||||||||||||||||||
|
Condition100%2/2
$1 || 4
MC/DC100%1/1
$1 || 4
$1
Truth table100%2/2
A
A= $1
| |||||||||||||||||||||||||||||
| 130 | $data_pool->{output} | ||||||||||||||||||||||||||||
| 131 | 20 | .= sprintf "%0${length}X", $data_pool->{address}; | |||||||||||||||||||||||||||
| 132 | 20 | q{}; | |||||||||||||||||||||||||||
| 133 | } | ||||||||||||||||||||||||||||
| 134 | }xmse; | ||||||||||||||||||||||||||||
| 135 | } | ||||||||||||||||||||||||||||
| 136 | |||||||||||||||||||||||||||||
| 137 | 6 | my $big_endian = q{>}; | |||||||||||||||||||||||||||
| 138 | 6 | my $little_endian = q{<}; | |||||||||||||||||||||||||||
| 139 | 6 | my $machine_endian | |||||||||||||||||||||||||||
| 140 | = ( pack 'S', 1 ) eq ( pack 'n', 1 ) | ||||||||||||||||||||||||||||
| 141 | ? $big_endian # network order | ||||||||||||||||||||||||||||
| 142 | : $little_endian; | ||||||||||||||||||||||||||||
| 143 | 6 | my %format_of = ( | |||||||||||||||||||||||||||
| 144 | 'C' => { # unsigned char | ||||||||||||||||||||||||||||
| 145 | bytes => 1, | ||||||||||||||||||||||||||||
| 146 | endian => $big_endian, | ||||||||||||||||||||||||||||
| 147 | }, | ||||||||||||||||||||||||||||
| 148 | 'S' => { # unsigned 16-bit, endian depends on machine | ||||||||||||||||||||||||||||
| 149 | bytes => 2, | ||||||||||||||||||||||||||||
| 150 | endian => $machine_endian, | ||||||||||||||||||||||||||||
| 151 | }, | ||||||||||||||||||||||||||||
| 152 | 'S<' => { # unsigned 16-bit, little-endian | ||||||||||||||||||||||||||||
| 153 | bytes => 2, | ||||||||||||||||||||||||||||
| 154 | endian => $little_endian, | ||||||||||||||||||||||||||||
| 155 | }, | ||||||||||||||||||||||||||||
| 156 | 'S>' => { # unsigned 16-bit, big-endian | ||||||||||||||||||||||||||||
| 157 | bytes => 2, | ||||||||||||||||||||||||||||
| 158 | endian => $big_endian, | ||||||||||||||||||||||||||||
| 159 | }, | ||||||||||||||||||||||||||||
| 160 | 'v' => { # unsigned 16-bit, little-endian | ||||||||||||||||||||||||||||
| 161 | bytes => 2, | ||||||||||||||||||||||||||||
| 162 | endian => $little_endian, | ||||||||||||||||||||||||||||
| 163 | }, | ||||||||||||||||||||||||||||
| 164 | 'n' => { # unsigned 16-bit, big-endian | ||||||||||||||||||||||||||||
| 165 | bytes => 2, | ||||||||||||||||||||||||||||
| 166 | endian => $big_endian, | ||||||||||||||||||||||||||||
| 167 | }, | ||||||||||||||||||||||||||||
| 168 | 'L' => { # unsigned 32-bit, endian depends on machine | ||||||||||||||||||||||||||||
| 169 | bytes => 4, | ||||||||||||||||||||||||||||
| 170 | endian => $machine_endian, | ||||||||||||||||||||||||||||
| 171 | }, | ||||||||||||||||||||||||||||
| 172 | 'L<' => { # unsigned 32-bit, little-endian | ||||||||||||||||||||||||||||
| 173 | bytes => 4, | ||||||||||||||||||||||||||||
| 174 | endian => $little_endian, | ||||||||||||||||||||||||||||
| 175 | }, | ||||||||||||||||||||||||||||
| 176 | 'L>' => { # unsigned 32-bit, big-endian | ||||||||||||||||||||||||||||
| 177 | bytes => 4, | ||||||||||||||||||||||||||||
| 178 | endian => $big_endian, | ||||||||||||||||||||||||||||
| 179 | }, | ||||||||||||||||||||||||||||
| 180 | 'V' => { # unsigned 32-bit, little-endian | ||||||||||||||||||||||||||||
| 181 | bytes => 4, | ||||||||||||||||||||||||||||
| 182 | endian => $little_endian, | ||||||||||||||||||||||||||||
| 183 | }, | ||||||||||||||||||||||||||||
| 184 | 'N' => { # unsigned 32-bit, big-endian | ||||||||||||||||||||||||||||
| 185 | bytes => 4, | ||||||||||||||||||||||||||||
| 186 | endian => $big_endian, | ||||||||||||||||||||||||||||
| 187 | }, | ||||||||||||||||||||||||||||
| 188 | 'Q' => { # unsigned 64-bit, endian depends on machine | ||||||||||||||||||||||||||||
| 189 | bytes => 8, | ||||||||||||||||||||||||||||
| 190 | endian => $machine_endian, | ||||||||||||||||||||||||||||
| 191 | }, | ||||||||||||||||||||||||||||
| 192 | 'Q<' => { # unsigned 64-bit, little-endian | ||||||||||||||||||||||||||||
| 193 | bytes => 8, | ||||||||||||||||||||||||||||
| 194 | endian => $little_endian, | ||||||||||||||||||||||||||||
| 195 | }, | ||||||||||||||||||||||||||||
| 196 | 'Q>' => { # unsigned 64-bit, big-endian | ||||||||||||||||||||||||||||
| 197 | bytes => 8, | ||||||||||||||||||||||||||||
| 198 | endian => $big_endian, | ||||||||||||||||||||||||||||
| 199 | }, | ||||||||||||||||||||||||||||
| 200 | ); | ||||||||||||||||||||||||||||
| 201 | |||||||||||||||||||||||||||||
| 202 | 218 | ▶ | sub _format_word { | ||||||||||||||||||||||||||
|
Subroutine
_format_word: called CC=5 SCAR=16.1
| |||||||||||||||||||||||||||||
| 203 | 218 | my $data_pool = shift; | |||||||||||||||||||||||||||
| 204 | |||||||||||||||||||||||||||||
| 205 | 218 | return $data_pool->{format_block} =~ s{ | |||||||||||||||||||||||||||
| 206 | \A | ||||||||||||||||||||||||||||
| 207 | % ( 0* [1-9] \d* )? | ||||||||||||||||||||||||||||
| 208 | ( [LSQ] [<>] | [CVNvnLSQ] ) | ||||||||||||||||||||||||||||
| 209 | } { | ||||||||||||||||||||||||||||
| 210 | 26 | do { | |||||||||||||||||||||||||||
| 211 | my ($byte_length, $endian) | ||||||||||||||||||||||||||||
| 212 | 26 | = @{ $format_of{$2} }{ qw(bytes endian) }; | |||||||||||||||||||||||||||
| 213 | $data_pool->{output} .= join q{ }, map { | ||||||||||||||||||||||||||||
| 214 | 26 | ( | |||||||||||||||||||||||||||
| 215 | length $data_pool->{data} | ||||||||||||||||||||||||||||
| 216 | >= $data_pool->{data_length} + $byte_length | ||||||||||||||||||||||||||||
| 217 | ) | ||||||||||||||||||||||||||||
| 218 | ? do { | ||||||||||||||||||||||||||||
| 219 | my @unpacked | ||||||||||||||||||||||||||||
| 220 | = unpack | ||||||||||||||||||||||||||||
| 221 | q{C} x $byte_length, | ||||||||||||||||||||||||||||
| 222 | substr | ||||||||||||||||||||||||||||
| 223 | $data_pool->{data}, | ||||||||||||||||||||||||||||
| 224 | $data_pool->{data_length}, | ||||||||||||||||||||||||||||
| 225 | 48 | $byte_length; | |||||||||||||||||||||||||||
| 226 | 48 | ▶ | if ( $endian eq q{<} ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 227 | 8 | @unpacked = reverse @unpacked; | |||||||||||||||||||||||||||
| 228 | } | ||||||||||||||||||||||||||||
| 229 | 48 | my $hex = sprintf | |||||||||||||||||||||||||||
| 230 | '%02X' x $byte_length, | ||||||||||||||||||||||||||||
| 231 | @unpacked; | ||||||||||||||||||||||||||||
| 232 | 48 | $data_pool->{data_length} += $byte_length; | |||||||||||||||||||||||||||
| 233 | 48 | $data_pool->{address} += $byte_length; | |||||||||||||||||||||||||||
| 234 | 48 | $hex; | |||||||||||||||||||||||||||
| 235 | } | ||||||||||||||||||||||||||||
| 236 | 58 | ▶ | : do { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 237 | 10 | ▶ | if ( $byte_length > 1 ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 238 | 0 | $data_pool->{is_multibyte_error}++; | |||||||||||||||||||||||||||
| 239 | } | ||||||||||||||||||||||||||||
| 240 | 10 | ▶ | q{ } x 2 x $byte_length; | ||||||||||||||||||||||||||
|
Condition100%2/2
$1 || 1
MC/DC100%1/1
$1 || 1
$1
Truth table100%2/2
A
A= $1
| |||||||||||||||||||||||||||||
| 241 | }; | ||||||||||||||||||||||||||||
| 242 | } 1 .. ( $1 || 1 ); | ||||||||||||||||||||||||||||
| 243 | 26 | q{}; | |||||||||||||||||||||||||||
| 244 | } | ||||||||||||||||||||||||||||
| 245 | }xmse; | ||||||||||||||||||||||||||||
| 246 | } | ||||||||||||||||||||||||||||
| 247 | |||||||||||||||||||||||||||||
| 248 | 192 | ▶ | sub _format_ascii { | ||||||||||||||||||||||||||
|
Subroutine
_format_ascii: called CC=3 SCAR=11.0
| |||||||||||||||||||||||||||||
| 249 | 192 | my $data_pool = shift; | |||||||||||||||||||||||||||
| 250 | |||||||||||||||||||||||||||||
| 251 | 192 | return $data_pool->{format_block} =~ s{ | |||||||||||||||||||||||||||
| 252 | \A %d | ||||||||||||||||||||||||||||
| 253 | } { | ||||||||||||||||||||||||||||
| 254 | 11 | do { | |||||||||||||||||||||||||||
| 255 | 11 | my $data = substr $data_pool->{data}, 0, $data_pool->{data_length}; | |||||||||||||||||||||||||||
| 256 | 11 | $data =~ s{ | |||||||||||||||||||||||||||
| 257 | ( ['"\\] ) | ||||||||||||||||||||||||||||
| 258 | | ( [!-~] ) | ||||||||||||||||||||||||||||
| 259 | | . | ||||||||||||||||||||||||||||
| 260 | } { | ||||||||||||||||||||||||||||
| 261 | 32 | ▶ | defined $1 ? q{.} | ||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||
| 262 | : defined $2 ? $2 | ||||||||||||||||||||||||||||
| 263 | : q{.} | ||||||||||||||||||||||||||||
| 264 | }xmsge; | ||||||||||||||||||||||||||||
| 265 | 11 | $data_pool->{output} .= $data; | |||||||||||||||||||||||||||
| 266 | 11 | q{}; | |||||||||||||||||||||||||||
| 267 | } | ||||||||||||||||||||||||||||
| 268 | }xmse; | ||||||||||||||||||||||||||||
| 269 | } | ||||||||||||||||||||||||||||
| 270 | |||||||||||||||||||||||||||||
| 271 | # $Id$ | ||||||||||||||||||||||||||||
| 272 | |||||||||||||||||||||||||||||
| 273 | 6 | 1; | |||||||||||||||||||||||||||
| 274 | |||||||||||||||||||||||||||||
| 275 | __END__ | ||||||||||||||||||||||||||||