Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

JE::String
JavaScript string value

JE::String - JavaScript string value


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 is one exportable function, desurrogify, which will convert surrogate pairs in its string input argument into the characters they represent, and return the modified string. E.g.:


  use JE::String 'desurrogify';

  

  {

          no warnings 'utf8';

          $str = "\x{d834}\x{dd2b}";

  }

  $str = desurrogify $str;  # $str now contains "\x{1d12b}" (double flat)


SEE ALSO

JE
the JE::Types manpage
the JE::Object::String manpage
Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy