MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / CMakeString

Class CMakeString

deps/FtpClient/FTPClient.cpp:74–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72namespace nsFTP
73{
74 class CMakeString
75 {
76 public:
77 CMakeString& operator<<(DWORD dwNum)
78 {
79 DWORD dwTemp = dwNum;
80 int iCnt=1; // name lookup of 'iCnt' changed for new ISO 'for' scoping
81 for( ; (dwTemp/=10) != 0; iCnt++ )
82 ;
83
84 m_str.resize(m_str.size() + iCnt);
85 // string size +1 because tsprintf needs the size including the terminating NULL character;
86 // the size method returns the size without the terminating NULL character
87 tsprintf(&(*m_str.begin()), m_str.size()+1, _T("%s%u"), m_str.c_str(), dwNum);
88
89 return *this;
90 }
91
92 CMakeString& operator<<(const tstring& strAdd)
93 {
94 m_str += strAdd;
95 return *this;
96 }
97
98 operator tstring() const { return m_str; }
99
100 private:
101 tstring m_str;
102 };
103
104 tstring& ReplaceStr(tstring& strTarget, const tstring& strToReplace, const tstring& strReplacement)
105 {

Callers 5

LoginMethod · 0.85
DataPortMethod · 0.85
_RepresentationTypeMethod · 0.85
AllocateMethod · 0.85
RestartMethod · 0.85

Calls 3

c_strMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected