| 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 "xfa/fxfa/parser/xfa_localevalue.h" | 7 #include "xfa/fxfa/parser/xfa_localevalue.h" |
| 8 | 8 |
| 9 #include "xfa/fgas/localization/fgas_localeimp.h" | 9 #include "xfa/fgas/localization/fgas_localeimp.h" |
| 10 #include "xfa/fxfa/parser/xfa_doclayout.h" | 10 #include "xfa/fxfa/parser/xfa_doclayout.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 0.0000000001, | 27 0.0000000001, |
| 28 0.00000000001, | 28 0.00000000001, |
| 29 0.000000000001, | 29 0.000000000001, |
| 30 0.0000000000001, | 30 0.0000000000001, |
| 31 0.00000000000001, | 31 0.00000000000001, |
| 32 0.000000000000001, | 32 0.000000000000001, |
| 33 0.0000000000000001}; | 33 0.0000000000000001}; |
| 34 CXFA_LocaleValue::CXFA_LocaleValue() { | 34 CXFA_LocaleValue::CXFA_LocaleValue() { |
| 35 m_dwType = XFA_VT_NULL; | 35 m_dwType = XFA_VT_NULL; |
| 36 m_bValid = TRUE; | 36 m_bValid = TRUE; |
| 37 m_pLocaleMgr = NULL; | 37 m_pLocaleMgr = nullptr; |
| 38 } | 38 } |
| 39 CXFA_LocaleValue::CXFA_LocaleValue(const CXFA_LocaleValue& value) { | 39 CXFA_LocaleValue::CXFA_LocaleValue(const CXFA_LocaleValue& value) { |
| 40 m_dwType = XFA_VT_NULL; | 40 m_dwType = XFA_VT_NULL; |
| 41 m_bValid = TRUE; | 41 m_bValid = TRUE; |
| 42 m_pLocaleMgr = NULL; | 42 m_pLocaleMgr = nullptr; |
| 43 *this = value; | 43 *this = value; |
| 44 } | 44 } |
| 45 CXFA_LocaleValue::CXFA_LocaleValue(uint32_t dwType, | 45 CXFA_LocaleValue::CXFA_LocaleValue(uint32_t dwType, |
| 46 CXFA_LocaleMgr* pLocaleMgr) { | 46 CXFA_LocaleMgr* pLocaleMgr) { |
| 47 m_dwType = dwType; | 47 m_dwType = dwType; |
| 48 m_bValid = (m_dwType != XFA_VT_NULL); | 48 m_bValid = (m_dwType != XFA_VT_NULL); |
| 49 m_pLocaleMgr = pLocaleMgr; | 49 m_pLocaleMgr = pLocaleMgr; |
| 50 } | 50 } |
| 51 CXFA_LocaleValue::CXFA_LocaleValue(uint32_t dwType, | 51 CXFA_LocaleValue::CXFA_LocaleValue(uint32_t dwType, |
| 52 const CFX_WideString& wsValue, | 52 const CFX_WideString& wsValue, |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 } else if (cf == L'z') { | 988 } else if (cf == L'z') { |
| 989 nf++; | 989 nf++; |
| 990 } else { | 990 } else { |
| 991 return FALSE; | 991 return FALSE; |
| 992 } | 992 } |
| 993 } | 993 } |
| 994 n++; | 994 n++; |
| 995 } | 995 } |
| 996 return n == nCount; | 996 return n == nCount; |
| 997 } | 997 } |
| OLD | NEW |