Transform
reverse
The 'reverse' methods reverse the order of characters in a string:
extension
The 'reverse' method is available as an extension to the String class.
toEscaped
The 'toEscaped' escapes the following characters by proceeding them with a leading '\'
tab
newline
carriage return
"
'
$
If null is passed the 'string' is treated as an empty string and an empty string is returned.
The 'encode' function allows you to encode additional characters. As the string is escaped, 'encode' will be called for each character (except for the noted list above) allowing you to return an alternate encoding for that character.
extension
The toEscaped method is available as an extension method on the String class.
toPrintable
The 'toPrintable' escapes the following characters by proceeding them with a leading '\'
tab
newline
carriage return
If null is passed the 'string' is treated as an empty string and an empty string is returned.
extension
The toPrintable method is available as an extension method on the String class.
toUnicode
The 'toUnicode' returns a unicode representation of the charCode.
If null is passed an empty string is returned.
Last updated