| 1 | package Parse::AFP::PTX; | ||||||||||
| 2 | 1 | ▶ | use base 'Parse::AFP::Record'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | 1 | ▶ | use constant SUBFORMAT => ( | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | EscapeSequence => 'H4', # 2BD3 | ||||||||||
| 6 | 'PTX::ControlSequence' => ['C/a* X', '*'], | ||||||||||
| 7 | 1 | ); | |||||||||
| 8 | |||||||||||
| 9 | 0 | ▶ | sub _refresh { | ||||||||
|
Subroutine
_refresh: not called CC=3 SCAR=24.8
| |||||||||||
| 10 | 0 | my ($self) = @_; | |||||||||
| 11 | |||||||||||
| 12 | 0 | foreach my $member ($self->members) { | |||||||||
| 13 | 0 | $member->SetControlCode( | |||||||||
| 14 | unpack('H2', pack('H2', $member->ControlCode) | "\x01") | ||||||||||
| 15 | ); | ||||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 0 | ▶ | if (my $last_member = ($self->members)[-1]) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | 0 | $last_member->SetControlCode( | |||||||||
| 20 | unpack('H2', pack('H2', $last_member->ControlCode) ^ "\x01") | ||||||||||
| 21 | ); | ||||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 0 | $self->SUPER::refresh; | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | # sub load_struct { | ||||||||||
| 28 | # XXX - first get the header, then split with 2BD3, | ||||||||||
| 29 | # then do a step-by-step tokenization to make sure | ||||||||||
| 30 | # raw text fields get respected | ||||||||||
| 31 | # } | ||||||||||
| 32 | |||||||||||
| 33 | 1 | 1; | |||||||||