Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::XmlAutocompleteSelectorCatalog Class Reference

Bounded, deduplicated live selector names collected without splitting whole class attributes. More...

#include "donner/editor/XmlAutocomplete.h"

Classes

struct  Limits
 Independent count and retained-text limits shared by classes and IDs. More...

Public Member Functions

 XmlAutocompleteSelectorCatalog (Limits limits)
void addClassList (std::string_view classList)
 Stream whitespace-separated class names into the bounded catalog.
void addId (std::string_view id)
 Add one non-empty ID to the bounded catalog.
void finish ()
 Sort retained names for deterministic suggestions.
bool full () const
 True once either shared limit prevents collecting another distinct value.
std::span< const std::string > classNames () const
 Sorted class names without a leading dot.
std::span< const std::string > ids () const
 Sorted IDs without a leading hash.

Detailed Description

Bounded, deduplicated live selector names collected without splitting whole class attributes.


Class Documentation

◆ donner::editor::XmlAutocompleteSelectorCatalog::Limits

struct donner::editor::XmlAutocompleteSelectorCatalog::Limits

Independent count and retained-text limits shared by classes and IDs.

Class Members
size_t bytes = 64 * 1024 Maximum retained spelling bytes.
size_t scanBytes = 256 * 1024 Maximum inspected class and ID source bytes.
size_t scanTokens = 32768 Maximum inspected nonempty names, including duplicates.
size_t values = 4096 Maximum retained class and ID values.

The documentation for this class was generated from the following file: