|
|
Donner
C++20 SVG rendering library
|
Parse a CSS value, per https://www.w3.org/TR/css-syntax-3/#parse-list-of-component-values. More...
#include "donner/css/parser/ValueParser.h"
Static Public Member Functions | |
| static std::vector< ComponentValue > | Parse (std::string_view str) |
| Parse a CSS value, per https://www.w3.org/TR/css-syntax-3/#parse-list-of-component-values. | |
Parse a CSS value, per https://www.w3.org/TR/css-syntax-3/#parse-list-of-component-values.
This is used when parsing CSS-like attributes within XML/HTML, such as SVG presentation attributes.
|
static |
Parse a CSS value, per https://www.w3.org/TR/css-syntax-3/#parse-list-of-component-values.
This is used when parsing CSS-like attributes within XML/HTML, such as SVG presentation attributes.
For example, in SVG the following provide the same style:
and:
This function would parse the string "red" and return a list of component values representing the value.
| str | Input value string. |