Skip to content

atoomic/XString

Repository files navigation

NAME

XString - Isolated String helpers from B

VERSION

version 0.006

SYNOPSIS

#!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;

DESCRIPTION

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

CI

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.

AI POLICY

This project uses AI tools to assist development. Humans review and approve every change before it is merged. See AI_POLICY.md for details.

AUTHOR

Nicolas R atoomic@cpan.org

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by cPanel, Inc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

About

standalone module providing the B::perlstring helper

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages