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/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/fxcrt/include/fx_ext.h" |
12 #include "xfa/fgas/localization/fgas_locale.h" | 12 #include "xfa/fgas/localization/fgas_locale.h" |
13 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h" | 13 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h" |
14 #include "xfa/fxfa/parser/xfa_document.h" | 14 #include "xfa/fxfa/parser/xfa_document.h" |
15 #include "xfa/fxfa/parser/xfa_localevalue.h" | 15 #include "xfa/fxfa/parser/xfa_localevalue.h" |
16 #include "xfa/fxfa/parser/xfa_parser.h" | 16 #include "xfa/fxfa/parser/xfa_parser.h" |
17 #include "xfa/fxjse/cfxjse_arguments.h" | 17 #include "xfa/fxjse/cfxjse_arguments.h" |
18 | 18 |
19 #define FINANCIAL_PRECISION 0.00000001 | 19 #define FINANCIAL_PRECISION 0.00000001 |
20 | 20 |
21 namespace { | 21 namespace { |
(...skipping 7193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7215 FXSYS_assert(pAppProvider); | 7215 FXSYS_assert(pAppProvider); |
7216 CFX_WideString wsFormat; | 7216 CFX_WideString wsFormat; |
7217 pAppProvider->LoadString(iStringID, wsFormat); | 7217 pAppProvider->LoadString(iStringID, wsFormat); |
7218 CFX_WideString wsMessage; | 7218 CFX_WideString wsMessage; |
7219 va_list arg_ptr; | 7219 va_list arg_ptr; |
7220 va_start(arg_ptr, iStringID); | 7220 va_start(arg_ptr, iStringID); |
7221 wsMessage.FormatV((const FX_WCHAR*)wsFormat, arg_ptr); | 7221 wsMessage.FormatV((const FX_WCHAR*)wsFormat, arg_ptr); |
7222 va_end(arg_ptr); | 7222 va_end(arg_ptr); |
7223 FXJSE_ThrowMessage("", FX_UTF8Encode(wsMessage, wsMessage.GetLength())); | 7223 FXJSE_ThrowMessage("", FX_UTF8Encode(wsMessage, wsMessage.GetLength())); |
7224 } | 7224 } |
OLD | NEW |