![]() |
Communi
1.1.0
A cross-platform IRC client library written with Qt 4
|
The IrcUtil class provides miscellaneous utility functions. More...
#include <IrcUtil>
Static Public Member Functions | |
| static QString | colorCodeToName (int code, const QString &defaultColor=QLatin1String("black")) |
| static QString | messageToHtml (const QString &message) |
The IrcUtil class provides miscellaneous utility functions.
|
static |
Converts a color code to a color name. If the color code is unknown, the function returns defaultColor.
|
static |
Converts message to HTML. This function parses the message and replaces IRC-style formatting like colors, bold and underline to the corresponding HTML formatting. Furthermore, this function detects URLs and replaces them with appropriate HTML hyperlinks.
1.8.1.1