Started work on build system

This commit is contained in:
2025-05-31 00:42:41 +03:00
parent 953cca2aa4
commit ade32c24a6
33 changed files with 369 additions and 498 deletions

View File

@@ -27,6 +27,11 @@ CUtlString::CUtlString( const char *szFormat, ... )
va_end(vlArgs);
}
CUtlString::CUtlString( const CUtlString &sz )
{
m_data = sz.m_data;
};
void CUtlString::AppendTail( const char *psz )
{
m_data.AppendTail(psz,V_strlen(psz));
@@ -65,7 +70,14 @@ CUtlString::operator char*( void )
return GetString();
}
bool CUtlString::operator==(const char* psz)
CUtlString &CUtlString::operator=(const CUtlString &sz)
{
if (this != &sz)
m_data = sz.m_data;
return *this;
}
bool CUtlString::operator==(const char *psz)
{
if (psz==0)
psz = "";
@@ -73,7 +85,7 @@ bool CUtlString::operator==(const char* psz)
return true;
return false;
}
bool CUtlString::operator!=(const char* psz)
bool CUtlString::operator!=(const char *psz)
{
if (psz==0)
psz = "";
@@ -82,13 +94,13 @@ bool CUtlString::operator!=(const char* psz)
return true;
}
bool CUtlString::operator==(CUtlString& string)
bool CUtlString::operator==(CUtlString &string)
{
if (!V_strcmp(GetString(), string.GetString()))
return true;
return false;
}
bool CUtlString::operator!=(CUtlString& string)
bool CUtlString::operator!=(CUtlString &string)
{
if (!V_strcmp(GetString(), string.GetString()))
return false;