Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
Serialize.h File Reference
#include <string>
#include <string_view>
Include dependency graph for Serialize.h:

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::css
 Donner CSS library, a standalone composable CSS parser.

Functions

std::string donner::css::SerializeIdentifier (std::string_view value)
 Serialize value as a CSS identifier, per CSSOM "serialize an identifier", so that it reads back as exactly value in selector or keyword position.
std::string donner::css::SerializeStringContents (std::string_view value, char quote)
 Serialize value as the contents of a CSS string delimited by quote, per CSSOM "serialize a string" but without the surrounding quotes: the quote character, backslash and control characters are escaped.
std::string donner::css::SerializeUrlTokenValue (std::string_view value)
 Serialize value as the value of an unquoted url(...) token, escaping every character that would end the token or make it a bad url (whitespace, quotes, parentheses, backslash, control characters).