mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-14 18:11:41 -06:00
Origial James Hoo mod to 16.04
This commit is contained in:
@@ -364,7 +364,14 @@ public:
|
||||
void Delete(unsigned index) throw();
|
||||
void Delete(unsigned index, unsigned count) throw();
|
||||
void DeleteFrontal(unsigned num) throw();
|
||||
void DeleteBack() { _chars[--_len] = 0; }
|
||||
// void DeleteBack() { _chars[--_len] = 0; }
|
||||
void DeleteBack()
|
||||
{
|
||||
if (_len >= 1)
|
||||
{
|
||||
_chars[--_len] = 0;
|
||||
}
|
||||
}
|
||||
void DeleteFrom(unsigned index)
|
||||
{
|
||||
if (index < _len)
|
||||
@@ -537,6 +544,7 @@ public:
|
||||
void SetFromAscii(const char *s);
|
||||
void AddAscii(const char *s);
|
||||
|
||||
UString Mid(unsigned startIndex) const { return Mid(startIndex, _len - startIndex); }
|
||||
UString Mid(unsigned startIndex, unsigned count) const { return UString(count, _chars + startIndex); }
|
||||
UString Left(unsigned count) const { return UString(count, *this); }
|
||||
|
||||
@@ -600,7 +608,14 @@ public:
|
||||
void Delete(unsigned index) throw();
|
||||
void Delete(unsigned index, unsigned count) throw();
|
||||
void DeleteFrontal(unsigned num) throw();
|
||||
void DeleteBack() { _chars[--_len] = 0; }
|
||||
// void DeleteBack() { _chars[--_len] = 0; }
|
||||
void DeleteBack()
|
||||
{
|
||||
if (_len >= 1)
|
||||
{
|
||||
_chars[--_len] = 0;
|
||||
}
|
||||
}
|
||||
void DeleteFrom(unsigned index)
|
||||
{
|
||||
if (index < _len)
|
||||
|
||||
Reference in New Issue
Block a user