Core Function StripCSlashes

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(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 .....")
 
m (1 revision)
 
(One intermediate revision by one user not shown)

Latest revision as of 12:37, 14 June 2015

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