mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-24 13:31:14 +00:00
2f9f0c732e
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@277 67975925-1194-0748-b3d5-c16f83f1a3a1
55 lines
627 B
C++
55 lines
627 B
C++
|
|
#ifndef VGUI_STRING_H
|
|
#define VGUI_STRING_H
|
|
|
|
#include<VGUI.h>
|
|
|
|
|
|
namespace vgui
|
|
{
|
|
|
|
class VGUIAPI String
|
|
{
|
|
|
|
friend class String;
|
|
|
|
private:
|
|
|
|
char* _text;
|
|
|
|
public:
|
|
|
|
String();
|
|
String(const char* text);
|
|
String(const String& src);
|
|
|
|
public:
|
|
|
|
~String();
|
|
|
|
private:
|
|
|
|
int getCount(const char* text);
|
|
|
|
public:
|
|
|
|
int getCount();
|
|
String operator+(String text);
|
|
String operator+(const char* text);
|
|
bool operator==(String text);
|
|
bool operator==(const char* text);
|
|
char operator[](int index);
|
|
const char* getChars();
|
|
|
|
public:
|
|
|
|
static void test();
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
#endif
|
|
|