MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / FromHtmlName

Method FromHtmlName

library/colour.cpp:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23Colour Colour::FromHtmlName(const UString &name)
24{
25 auto it = html4Colours.find(to_lower(name));
26 if (it != html4Colours.end())
27 return it->second;
28 return {0, 0, 0, 0};
29}
30
31Colour Colour::FromHex(const UString &hexcode)
32{

Callers

nothing calls this directly

Calls 2

to_lowerFunction · 0.85
endMethod · 0.80

Tested by

no test coverage detected