MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ symbols_from_text()

std::vector< RewriteOperator::Symbol > MayaFlux::Nodes::Network::RewriteOperator::symbols_from_text ( std::string_view text)
staticnodiscard

One parameterless symbol per character, each character being its own id.

Definition at line 58 of file RewriteOperator.cpp.

59{
60 std::vector<Symbol> symbols;
61 symbols.reserve(text.size());
62 for (const char character : text) {
63 symbols.emplace_back(static_cast<SymbolId>(static_cast<unsigned char>(character)));
64 }
65 return symbols;
66}

References symbols_from_text().

Referenced by symbols_from_text(), and text_successor().

Here is the call graph for this function:
Here is the caller graph for this function: