This commit is contained in:
2025-05-25 23:37:40 +03:00
commit 7f054e2904
79 changed files with 4850 additions and 0 deletions

30
public/tier1/utlstring.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef TIER1_UTL_STRING_H
#define TIER1_UTL_STRING_H
#include "tier1/utlvector.h"
class CUtlString {
public:
CUtlString( void );
CUtlString( const char *psz, ... );
void AppendTail( const char *psz );
void AppendHead( const char *psz );
void AppendAt( size_t nPosition, const char *psz );
void RemoveTail( size_t nCount );
void RemoveHead( size_t nCount );
void RemoveAt( size_t nPosition, size_t nCount );
char *GetString( void );
size_t GetLenght( void );
operator char*( void );
bool operator==(const char* psz);
bool operator!=(const char* psz);
bool operator==(CUtlString& string);
bool operator!=(CUtlString& string);
private:
CUtlVector<char> m_data;
};
#endif