added to utf8:
bool UTF8ToWide(const char * utf8, size_t utf8_len, WTextStream & res, bool clear = true, int mode = 1); bool UTF8ToWide(const char * utf8, WTextStream & res, bool clear = true, int mode = 1); bool UTF8ToWide(const std::string & utf8, WTextStream & res, bool clear = true, int mode = 1); bool UTF8ToWide(std::istream & utf8, WTextStream & res, bool clear = true, int mode = 1); void WideToUTF8(PT::WTextStream & buffer, std::string & utf8, bool clear = true, int mode = 1); void WideToUTF8(PT::WTextStream & buffer, std::ostream & utf8, int mode = 1); these functions need some testing yet git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@1156 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -115,7 +115,7 @@ Log & Log::operator<<(const char * s)
|
||||
{
|
||||
if( buffer && file_log && s && current_level <= file_log->get_log_level() )
|
||||
{
|
||||
(*buffer) << s;
|
||||
PT::UTF8ToWide(s, *buffer, false);
|
||||
}
|
||||
|
||||
return *this;
|
||||
@@ -127,7 +127,7 @@ Log & Log::operator<<(const std::string & s)
|
||||
{
|
||||
if( buffer && file_log && current_level <= file_log->get_log_level() )
|
||||
{
|
||||
(*buffer) << s;
|
||||
PT::UTF8ToWide(s, *buffer, false);
|
||||
}
|
||||
|
||||
return *this;
|
||||
@@ -139,7 +139,7 @@ Log & Log::operator<<(const std::string * s)
|
||||
{
|
||||
if( buffer && file_log && current_level <= file_log->get_log_level() )
|
||||
{
|
||||
(*buffer) << *s;
|
||||
PT::UTF8ToWide(*s, *buffer, false);
|
||||
}
|
||||
|
||||
return *this;
|
||||
|
Reference in New Issue
Block a user