(update to the new pikotools api): use a char32_t character as a main character when converting strings
Use a char32_t instead of a wchar_t type. This is needed on systems where sizeof(wchar_t) is equal to 2. This affects classes based on the pt::Stream such as Log and HtmlTextStream.
This commit is contained in:
@@ -197,6 +197,13 @@ Log & Log::operator<<(wchar_t s)
|
||||
}
|
||||
|
||||
|
||||
Log & Log::operator<<(char32_t s)
|
||||
{
|
||||
pt::Log::operator<<(s);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Log & Log::operator<<(unsigned short s)
|
||||
{
|
||||
pt::Log::operator<<(s);
|
||||
|
||||
@@ -74,6 +74,7 @@ public:
|
||||
virtual Log & operator<<(char s);
|
||||
virtual Log & operator<<(unsigned char);
|
||||
virtual Log & operator<<(wchar_t s);
|
||||
virtual Log & operator<<(char32_t s);
|
||||
virtual Log & operator<<(bool);
|
||||
virtual Log & operator<<(short);
|
||||
virtual Log & operator<<(int s);
|
||||
|
||||
Reference in New Issue
Block a user