litrs

Module escape

Source

Traits§

Functions§

  • Checks whether the character is skipped after a string continue start (unescaped backlash followed by \n).
  • 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 \
  • Unescapes a whole string or byte string.