| parrotcode: simple string escaping implemented in PIR | |
| Contents | Libraries |

Data::Escape - simple string escaping implemented in PIR

...
load_bytecode "library/Data/Escape.pir"
.local pmc escape
escape = find_global "Data::Escape", "String"
str = escape( str, "'" )
...

This library escapes data to make it usable in PIR and C code.

This library provides the following function:

Jens Rieks <parrot at jensbeimsurfen dot de> is the author and maintainer. Please send patches and suggestions to the Perl 6 Internals mailing list.

Modifications by Jerry Gay to escape backslash and use character class ops.

Copyright (C) 2004, The Perl Foundation.
|
|
|