#include <cstddef>#include <functional>#include <string>#include <string_view>#include <vector>#include "donner/editor/TextBuffer.h"Classes | |
| struct | donner::editor::CssSourceRegion |
| One CSS-bearing byte range found by the XML tokenizer. More... | |
| struct | donner::editor::CssColorSpan |
| Syntax color for a half-open source byte range. More... | |
| struct | donner::editor::CssTextPiece |
| A decoded run of CSS text and its half-open byte range within the raw XML region. The text is borrowed for the duration of the visitor call. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Enumerations | |
| enum class | donner::editor::CssSourceRegionKind { Stylesheet , DeclarationList , PropertyValue } |
| How a CSS source region is embedded in SVG source. More... | |
Functions | |
| void | donner::editor::VisitDecodedCssText (std::string_view raw, const std::function< void(const CssTextPiece &)> &visit) |
| Visit literal CSS text, XML character references, and CDATA payloads in source order. | |
| std::vector< CssSourceRegion > | donner::editor::FindSvgCssSourceRegions (std::string_view source, const std::function< void(CssColorSpan)> &paintMarkup={}) |
| Locate every CSS-bearing region in SVG/XML source, in source order. | |
| std::vector< std::string > | donner::editor::CollectDeclaredCustomPropertyNames (std::string_view source) |
| Collect distinct authored custom property names from stylesheets and style attributes. | |
| void | donner::editor::ClassifySvgCssRegion (std::string_view source, const CssSourceRegion ®ion, const std::function< void(CssColorSpan)> &paint) |
| Visit the token colors for one CSS region, using absolute source byte offsets. | |
|
strong |
| std::vector< std::string > donner::editor::CollectDeclaredCustomPropertyNames | ( | std::string_view | source | ) |
Collect distinct authored custom property names from stylesheets and style attributes.
| source | SVG/XML source bytes. |
| std::vector< CssSourceRegion > donner::editor::FindSvgCssSourceRegions | ( | std::string_view | source, |
| const std::function< void(CssColorSpan)> & | paintMarkup = {} ) |
Locate every CSS-bearing region in SVG/XML source, in source order.
| source | SVG/XML source bytes. |