PIString::simplified

This commit is contained in:
2022-11-15 17:55:55 +03:00
parent d45996af28
commit a2256a3872
2 changed files with 13 additions and 0 deletions

View File

@@ -513,6 +513,15 @@ PIByteArray PIString::toCharset(const char * c) const {
}
PIString PIString::simplified() const {
PIString ret(*this);
for (int i = 0; i < ret.size_s(); ++i)
if (!ret[i].isAscii())
ret[i] = '?';
return ret;
}
PIString & PIString::operator +=(const char * str) {
if (!str) return *this;
appendFromChars(str, -1, __syslocname__);