summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js/cxfa_fmlexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmlexer.h')
-rw-r--r--xfa/fxfa/fm2js/cxfa_fmlexer.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmlexer.h b/xfa/fxfa/fm2js/cxfa_fmlexer.h
index b1f0552b40..c944266d37 100644
--- a/xfa/fxfa/fm2js/cxfa_fmlexer.h
+++ b/xfa/fxfa/fm2js/cxfa_fmlexer.h
@@ -85,7 +85,7 @@ enum XFA_FM_TOKEN {
struct XFA_FMKeyword {
XFA_FM_TOKEN m_type;
- uint32_t m_uHash;
+ uint32_t m_hash;
const wchar_t* m_keyword;
};
@@ -94,12 +94,12 @@ const wchar_t* XFA_FM_KeywordToString(XFA_FM_TOKEN op);
class CXFA_FMToken {
public:
CXFA_FMToken();
- explicit CXFA_FMToken(uint32_t uLineNum);
+ explicit CXFA_FMToken(uint32_t line_num);
~CXFA_FMToken();
- CFX_WideStringC m_wstring;
+ CFX_WideStringC m_string;
XFA_FM_TOKEN m_type;
- uint32_t m_uLinenum;
+ uint32_t m_line_num;
};
class CXFA_FMLexer {
@@ -108,27 +108,27 @@ class CXFA_FMLexer {
~CXFA_FMLexer();
CXFA_FMToken* NextToken();
- bool HasError() const { return m_LexerError; }
+ bool HasError() const { return m_lexer_error; }
- void SetCurrentLine(uint32_t line) { m_uCurrentLine = line; }
- void SetToken(std::unique_ptr<CXFA_FMToken> pToken) {
- m_pToken = std::move(pToken);
+ void SetCurrentLine(uint32_t line) { m_current_line = line; }
+ void SetToken(std::unique_ptr<CXFA_FMToken> token) {
+ m_token = std::move(token);
}
- const wchar_t* GetPos() { return m_ptr; }
- void SetPos(const wchar_t* pPos) { m_ptr = pPos; }
+ const wchar_t* GetPos() { return m_cursor; }
+ void SetPos(const wchar_t* pos) { m_cursor = pos; }
private:
- const wchar_t* AdvanceForNumber(CXFA_FMToken* t, const wchar_t* p);
- const wchar_t* AdvanceForString(CXFA_FMToken* t, const wchar_t* p);
- const wchar_t* AdvanceForIdentifier(CXFA_FMToken* t, const wchar_t* p);
- const wchar_t* AdvanceForComment(const wchar_t* p);
+ void AdvanceForNumber();
+ void AdvanceForString();
+ void AdvanceForIdentifier();
+ void AdvanceForComment();
- const wchar_t* m_ptr;
+ const wchar_t* m_cursor;
const wchar_t* const m_end;
- uint32_t m_uCurrentLine;
- std::unique_ptr<CXFA_FMToken> m_pToken;
- bool m_LexerError;
+ uint32_t m_current_line;
+ std::unique_ptr<CXFA_FMToken> m_token;
+ bool m_lexer_error;
};
#endif // XFA_FXFA_FM2JS_CXFA_FMLEXER_H_