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

Side by Side Diff: xfa/fgas/localization/fgas_locale.cpp

Issue 2011553004: Complete or comment a couple Script_NodeClass functions (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 7 months 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
« no previous file with comments | « no previous file | xfa/fxfa/parser/xfa_object_imp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <algorithm> 7 #include <algorithm>
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "core/fxcrt/include/fx_xml.h" 10 #include "core/fxcrt/include/fx_xml.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 {FXBSTR_ID(0, 'C', 'D', 'T'), -5, 0}, {FXBSTR_ID(0, 'C', 'S', 'T'), -6, 0}, 53 {FXBSTR_ID(0, 'C', 'D', 'T'), -5, 0}, {FXBSTR_ID(0, 'C', 'S', 'T'), -6, 0},
54 {FXBSTR_ID(0, 'E', 'D', 'T'), -4, 0}, {FXBSTR_ID(0, 'E', 'S', 'T'), -5, 0}, 54 {FXBSTR_ID(0, 'E', 'D', 'T'), -4, 0}, {FXBSTR_ID(0, 'E', 'S', 'T'), -5, 0},
55 {FXBSTR_ID(0, 'M', 'D', 'T'), -6, 0}, {FXBSTR_ID(0, 'M', 'S', 'T'), -7, 0}, 55 {FXBSTR_ID(0, 'M', 'D', 'T'), -6, 0}, {FXBSTR_ID(0, 'M', 'S', 'T'), -7, 0},
56 {FXBSTR_ID(0, 'P', 'D', 'T'), -7, 0}, {FXBSTR_ID(0, 'P', 'S', 'T'), -8, 0}, 56 {FXBSTR_ID(0, 'P', 'D', 'T'), -7, 0}, {FXBSTR_ID(0, 'P', 'S', 'T'), -8, 0},
57 }; 57 };
58 58
59 static const FX_WCHAR gs_wsTimeSymbols[] = L"hHkKMSFAzZ"; 59 static const FX_WCHAR gs_wsTimeSymbols[] = L"hHkKMSFAzZ";
60 static const FX_WCHAR gs_wsDateSymbols[] = L"DJMEeGgYwW"; 60 static const FX_WCHAR gs_wsDateSymbols[] = L"DJMEeGgYwW";
61 static const FX_WCHAR gs_wsConstChars[] = L",-:/. "; 61 static const FX_WCHAR gs_wsConstChars[] = L",-:/. ";
62 62
63 static const FX_WCHAR* const gs_LocalNumberSymbols[] = {
64 L"decimal", L"grouping", L"percent", L"minus",
65 L"zero", L"currencySymbol", L"currencyName",
66 };
67
68 static int32_t FX_ParseTimeZone(const FX_WCHAR* pStr, 63 static int32_t FX_ParseTimeZone(const FX_WCHAR* pStr,
69 int32_t iLen, 64 int32_t iLen,
70 FX_TIMEZONE& tz) { 65 FX_TIMEZONE& tz) {
71 tz.tzHour = 0; 66 tz.tzHour = 0;
72 tz.tzMinute = 0; 67 tz.tzMinute = 0;
73 if (iLen < 0) { 68 if (iLen < 0) {
74 return 0; 69 return 0;
75 } 70 }
76 int32_t iStart = 1; 71 int32_t iStart = 1;
77 int32_t iEnd = iStart + 2; 72 int32_t iEnd = iStart + 2;
(...skipping 4695 matching lines...) Expand 10 before | Expand all | Expand 10 after
4773 } 4768 }
4774 CFX_Decimal CFX_Decimal::operator*(const CFX_Decimal& val) const { 4769 CFX_Decimal CFX_Decimal::operator*(const CFX_Decimal& val) const {
4775 return Multiply(val); 4770 return Multiply(val);
4776 } 4771 }
4777 CFX_Decimal CFX_Decimal::operator/(const CFX_Decimal& val) const { 4772 CFX_Decimal CFX_Decimal::operator/(const CFX_Decimal& val) const {
4778 return Divide(val); 4773 return Divide(val);
4779 } 4774 }
4780 CFX_Decimal CFX_Decimal::operator%(const CFX_Decimal& val) const { 4775 CFX_Decimal CFX_Decimal::operator%(const CFX_Decimal& val) const {
4781 return Modulus(val); 4776 return Modulus(val);
4782 } 4777 }
OLDNEW
« no previous file with comments | « no previous file | xfa/fxfa/parser/xfa_object_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698