Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: fpdfsdk/src/javascript/PublicMethods.cpp

Issue 1465663002: Update XFA fpdfsdk to match master (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "PublicMethods.h" 7 #include "PublicMethods.h"
8 8
9 #include "Field.h" 9 #include "Field.h"
10 #include "JS_Context.h" 10 #include "JS_Context.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 L"Apr", 55 L"Apr",
56 L"May", 56 L"May",
57 L"Jun", 57 L"Jun",
58 L"Jul", 58 L"Jul",
59 L"Aug", 59 L"Aug",
60 L"Sep", 60 L"Sep",
61 L"Oct", 61 L"Oct",
62 L"Nov", 62 L"Nov",
63 L"Dec"}; 63 L"Dec"};
64 64
65 static const FX_WCHAR* const fullmonths[] = { 65 static const FX_WCHAR* const fullmonths[] = {L"January",
66 L"January", L"February", L"March", L"April", 66 L"February",
67 L"May", L"June", L"July", L"August", 67 L"March",
68 L"September", L"October", L"November", L"December"}; 68 L"April",
69 L"May",
70 L"June",
71 L"July",
72 L"August",
73 L"September",
74 L"October",
75 L"November",
76 L"December"};
69 77
70 FX_BOOL CJS_PublicMethods::IsNumber(const FX_WCHAR* string) { 78 FX_BOOL CJS_PublicMethods::IsNumber(const FX_WCHAR* string) {
71 CFX_WideString sTrim = StrTrim(string); 79 CFX_WideString sTrim = StrTrim(string);
72 const FX_WCHAR* pTrim = sTrim.c_str(); 80 const FX_WCHAR* pTrim = sTrim.c_str();
73 const FX_WCHAR* p = pTrim; 81 const FX_WCHAR* p = pTrim;
74 82
75 FX_BOOL bDot = FALSE; 83 FX_BOOL bDot = FALSE;
76 FX_BOOL bKXJS = FALSE; 84 FX_BOOL bKXJS = FALSE;
77 85
78 wchar_t c; 86 wchar_t c;
(...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 nums.SetElement(nIndex, CJS_Value(pRuntime, sPart.c_str())); 2090 nums.SetElement(nIndex, CJS_Value(pRuntime, sPart.c_str()));
2083 } 2091 }
2084 2092
2085 if (nums.GetLength() > 0) 2093 if (nums.GetLength() > 0)
2086 vRet = nums; 2094 vRet = nums;
2087 else 2095 else
2088 vRet.SetNull(); 2096 vRet.SetNull();
2089 2097
2090 return TRUE; 2098 return TRUE;
2091 } 2099 }
OLDNEW
« core/include/fpdfapi/fpdf_parser.h ('K') | « fpdfsdk/src/javascript/JS_Runtime.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698