MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / WStr

Class WStr

include/CobaltFusion/Str.h:62–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60};
61
62class WStr
63{
64public:
65 explicit WStr(const std::string& s) :
66 m_str(Win32::MultiByteToWideChar(s))
67 {
68 }
69
70 explicit WStr(const std::wstring& s) :
71 m_str(s)
72 {
73 }
74
75 std::wstring str() const
76 {
77 return m_str;
78 }
79
80 const wchar_t* c_str() const
81 {
82 return m_str.c_str();
83 }
84
85 operator std::wstring() const
86 {
87 return m_str;
88 }
89
90 operator const wchar_t*() const
91 {
92 return m_str.c_str();
93 }
94
95private:
96 std::wstring m_str;
97};
98
99} // namespace fusion

Callers 15

LogMessagesFunction · 0.85
GetProcessInfoMethod · 0.85
SaveFilterSettingsFunction · 0.85
LoadFilterSettingsFunction · 0.85
AddMethod · 0.85
SaveLogFileFunction · 0.85
AppendLogFileFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
GetItemDataMethod · 0.85
OnGetDispInfoMethod · 0.85
FindMethod · 0.85
LoadSettingsMethod · 0.85

Calls 1

c_strMethod · 0.45

Tested by 3

SaveLogFileFunction · 0.68
AppendLogFileFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68