OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
| 7 #include "core/include/fxcrt/fx_ext.h" |
7 #include "xfa/src/fxfa/src/fm2js/xfa_fm2js.h" | 8 #include "xfa/src/fxfa/src/fm2js/xfa_fm2js.h" |
8 | 9 |
9 namespace { | 10 namespace { |
10 | 11 |
11 struct XFA_FMDChar { | 12 struct XFA_FMDChar { |
12 static const FX_WCHAR* inc(const FX_WCHAR*& p) { | 13 static const FX_WCHAR* inc(const FX_WCHAR*& p) { |
13 ++p; | 14 ++p; |
14 return p; | 15 return p; |
15 } | 16 } |
16 static const FX_WCHAR* dec(const FX_WCHAR*& p) { | 17 static const FX_WCHAR* dec(const FX_WCHAR*& p) { |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 m_pErrorInfo->message.FormatV(lpMessageInfo, ap); | 542 m_pErrorInfo->message.FormatV(lpMessageInfo, ap); |
542 va_end(ap); | 543 va_end(ap); |
543 } | 544 } |
544 | 545 |
545 FX_BOOL CXFA_FMLexer::HasError() const { | 546 FX_BOOL CXFA_FMLexer::HasError() const { |
546 if (m_pErrorInfo->message.IsEmpty()) { | 547 if (m_pErrorInfo->message.IsEmpty()) { |
547 return FALSE; | 548 return FALSE; |
548 } | 549 } |
549 return TRUE; | 550 return TRUE; |
550 } | 551 } |
OLD | NEW |