1
0
mirror of https://github.com/UzixLS/KernelEx.git synced 2025-07-19 07:21:20 +03:00

import KernelEx-4.0-Final

This commit is contained in:
UzixLS
2018-11-03 16:20:02 +03:00
parent 339353cce8
commit 30df122aba
339 changed files with 11011 additions and 1945 deletions

12
common/sstring.hpp Executable file → Normal file
View File

@ -24,6 +24,7 @@
#include <string.h>
/** Simple string container class. */
class sstring
{
public:
@ -55,12 +56,21 @@ public:
return *this;
}
sstring& operator=(const char* src)
{
len = strlen(src);
delete [] storage;
storage = new char[len + 1];
strcpy(storage, src);
return *this;
}
bool operator<(const sstring& a) const
{
return strcmp(storage, a.storage) < 0;
}
const char* get() const
operator const char*() const
{
return storage;
}