From 70a39f03f7f79e9abab5f8bbf635ad9cc57b34e7 Mon Sep 17 00:00:00 2001 From: utkarshgautamnyu Date: Tue, 26 Sep 2017 19:36:41 -0700 Subject: [PATCH] Update JSBaker.h --- libraries/baking/src/JSBaker.h | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/libraries/baking/src/JSBaker.h b/libraries/baking/src/JSBaker.h index f64047fe8b..06bbd75e43 100644 --- a/libraries/baking/src/JSBaker.h +++ b/libraries/baking/src/JSBaker.h @@ -30,23 +30,21 @@ private : QString _bakedOutputDir; QString _bakedJSFilePath; - void importJS(); - void bakeJS(QFile*); - void exportJS(QFile*); + static bool bakeJS(QByteArray*, QByteArray*); - void handleSingleLineComments(QTextStream*); - void handleMultiLineComments(QTextStream*); + static void handleSingleLineComments(QTextStream*); + static bool handleMultiLineComments(QTextStream*); - bool canOmitSpace(QChar, QChar); - bool canOmitNewLine(QChar, QChar); + static bool canOmitSpace(QChar, QChar); + static bool canOmitNewLine(QChar, QChar); - bool isAlphanum(QChar); - bool isNonAscii(QChar c); - bool isSpecialCharacter(QChar c); - bool isSpecialCharacterPrevious(QChar c); - bool isSpecialCharacterNext(QChar c); - bool isSpaceOrTab(QChar); - bool isQuote(QChar); + static bool isAlphanum(QChar); + static bool isNonAscii(QChar c); + static bool isSpecialCharacter(QChar c); + static bool isSpecialCharacterPrevious(QChar c); + static bool isSpecialCharacterNext(QChar c); + static bool isSpaceOrTab(QChar); + static bool isQuote(QChar); }; #endif // !hifi_JSBaker_h