| 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 #ifndef _UTIL_H_ | 7 #ifndef _UTIL_H_ |
| 8 #define _UTIL_H_ | 8 #define _UTIL_H_ |
| 9 | 9 |
| 10 #include <string> // For std::wstring. |
| 11 |
| 12 #include "JS_Define.h" |
| 13 |
| 10 class util : public CJS_EmbedObj | 14 class util : public CJS_EmbedObj |
| 11 { | 15 { |
| 12 public: | 16 public: |
| 13 util(CJS_Object * pJSObject); | 17 util(CJS_Object * pJSObject); |
| 14 virtual ~util(void); | 18 virtual ~util(void); |
| 15 | 19 |
| 16 public: | 20 public: |
| 17 FX_BOOL printd(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Valu
e& vRet, CFX_WideString& sError); | 21 FX_BOOL printd(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Valu
e& vRet, CFX_WideString& sError); |
| 18 FX_BOOL printf(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Valu
e& vRet, CFX_WideString& sError); | 22 FX_BOOL printf(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Valu
e& vRet, CFX_WideString& sError); |
| 19 FX_BOOL printx(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Valu
e& vRet, CFX_WideString& sError); | 23 FX_BOOL printx(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Valu
e& vRet, CFX_WideString& sError); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 36 | 40 |
| 37 JS_STATIC_METHOD(printd, util); | 41 JS_STATIC_METHOD(printd, util); |
| 38 JS_STATIC_METHOD(printf, util); | 42 JS_STATIC_METHOD(printf, util); |
| 39 JS_STATIC_METHOD(printx, util); | 43 JS_STATIC_METHOD(printx, util); |
| 40 JS_STATIC_METHOD(scand, util); | 44 JS_STATIC_METHOD(scand, util); |
| 41 JS_STATIC_METHOD(byteToChar, util); | 45 JS_STATIC_METHOD(byteToChar, util); |
| 42 }; | 46 }; |
| 43 | 47 |
| 44 FX_INT64 FX_atoi64(const char *nptr); | 48 FX_INT64 FX_atoi64(const char *nptr); |
| 45 #endif //_UTIL_H_ | 49 #endif //_UTIL_H_ |
| OLD | NEW |