to_color_rgb

Defined in header: <orcus/spreadsheet/types.hpp>

color_rgb_t orcus::spreadsheet::to_color_rgb(std::string_view s)

Convert a string representation of a RGB value to an equivalent struct value. The string representation is expected to be a 6 digit hexadecimal value string that may or may not be prefixed with a ‘#’.

Parameters:

s – string representation of the RGB value.

Returns:

struct value representing an RGB value.