Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atoomic/xstring
standalone module providing the B::perlstring helper
https://github.com/atoomic/xstring
Last synced: 2 months ago
JSON representation
standalone module providing the B::perlstring helper
- Host: GitHub
- URL: https://github.com/atoomic/xstring
- Owner: atoomic
- Created: 2019-08-12T15:59:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-17T20:59:27.000Z (over 1 year ago)
- Last Synced: 2024-10-13T11:34:41.882Z (3 months ago)
- Language: Perl
- Size: 138 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# NAME
XString - Isolated String helpers from B
# VERSION
version 0.006
# SYNOPSIS
```perl
#!perluse 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](https://metacpan.org/pod/B) string helpers in one isolated package.
Right now only [cstring](https://metacpan.org/pod/cstring) and [perlstring](https://metacpan.org/pod/perlstring) are available.[![](https://github.com/atoomic/XString/workflows/linux/badge.svg)](https://github.com/atoomic/XString/actions) [![](https://github.com/atoomic/XString/workflows/macos/badge.svg)](https://github.com/atoomic/XString/actions) [![](https://github.com/atoomic/XString/workflows/windows/badge.svg)](https://github.com/atoomic/XString/actions)
# 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.# AUTHOR
Nicolas R
# 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.