Skip to content
FutureBlitz

    Install

    Import std.text.encoding

    Escape

    std.text.encoding

    function

    Public Function Escape(text: String): String

    text as a FutureBlitz string literal's contents write it, by spec 01's escapes, without the quotes: a backslash, '"', or "'" after a backslash; a tab, line break, carriage return, or NUL as "\t", "\n", "\r", or "\0"; another control character as "\x" and two hex digits, or past U+007F as "\u{...}"; and the rest as it is. A C literal reads them differently: its "\x" takes every hex digit after it, and "\0" before a digit is octal.

    std/text/encoding.fb, line 496

    Report an issue with this page or with FutureBlitz on GitHub.