16.01.2011 - new modules - pimath and pigeometry

This commit is contained in:
peri4
2011-01-18 13:15:41 +03:00
parent a32edb1fef
commit 3610ea9212
17 changed files with 817 additions and 63 deletions

View File

@@ -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;
}