Core Function StripCSlashes

From Sputnik Wiki
Jump to: navigation, search
StripCSlashes( <str> )

Contents

Description

Unescape string escaped with AddCSlashes().

Returns a string with backslashes stripped off. Recognizes C-like \n, \r ..., octal and hexadecimal representation.

Parameters

str

The string to be unescaped.

Return Value

Returns the unescaped string.

Remarks

See AddCSlashes( <str>, <charlist> ).

Example

echo StripCSlashes(@"Hello\nCat\x44");
// Prints
// Hello
// CatD
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox