Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
colorize.h File Reference
#include <string>
#include "config.h"
+ Include dependency graph for colorize.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COLOR_CODE(color)   "\x1b(c@" color ")"
 

Functions

std::string colorize_url (const std::string &url)
 Colorize URL to highlight the hostname and any unsafe characters.
 

Macro Definition Documentation

◆ COLOR_CODE

#define COLOR_CODE (   color)    "\x1b(c@" color ")"

Function Documentation

◆ colorize_url()

std::string colorize_url ( const std::string &  url)

Colorize URL to highlight the hostname and any unsafe characters.

Throws an exception if the url is invalid

References COLOR_CODE.

Referenced by GUIOpenURLMenu::regenerateGui(), and TestUtilities::testColorizeURL().

+ Here is the caller graph for this function: