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

Side by Side Diff: xfa/fxfa/parser/xfa_localevalue.h

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 6 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 | « xfa/fxfa/parser/xfa_localemgr.cpp ('k') | xfa/fxfa/parser/xfa_localevalue.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 #ifndef XFA_FXFA_PARSER_XFA_LOCALEVALUE_H_ 7 #ifndef XFA_FXFA_PARSER_XFA_LOCALEVALUE_H_
8 #define XFA_FXFA_PARSER_XFA_LOCALEVALUE_H_ 8 #define XFA_FXFA_PARSER_XFA_LOCALEVALUE_H_
9 9
10 #include "core/fxcrt/include/fx_string.h" 10 #include "core/fxcrt/include/fx_string.h"
(...skipping 26 matching lines...) Expand all
37 const CFX_WideString& wsValue, 37 const CFX_WideString& wsValue,
38 const CFX_WideString& wsFormat, 38 const CFX_WideString& wsFormat,
39 IFX_Locale* pLocale, 39 IFX_Locale* pLocale,
40 CXFA_LocaleMgr* pLocaleMgr); 40 CXFA_LocaleMgr* pLocaleMgr);
41 ~CXFA_LocaleValue(); 41 ~CXFA_LocaleValue();
42 CXFA_LocaleValue& operator=(const CXFA_LocaleValue& value); 42 CXFA_LocaleValue& operator=(const CXFA_LocaleValue& value);
43 43
44 FX_BOOL ValidateValue(const CFX_WideString& wsValue, 44 FX_BOOL ValidateValue(const CFX_WideString& wsValue,
45 const CFX_WideString& wsPattern, 45 const CFX_WideString& wsPattern,
46 IFX_Locale* pLocale, 46 IFX_Locale* pLocale,
47 CFX_WideString* pMatchFormat = NULL); 47 CFX_WideString* pMatchFormat = nullptr);
48 FX_BOOL FormatPatterns(CFX_WideString& wsResult, 48 FX_BOOL FormatPatterns(CFX_WideString& wsResult,
49 const CFX_WideString& wsFormat, 49 const CFX_WideString& wsFormat,
50 IFX_Locale* pLocale, 50 IFX_Locale* pLocale,
51 XFA_VALUEPICTURE eValueType) const; 51 XFA_VALUEPICTURE eValueType) const;
52 FX_BOOL FormatSinglePattern(CFX_WideString& wsResult, 52 FX_BOOL FormatSinglePattern(CFX_WideString& wsResult,
53 const CFX_WideString& wsFormat, 53 const CFX_WideString& wsFormat,
54 IFX_Locale* pLocale, 54 IFX_Locale* pLocale,
55 XFA_VALUEPICTURE eValueType) const; 55 XFA_VALUEPICTURE eValueType) const;
56 FX_BOOL ValidateCanonicalValue(const CFX_WideString& wsValue, 56 FX_BOOL ValidateCanonicalValue(const CFX_WideString& wsValue,
57 uint32_t dwVType); 57 uint32_t dwVType);
58 FX_BOOL ValidateCanonicalDate(const CFX_WideString& wsDate, 58 FX_BOOL ValidateCanonicalDate(const CFX_WideString& wsDate,
59 CFX_Unitime& unDate); 59 CFX_Unitime& unDate);
60 FX_BOOL ValidateCanonicalTime(const CFX_WideString& wsTime); 60 FX_BOOL ValidateCanonicalTime(const CFX_WideString& wsTime);
61 FX_BOOL ValidateCanonicalDateTime(const CFX_WideString& wsDateTime); 61 FX_BOOL ValidateCanonicalDateTime(const CFX_WideString& wsDateTime);
62 void GetNumbericFormat(CFX_WideString& wsFormat, 62 void GetNumbericFormat(CFX_WideString& wsFormat,
63 int32_t nIntLen, 63 int32_t nIntLen,
64 int32_t nDecLen, 64 int32_t nDecLen,
65 FX_BOOL bSign = TRUE); 65 FX_BOOL bSign = TRUE);
66 FX_BOOL ValidateNumericTemp(CFX_WideString& wsNumeric, 66 FX_BOOL ValidateNumericTemp(CFX_WideString& wsNumeric,
67 CFX_WideString& wsFormat, 67 CFX_WideString& wsFormat,
68 IFX_Locale* pLocale = NULL, 68 IFX_Locale* pLocale = nullptr,
69 int32_t* pos = NULL); 69 int32_t* pos = nullptr);
70 70
71 CFX_WideString GetValue() const; 71 CFX_WideString GetValue() const;
72 uint32_t GetType() const; 72 uint32_t GetType() const;
73 void SetValue(const CFX_WideString& wsValue, uint32_t dwType); 73 void SetValue(const CFX_WideString& wsValue, uint32_t dwType);
74 CFX_WideString GetText() const; 74 CFX_WideString GetText() const;
75 FX_FLOAT GetNum() const; 75 FX_FLOAT GetNum() const;
76 FX_DOUBLE GetDoubleNum() const; 76 FX_DOUBLE GetDoubleNum() const;
77 CFX_Unitime GetDate() const; 77 CFX_Unitime GetDate() const;
78 CFX_Unitime GetTime() const; 78 CFX_Unitime GetTime() const;
79 CFX_Unitime GetDateTime() const; 79 CFX_Unitime GetDateTime() const;
(...skipping 25 matching lines...) Expand all
105 FX_BOOL ParsePatternValue(const CFX_WideString& wsValue, 105 FX_BOOL ParsePatternValue(const CFX_WideString& wsValue,
106 const CFX_WideString& wsPattern, 106 const CFX_WideString& wsPattern,
107 IFX_Locale* pLocale); 107 IFX_Locale* pLocale);
108 CXFA_LocaleMgr* m_pLocaleMgr; 108 CXFA_LocaleMgr* m_pLocaleMgr;
109 CFX_WideString m_wsValue; 109 CFX_WideString m_wsValue;
110 uint32_t m_dwType; 110 uint32_t m_dwType;
111 FX_BOOL m_bValid; 111 FX_BOOL m_bValid;
112 }; 112 };
113 113
114 #endif // XFA_FXFA_PARSER_XFA_LOCALEVALUE_H_ 114 #endif // XFA_FXFA_PARSER_XFA_LOCALEVALUE_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_localemgr.cpp ('k') | xfa/fxfa/parser/xfa_localevalue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698