// Main.cpp
// cl Main.cpp Strings.cpp /O1 /Os /GR- /GS- TCLib.lib kernel32.lib user32.lib
// 4,608 Bytes VC15 (VStudio 2008); x64; UNICODE
#ifndef UNICODE
#define UNICODE
#endif
#ifndef _UNICODE
#define _UNICODE
#endif
#include <windows.h>
#include "stdio.h"
#include "Strings.h"
int main()
{
String s1(L"one , two, three, four "); // 840
s1=s1.Remove(L" "); // 952
s1.Print(true);
getchar();
return 0;
}
/*
Entering String::String(const TCHAR* pStr) Constructor!
this->lpBuffer = 1739840
Leaving String::String(const TCHAR* pStr) Constructor!
Entering String String::Remove(const TCHAR* pStr)
this->lpBuffer = 1739840
Entering String::String(const size_t iSize, bool blnFillNulls)
this->lpBuffer = 1739952
Leaving String::String(const size_t iSize, bool blnFillNulls)
Leaving String String::Remove(const TCHAR* pStr)
Entering String& String::operator=(const String& strAnother)
strAnother.lpBuffer = 1739952
this->lpBuffer = 1739840
this->lpBuffer = 1739840
Leaving String& String::operator=(const String& strAnother)
Entering String Destructor!
this->lpBuffer = 1739952
this->lpBuffer = one,two,three,four
Leaving String Destructor!
one,two,three,four
Entering String Destructor!
this->lpBuffer = 1739840
this->lpBuffer = one,two,three,four
Leaving String Destructor!
840 deleted
952 deleted
*/
Page created in 0.105 seconds with 15 queries.