16.01.2011 - new modules - pimath and pigeometry
This commit is contained in:
@@ -71,11 +71,11 @@ PIString & PIString::cutMid(const int start, const int len) {
|
||||
s = 0;
|
||||
}
|
||||
if (l < 0)
|
||||
erase(begin() + s, end());
|
||||
remove(s, size() - s);
|
||||
else {
|
||||
if (l > length() - s)
|
||||
l = length() - s;
|
||||
erase(begin() + s, begin() + s + l);
|
||||
remove(s, s + l);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user