litrs

Module escape

source

Traitsยง

Functionsยง

  • Checks whether the character is skipped after a string continue start (unescaped backlash followed by \n).
  • scan_raw_string ๐Ÿ”’
    Reads and checks a raw (byte) string literal, converting \r\n sequences to just \n sequences. Returns an optional new string (if the input contained any \r\n) and the number of hashes used by the literal.
  • unescape ๐Ÿ”’
    Must start with \
  • unescape_string ๐Ÿ”’
    Unescapes a whole string or byte string.