init
This commit is contained in:
30
public/tier1/utlstring.h
Normal file
30
public/tier1/utlstring.h
Normal 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
|
||||
Reference in New Issue
Block a user