Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
colorize.cpp File Reference
#include "colorize.h"
#include <curl/urlapi.h>
#include "log.h"
#include "string.h"
#include <sstream>
+ Include dependency graph for colorize.cpp:

Functions

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

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: