Core Function StripCSlashes

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(Created page with "<pre> StripCSlashes( <str> ) </pre> === Description === Unescape string escaped with AddCSlashes(). Returns a string with backslashes stripped off. Recognizes C-like \n, \r .....")
Newer edit →

Revision as of 17:30, 13 September 2013

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