wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
CodeGenUtils.h File Reference

Shared string utilities used by all code generators. More...

#include <algorithm>
#include <QRegularExpression>
#include <QString>
Include dependency graph for CodeGenUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CodeGenUtils

Functions

QString CodeGenUtils::removeForbiddenChars (const QString &input, const bool stripFirst=false)
 Converts input into a legal language identifier.
QString CodeGenUtils::sanitizeComment (const QString &input)
 Makes input safe to embed in a single-line "//" comment.
QString CodeGenUtils::stripAccents (const QString &input)
 Strips Unicode diacritic marks (accents) from input using NFC → NFD decomposition.

Detailed Description

Shared string utilities used by all code generators.

Definition in file CodeGenUtils.h.