Functions related to IRC colouring and formatting; mapping it to ANSI terminal such, stripping it, etc.
IRC colours are not in the standard per se, but there is a de-facto standard based on the mIRC coluring syntax of \3fg,bg...\3, where '\3' is byte 3, fg is a foreground colour number (of IRCColour) and bg is a similar background colour number.
Official mIRC colour table.
Returns the passed something wrapped in between IRC bold control characters.
Colour-codes the passed string with mIRC colouring, foreground and background. Direct overload that leverages the output range version to colour an internal Appender, and returns the resulting string.
Returns a mIRC colour code for the passed foreground and background colour. Overload that doesn't take a string to tint, only the IRCColours to produce a colour code from.
Returns the passed string coloured with an IRC colour depending on the hash of the string, making for good "random" (uniformly distributed) nick colours in IRC messages.
Colour-codes the passed string with mIRC colouring, foreground and background. Takes an output range sink and writes to it instead of allocating a new string.
Returns the passed something wrapped in between IRC italics control characters.
Returns an IRC formatting reset token.
Returns the passed something wrapped in between IRC underlined control characters.
Maps mIRC effect colour tokens to terminal ones.
Maps mIRC effect colour tokens to terminal ones, or strip them entirely. Now with less regex.
Maps mIRC effect tokens (colour, bold, italics, underlined) to terminal ones.
Replaces mIRC tokens with terminal effect codes, in an alternating fashion so as to support repeated effects toggling behaviour. Now with less regex.
Removes IRC colouring from a passed string.
Removes all form of mIRC formatting (colours, bold, italics, underlined) from a string.
Removes <tags> in an outgoing IRC string where the tags correlate to formatting using IRCControlCharacters.
Map of IRC colour values above 16 to ANSI terminal colours, as per ircdocs.