XString(3pm)

XString3pm

Isolated string helpers from b

Usage

 #!perl
 
 use strict;
 use warnings;
 
 use Test::More;
 
 use XString;
 use B;
 
 is XString::cstring( q[a'string"with quotes] ), B::cstring( q[a'string"with quotes] ), q["a'string\"with quotes"];
 is XString::perlstring( q[a'string"with quotes] ), B::perlstring( q[a'string"with quotes] ), q["a'string\"with quotes"];
 
 done_testing;

Version

version 0.005

Overview

XString provides the B string helpers in one isolated package. Right now only cstring and perlstring are available.

Functions

cstring(STR)

Similar to B::cstring; Returns a double-quote-surrounded escaped version of STR which can be used as a string in C source code.

perlstring(STR)

Similar to B::perlstring; Returns a double-quote-surrounded escaped version of STR which can be used as a string in Perl source code.

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

Nicolas R <[email protected]>

From libxstring-perl 0.005-2+b4 in Debian 13 (Trixie). Parsed by carta from the page's man source.