Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
344
string 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_description
Method · 0.85
show_prompt
Function · 0.85
_god_powers
Function · 0.85
get_level_annotation
Function · 0.85
Calls
2
colour_to_str
Function · 0.85
empty
Method · 0.45
Tested by
no test coverage detected