JE::Ob...String(3pm)

πŸ“¦
version 0.066 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– JE::Object::String β€” the manual, but make it cute πŸ’–

okay so bestie, welcome to the manual page for JE::Object::String(3pm) β€” straight out of the User Contributed Perl Documentation collection, and honestly? it's giving niche-but-essential. πŸŽ€


✨ NAME ✨

JE::Object::String β€” the JavaScript String object class. πŸ¦‹


🌸 SYNOPSIS 🌸

here's the whole vibe in code, no cap:

use JE;
use JE::Object::String;

$j = new JE;

$js_str_obj = new JE::Object::String $j, "etetfyoyfoht";

$perl_str = $js_str_obj->value;

like, you make a JE, you make a String object with it, you pull the value back out. iconic behaviour honestly. ✨


πŸ’… DESCRIPTION πŸ’…

so here's the tea: this class implements JavaScript String objects for JE.

and the thing you HAVE to understand, bestie, is the difference between this and JE::String: JE::String is the module that implements the primitive string value, while this module β€” JE::Object::String β€” implements the objects. 😀 two different things, two different modules, do not confuse them, iykyk. 🫢


⭐ METHODS ⭐

okay so for most of the methods, go read JE::Types β€” it's got the descriptions. here we're only talking about the stuff that's specific to JE::Object::String, k?

  • value β€” returns a Perl scalar. that's it, that's the whole thing. πŸ’–
  • value16 β€” returns a Perl scalar holding a UTF-16 string β€” meaning if the string has chars outside the BMP, it's got surrogate pairs, fr fr. this one's here more for internal usage than anything else, so don't get too attached. πŸ™ˆ

🌈 SEE ALSO 🌈

go peek at these too, they're all part of the same little family:

  • JE
  • JE::Types
  • JE::String
  • JE::Object

and that's the whole page, bestie!! slay. πŸ’…βœ¨

this was served up courtesy of perl v5.36.0, dated 2023-08-25 β€” periodt. πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from