mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
0fab880126
commit
351994a6cc
2823 changed files with 619073 additions and 0 deletions
16
uppdev/NewCore2/AString.h
Normal file
16
uppdev/NewCore2/AString.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef _NewCore_AString_h_
|
||||
#define _NewCore_AString_h_
|
||||
|
||||
template <class B, class tchar>
|
||||
class AString : public B {
|
||||
public:
|
||||
void Clear() { B::Free(); B::Zero(); }
|
||||
int GetLength() const { return GetCount(); }
|
||||
|
||||
int operator[](int i) const { ASSERT(i >= 0 && i <= GetCount()); return Begin()[i]; }
|
||||
|
||||
operator const tchar *() const { return Begin(); }
|
||||
const tchar *operator~() const { return Begin(); }
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue