MCPcopy Create free account
hub / github.com/crawl/crawl / colour_string

Function colour_string

crawl-ref/source/libutil.cc:344–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344string colour_string(string in, int col)
345{
346 if (in.empty())
347 return in;
348 const string cols = colour_to_str(col);
349 return "<" + cols + ">" + in + "</" + cols + ">";
350}
351
352
353

Callers 4

wounds_descriptionMethod · 0.85
show_promptFunction · 0.85
_god_powersFunction · 0.85
get_level_annotationFunction · 0.85

Calls 2

colour_to_strFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected