mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-01 22:03:40 -06:00
git-svn-id: svn://ultimatepp.org/upp/trunk@375 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
848f55c6fd
commit
7ca3512359
1 changed files with 2 additions and 0 deletions
|
|
@ -257,6 +257,7 @@ public:
|
|||
void Trim(int pos);
|
||||
|
||||
const char *Begin() const { return IsSmall() ? chr : ptr; }
|
||||
const char *End() const { return Begin() + GetLength(); }
|
||||
|
||||
int operator[](int i) const { ASSERT(i >= 0 && i <= GetCount()); return Begin()[i]; }
|
||||
|
||||
|
|
@ -603,6 +604,7 @@ protected:
|
|||
|
||||
public:
|
||||
const wchar *Begin() const { return ptr; }
|
||||
const wchar *End() const { return Begin() + GetLength(); }
|
||||
int operator[](int i) const { return ptr[i]; }
|
||||
|
||||
operator const wchar *() const { return Begin(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue