PIString/PIChar explicit, support char16_t
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#ifdef QNX
|
||||
typedef std::basic_string<wchar_t> wstring;
|
||||
#endif
|
||||
#include "piliterals.h"
|
||||
#include "pistringlist.h"
|
||||
|
||||
|
||||
@@ -117,12 +118,12 @@ inline std::istream & operator>>(std::istream & s, PIString & v) {
|
||||
|
||||
//! \relatesalso PIStringList \brief Output operator to std::ostream (cout)
|
||||
inline std::ostream & operator<<(std::ostream & s, const PIStringList & v) {
|
||||
s << PIChar("{");
|
||||
s << PIChar('{');
|
||||
for (uint i = 0; i < v.size(); ++i) {
|
||||
s << PIChar("\"") << v[i] << PIChar("\"");
|
||||
if (i < v.size() - 1) s << PIStringAscii(", ");
|
||||
s << PIChar('"') << v[i] << PIChar('"');
|
||||
if (i < v.size() - 1) s << ", "_a;
|
||||
}
|
||||
s << PIChar("}");
|
||||
s << PIChar('}');
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user