Revision d5d5779f
Von Moritz Bunkus vor mehr als 14 Jahren hinzugefügt
locale/de/locales.pl | ||
---|---|---|
531 | 531 |
} |
532 | 532 |
|
533 | 533 |
sub unescape_template_string { |
534 |
my $in = shift; |
|
535 |
my $out = ''; |
|
536 |
my $escaped = 0; |
|
537 |
|
|
538 |
foreach my $char (split m//, $in) { |
|
539 |
if ($escaped) { |
|
540 |
$out .= $char; |
|
541 |
$escaped = 0; |
|
542 |
} elsif ($char eq '\\') { |
|
543 |
$escaped = 1; |
|
544 |
} else { |
|
545 |
$out .= $char; |
|
546 |
} |
|
547 |
} |
|
548 |
|
|
549 |
return $out; |
|
534 |
my $in = "$_[0]"; |
|
535 |
$in =~ s/\\(.)/$1/g; |
|
536 |
return $in; |
|
550 | 537 |
} |
551 | 538 |
|
552 | 539 |
sub scanhtmlfile { |
Auch abrufbar als: Unified diff
Regex FTW!