Module twitch_message::escape

source ·
Expand description

String escaping helpers

Table of escape mapping:

CharacterSequence in <escaped value>
; (semicolon)\: (backslash and colon)
SPACE\s
\\\
CR\r
LF\n
all othersthe character itself

Functions

Escape the string according to IRCv3 Tags
Estimate how much extra bytes you’ll need if you escaped this string
Unescape the string according to IRCv3 Tags