361 |
$line++; |
$line++; |
362 |
$column = 0; |
$column = 0; |
363 |
} elsif ($self->{next_input_character} == 0x000D) { # CR |
} elsif ($self->{next_input_character} == 0x000D) { # CR |
364 |
if ($i >= length $$s) { |
$i++ if substr ($$s, $i, 1) eq "\x0A"; |
|
# |
|
|
} else { |
|
|
my $next_char = ord substr $$s, $i++, 1; |
|
|
if ($next_char == 0x000A) { # LF |
|
|
# |
|
|
} else { |
|
|
push @{$self->{char}}, $next_char; |
|
|
} |
|
|
} |
|
365 |
$self->{next_input_character} = 0x000A; # LF # MUST |
$self->{next_input_character} = 0x000A; # LF # MUST |
366 |
$line++; |
$line++; |
367 |
$column = 0; |
$column = 0; |
4950 |
$line++; |
$line++; |
4951 |
$column = 0; |
$column = 0; |
4952 |
} elsif ($self->{next_input_character} == 0x000D) { # CR |
} elsif ($self->{next_input_character} == 0x000D) { # CR |
4953 |
if ($i >= length $$s) { |
$i++ if substr ($$s, $i, 1) eq "\x0A"; |
|
# |
|
|
} else { |
|
|
my $next_char = ord substr $$s, $i++, 1; |
|
|
if ($next_char == 0x000A) { # LF |
|
|
# |
|
|
} else { |
|
|
push @{$self->{char}}, $next_char; |
|
|
## TODO: This is incorrect, since $next_char might be e.g. CR. |
|
|
} |
|
|
} |
|
4954 |
$self->{next_input_character} = 0x000A; # LF # MUST |
$self->{next_input_character} = 0x000A; # LF # MUST |
4955 |
$line++; |
$line++; |
4956 |
$column = 0; |
$column = 0; |