qtil
advanced-security/qtil-swift 0.0.3
Search

Predicate unescapeSingleQuote

Unwrap a string with single quotes, removing the single quotes and any escape characters.

For instance, unescapeSingleQuote("'foo'") = "foo", and unescapeSingleQuote("'foo\\'bar'") = "foo'bar".

Does not hold for any result value in the case where the string is not single quoted.

Import path

import qtil.strings.Escape
string unescapeSingleQuote(string str)