| 1 | package Locale::Babelfish::Phrase::Node; | ||
| 2 | |||
| 3 | # ABSTRACT: Babelfish AST abstract node. | ||
| 4 | |||
| 5 | 14 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 14 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 14 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 14 | ▶ | use parent qw( Class::Accessor::Fast ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 14 | our $VERSION = '2.13'; # VERSION | |
| 12 | |||
| 13 | |||
| 14 | 419 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 15 | 419 | my ( $class, %args ) = @_; | |
| 16 | 419 | return bless { %args }, $class; | |
| 17 | } | ||
| 18 | |||
| 19 | |||
| 20 | 164 | ▶ | sub to_perl_escaped_str { |
|
Subroutine
to_perl_escaped_str: called CC=1 SCAR=0.0
Pod
documented
| |||
| 21 | 164 | my ( $self, $str ) = @_; | |
| 22 | |||
| 23 | 164 | $str =~ s/\\/\\\\/g; | |
| 24 | 164 | $str =~ s/'/\\'/g; | |
| 25 | 164 | return "'$str'"; | |
| 26 | } | ||
| 27 | |||
| 28 | 14 | 1; | |
| 29 | |||
| 30 | __END__ | ||