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 <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 Loading... |
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 Loading... |
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 } |
OLD | NEW |