30 return (str.size() >= 8) && ((str.substr(0,7) ==
"http://") || (str.substr(0,8) ==
"https://"));
34 return "<span underline=\'single\' color=\'" + color.
to_hex_string() +
"\'>" + link +
"</span>";
bool looks_like_url(std::string_view str)
std::string format_as_link(const std::string &link, color_t color)
The basic class for representing 8-bit RGB or RGBA colour values.
std::string to_hex_string() const
Returns the stored color in rrggbb hex format.