MarpaX::ESLIF::String - ESLIF String is any string value with encoding attribute
version 4.0.1
MarpaX::ESLIF::String is a string type wrapper that associates an encoding information to the string value. Without this wrapper, only valid perl string having the utf8 flag will be able to transport encoding information to MarpaX::ESLIF.
my $string = 'value'; my $encoding = 'UTF-8'; my $s = MarpaX::ESLIF::String->new($string, $encoding)
$string parameter defaults to the empty string, and $encoding parameter may be undef. In the later case, MarpaX::ESLIF will know you want to say this is a string, and will guess the encoding.
$string
$encoding
$s overloads by default as if it was $string.
$s
Returns the string value.
Returns the associated encoding.
MarpaX::ESLIF, Encode
Jean-Damien Durand <jeandamiendurand@free.fr>
This software is copyright (c) 2017 by Jean-Damien Durand.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install MarpaX::ESLIF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MarpaX::ESLIF
CPAN shell
perl -MCPAN -e shell install MarpaX::ESLIF
For more information on module installation, please visit the detailed CPAN module installation guide.