| 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 FPDFSDK_JAVASCRIPT_PUBLICMETHODS_H_ | 7 #ifndef FPDFSDK_JAVASCRIPT_PUBLICMETHODS_H_ |
| 8 #define FPDFSDK_JAVASCRIPT_PUBLICMETHODS_H_ | 8 #define FPDFSDK_JAVASCRIPT_PUBLICMETHODS_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 static CFX_WideString ParseStringString(const CFX_WideString& string, | 139 static CFX_WideString ParseStringString(const CFX_WideString& string, |
| 140 int nStart, | 140 int nStart, |
| 141 int& nSkip); | 141 int& nSkip); |
| 142 static double MakeRegularDate(const CFX_WideString& value, | 142 static double MakeRegularDate(const CFX_WideString& value, |
| 143 const CFX_WideString& format, | 143 const CFX_WideString& format, |
| 144 bool* bWrongFormat); | 144 bool* bWrongFormat); |
| 145 static CFX_WideString MakeFormatDate(double dDate, | 145 static CFX_WideString MakeFormatDate(double dDate, |
| 146 const CFX_WideString& format); | 146 const CFX_WideString& format); |
| 147 static double ParseNormalDate(const CFX_WideString& value, | 147 static double ParseNormalDate(const CFX_WideString& value, |
| 148 bool* bWrongFormat); | 148 bool* bWrongFormat); |
| 149 static double MakeInterDate(CFX_WideString strValue); | 149 static double MakeInterDate(const CFX_WideString& value); |
| 150 | 150 |
| 151 static CFX_WideString StrLTrim(const FX_WCHAR* pStr); | 151 static bool IsNumber(const CFX_WideString& str); |
| 152 static CFX_WideString StrRTrim(const FX_WCHAR* pStr); | |
| 153 static CFX_WideString StrTrim(const FX_WCHAR* pStr); | |
| 154 | |
| 155 static CFX_ByteString StrLTrim(const FX_CHAR* pStr); | |
| 156 static CFX_ByteString StrRTrim(const FX_CHAR* pStr); | |
| 157 static CFX_ByteString StrTrim(const FX_CHAR* pStr); | |
| 158 | |
| 159 static bool IsNumber(const FX_WCHAR* string); | |
| 160 | 152 |
| 161 static bool maskSatisfied(wchar_t c_Change, wchar_t c_Mask); | 153 static bool maskSatisfied(wchar_t c_Change, wchar_t c_Mask); |
| 162 static bool isReservedMaskChar(wchar_t ch); | 154 static bool isReservedMaskChar(wchar_t ch); |
| 163 | 155 |
| 164 static double AF_Simple(const FX_WCHAR* sFuction, | 156 static double AF_Simple(const FX_WCHAR* sFuction, |
| 165 double dValue1, | 157 double dValue1, |
| 166 double dValue2); | 158 double dValue2); |
| 167 static CJS_Array AF_MakeArrayFromList(CJS_Runtime* pRuntime, CJS_Value val); | 159 static CJS_Array AF_MakeArrayFromList(CJS_Runtime* pRuntime, CJS_Value val); |
| 168 }; | 160 }; |
| 169 | 161 |
| 170 #endif // FPDFSDK_JAVASCRIPT_PUBLICMETHODS_H_ | 162 #endif // FPDFSDK_JAVASCRIPT_PUBLICMETHODS_H_ |
| OLD | NEW |