mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
Update JSBaker.h
This commit is contained in:
parent
4486212e05
commit
fbe3f2fbe3
1 changed files with 11 additions and 10 deletions
|
@ -23,28 +23,29 @@ public:
|
||||||
JSBaker(const QUrl& jsURL, const QString& bakedOutputDir);
|
JSBaker(const QUrl& jsURL, const QString& bakedOutputDir);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
virtual void bake() override;
|
virtual void bake() override;
|
||||||
|
|
||||||
|
public:
|
||||||
|
static bool bakeJS(const QByteArray* inputFile, QByteArray* outputFile);
|
||||||
|
|
||||||
private :
|
private :
|
||||||
QUrl _jsURL;
|
QUrl _jsURL;
|
||||||
QString _bakedOutputDir;
|
QString _bakedOutputDir;
|
||||||
QString _bakedJSFilePath;
|
QString _bakedJSFilePath;
|
||||||
|
|
||||||
static bool bakeJS(const QByteArray*, QByteArray*);
|
static void handleSingleLineComments(QTextStream* in);
|
||||||
|
static bool handleMultiLineComments(QTextStream* in);
|
||||||
|
|
||||||
static void handleSingleLineComments(QTextStream*);
|
static bool canOmitSpace(QChar previousCharacter, QChar nextCharacter);
|
||||||
static bool handleMultiLineComments(QTextStream*);
|
static bool canOmitNewLine(QChar previousCharacter, QChar nextCharacter);
|
||||||
|
|
||||||
static bool canOmitSpace(QChar, QChar);
|
static bool isAlphanum(QChar c);
|
||||||
static bool canOmitNewLine(QChar, QChar);
|
|
||||||
|
|
||||||
static bool isAlphanum(QChar);
|
|
||||||
static bool isNonAscii(QChar c);
|
static bool isNonAscii(QChar c);
|
||||||
static bool isSpecialCharacter(QChar c);
|
static bool isSpecialCharacter(QChar c);
|
||||||
static bool isSpecialCharacterPrevious(QChar c);
|
static bool isSpecialCharacterPrevious(QChar c);
|
||||||
static bool isSpecialCharacterNext(QChar c);
|
static bool isSpecialCharacterNext(QChar c);
|
||||||
static bool isSpaceOrTab(QChar);
|
static bool isSpaceOrTab(QChar c);
|
||||||
static bool isQuote(QChar);
|
static bool isQuote(QChar c);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !hifi_JSBaker_h
|
#endif // !hifi_JSBaker_h
|
||||||
|
|
Loading…
Reference in a new issue