Module twitch_message::escape
source · Expand description
String escaping helpers
Table of escape mapping:
Character | Sequence in <escaped value> |
---|---|
; (semicolon) | \: (backslash and colon) |
SPACE | \s |
\ | \\ |
CR | \r |
LF | \n |
all others | the 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