MCPcopy Create free account
hub / github.com/AGenUI/AGenUI / parseSolid

Function parseSolid

tests/cpp/style_parser/color_parser_test.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11// ============================================================================
12
13static bool parseSolid(const std::string& css, uint32_t& argb) {
14 ColorValue cv;
15 if (!ColorParser::parse(css, cv)) return false;
16 if (cv.type != ColorValueType::Solid) return false;
17 argb = cv.solidColor;
18 return true;
19}
20
21static bool parseGradient(const std::string& css, ColorValue& cv) {
22 if (!ColorParser::parse(css, cv)) return false;

Callers 2

TEST_PFunction · 0.70
TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected