Function escape_rune

Function Documentation

string escape_rune(string dest, rune ch)

Given a rune, convert it to an ASCII escape sequence.

Return

Slice of dest with correct length.

Parameters
  • [out] dest: Empty string, should be large enough for minimum 4 bytes, plus 1 byte for the NUL-terminator.

  • [in] ch: The UCS-4 rune to convert from.