debian man page for je::string

Query: je::string

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

JE::String(3pm) 					User Contributed Perl Documentation					   JE::String(3pm)

NAME
JE::String - JavaScript string value
SYNOPSIS
use JE; use JE::String; $j = JE->new; $js_str = new JE::String $j, "etetfyoyfoht"; $perl_str = $js_str->value; $js_str->to_object; # retuns a new JE::String::Object;
DESCRIPTION
This class implements JavaScript string values for JE. The difference in use between this and JE::Object::String is that that module implements string objects, while this module implements the primitive values. The stringification operator is overloaded.
THE FUNCTION
There are two exportable functions, "surrogify" and "desurrogify", which convert characters outside the BMP into surrogate pairs, and convert surrogate pairs in the string input argument into the characters they represent, respectively, and return the modified string. E.g.: use JE::String qw 'desurrogify surrogify'; { no warnings 'utf8'; $str = "x{d834}x{dd2b}"; } $str = desurrogify $str; # $str now contains "x{1d12b}" (double flat) $str = surrogify $str; # back to "x{d834}x{dd2b}"
SEE ALSO
JE JE::Types JE::Object::String perl v5.14.2 2012-03-18 JE::String(3pm)
Related Man Pages
io::string5.18(3) - mojave
io::string(3) - suse
class::meta::types::string(3pm) - debian
html::microformats::datatype::string(3pm) - debian
log::agent::tag::string(3pm) - debian
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
Is UNIX an open source OS ?
A (ksh) Library For and From UNIX.com
How to copy a column of multiple files and paste into new excel file (next to column)?
My first PERL incarnation... Audio Oscillograph