(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);
|
||||
|
Reference in New Issue
Block a user