PICout::writePIString -> PICout::write

This commit is contained in:
2022-05-05 10:35:15 +03:00
parent 6995c25613
commit d1f7065c8a
3 changed files with 7 additions and 7 deletions

View File

@@ -337,7 +337,7 @@ PICout PICout::operator <<(const PIFlags<PICoutManipulators::PICoutFormat> & v)
if (!act_) return *this; \ if (!act_) return *this; \
space(); \ space(); \
if (cnb_ == 10) PICOUTTOTARGET(v) \ if (cnb_ == 10) PICOUTTOTARGET(v) \
else writePIString(PIString::fromNumber(v, cnb_)); \ else write(PIString::fromNumber(v, cnb_)); \
return *this; \ return *this; \
} }
@@ -370,7 +370,7 @@ PICout PICout::operator <<(const float v) {if (!act_) return *this; space(); PIC
PICout PICout::operator <<(const double v) {if (!act_) return *this; space(); PICOUTTOTARGET(v) return *this;} PICout PICout::operator <<(const double v) {if (!act_) return *this; space(); PICOUTTOTARGET(v) return *this;}
PICout PICout::operator <<(const void * v) {if (!act_) return *this; space(); PICOUTTOTARGET("0x") writePIString(PIString::fromNumber(ullong(v), 16)); return *this;} PICout PICout::operator <<(const void * v) {if (!act_) return *this; space(); PICOUTTOTARGET("0x") write(PIString::fromNumber(ullong(v), 16)); return *this;}
PICout PICout::operator <<(const PIObject * v) { PICout PICout::operator <<(const PIObject * v) {
if (!act_) return *this; if (!act_) return *this;
@@ -379,9 +379,9 @@ PICout PICout::operator <<(const PIObject * v) {
else { else {
PICOUTTOTARGET(v->className()) PICOUTTOTARGET(v->className())
PICOUTTOTARGET("*(0x") PICOUTTOTARGET("*(0x")
writePIString(PIString::fromNumber(ullong(v), 16)); write(PIString::fromNumber(ullong(v), 16));
PICOUTTOTARGET(", \"") PICOUTTOTARGET(", \"")
writePIString(v->name()); write(v->name());
PICOUTTOTARGET("\")") PICOUTTOTARGET("\")")
} }
return *this; return *this;
@@ -544,7 +544,7 @@ PICout & PICout::write(const char * str, int len) {
} }
PICout & PICout::writePIString(const PIString & s) { PICout & PICout::write(const PIString & s) {
if (!act_) return *this; if (!act_) return *this;
if (buffer_) { if (buffer_) {
buffer_->append(s); buffer_->append(s);

View File

@@ -293,7 +293,7 @@ public:
//! \~english Write raw \a PIString //! \~english Write raw \a PIString
//! \~russian Пишет сырой \a PIString //! \~russian Пишет сырой \a PIString
PICout & writePIString(const PIString & s); PICout & write(const PIString & s);
//! \~english Output \a PIString to stdout //! \~english Output \a PIString to stdout
//! \~russian Вывод \a PIString в stdout //! \~russian Вывод \a PIString в stdout

View File

@@ -1669,7 +1669,7 @@ PIString versionNormalize(const PIString & v) {
PICout operator <<(PICout s, const PIString & v) { PICout operator <<(PICout s, const PIString & v) {
s.space(); s.space();
s.quote(); s.quote();
s.writePIString(v); s.write(v);
s.quote(); s.quote();
return s; return s;
} }