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 "xfa/src/fxfa/fm2js/xfa_fm2jscontext.h" | 7 #include "xfa/fxfa/fm2js/xfa_fm2jscontext.h" |
8 | 8 |
9 #include <time.h> | 9 #include <time.h> |
10 | 10 |
11 #include "core/include/fxcrt/fx_ext.h" | 11 #include "core/include/fxcrt/fx_ext.h" |
12 #include "xfa/src/fgas/localization/fgas_locale.h" | 12 #include "xfa/fgas/localization/fgas_locale.h" |
13 #include "xfa/src/fxfa/fm2js/xfa_fm2jsapi.h" | 13 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h" |
14 #include "xfa/src/fxfa/parser/xfa_document.h" | 14 #include "xfa/fxfa/parser/xfa_document.h" |
15 #include "xfa/src/fxfa/parser/xfa_localevalue.h" | 15 #include "xfa/fxfa/parser/xfa_localevalue.h" |
16 #include "xfa/src/fxfa/parser/xfa_parser.h" | 16 #include "xfa/fxfa/parser/xfa_parser.h" |
17 | 17 |
18 #define FINANCIAL_PRECISION 0.00000001 | 18 #define FINANCIAL_PRECISION 0.00000001 |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 struct XFA_FMHtmlReserveCode { | 22 struct XFA_FMHtmlReserveCode { |
23 uint32_t m_uCode; | 23 uint32_t m_uCode; |
24 const FX_WCHAR* m_htmlReserve; | 24 const FX_WCHAR* m_htmlReserve; |
25 }; | 25 }; |
26 struct XFA_FMHtmlHashedReserveCode { | 26 struct XFA_FMHtmlHashedReserveCode { |
(...skipping 7187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7214 FXSYS_assert(pAppProvider); | 7214 FXSYS_assert(pAppProvider); |
7215 CFX_WideString wsFormat; | 7215 CFX_WideString wsFormat; |
7216 pAppProvider->LoadString(iStringID, wsFormat); | 7216 pAppProvider->LoadString(iStringID, wsFormat); |
7217 CFX_WideString wsMessage; | 7217 CFX_WideString wsMessage; |
7218 va_list arg_ptr; | 7218 va_list arg_ptr; |
7219 va_start(arg_ptr, iStringID); | 7219 va_start(arg_ptr, iStringID); |
7220 wsMessage.FormatV((const FX_WCHAR*)wsFormat, arg_ptr); | 7220 wsMessage.FormatV((const FX_WCHAR*)wsFormat, arg_ptr); |
7221 va_end(arg_ptr); | 7221 va_end(arg_ptr); |
7222 FXJSE_ThrowMessage("", FX_UTF8Encode(wsMessage, wsMessage.GetLength())); | 7222 FXJSE_ThrowMessage("", FX_UTF8Encode(wsMessage, wsMessage.GetLength())); |
7223 } | 7223 } |
OLD | NEW |