PIConstChars

This commit is contained in:
2022-04-29 23:53:07 +03:00
parent 8c8553a6af
commit 6881fd13b7
9 changed files with 294 additions and 29 deletions

View File

@@ -526,8 +526,14 @@ PICout & PICout::newLine() {
}
PICout & PICout::write(const char * str) {
if (!act_ || !str) return *this;
return write(str, strlen(str));
}
PICout & PICout::write(const char * str, int len) {
if (!act_) return *this;
if (!act_ || !str) return *this;
if (buffer_) {
buffer_->append(PIString(str, len));
} else {