changed utf8 functions: PascalCase to snake_case

This commit is contained in:
2021-05-21 00:24:56 +02:00
parent b574289054
commit 59d4c9a9c8
13 changed files with 161 additions and 163 deletions

View File

@@ -74,7 +74,7 @@ void FileLog::init(const std::wstring & log_file, bool log_stdout, int log_level
this->log_stdout = log_stdout;
this->log_level = log_level;
this->save_each_line = save_each_line;
WideToUTF8(log_file, this->log_file);
wide_to_utf8(log_file, this->log_file);
}
@@ -111,7 +111,7 @@ void FileLog::save_log(WTextStream * buffer)
{
if( log_stdout )
{
WideStreamToUTF8(*buffer, std::cout);
wide_stream_to_utf8(*buffer, std::cout);
}
if( !log_file.empty() )
@@ -126,7 +126,7 @@ void FileLog::save_log(WTextStream * buffer)
if( file )
{
WideStreamToUTF8(*buffer, file);
wide_stream_to_utf8(*buffer, file);
file.flush();
}
}

View File

@@ -136,7 +136,7 @@ Log & Log::operator<<(const char * s)
{
if( buffer && file_log && s && current_level <= file_log->get_log_level() )
{
UTF8ToWide(s, *buffer, false);
utf8_to_wide(s, *buffer, false);
}
return *this;
@@ -148,7 +148,7 @@ Log & Log::operator<<(const std::string & s)
{
if( buffer && file_log && current_level <= file_log->get_log_level() )
{
UTF8ToWide(s, *buffer, false);
utf8_to_wide(s, *buffer, false);
}
return *this;
@@ -160,7 +160,7 @@ Log & Log::operator<<(const std::string * s)
{
if( buffer && file_log && current_level <= file_log->get_log_level() )
{
UTF8ToWide(*s, *buffer, false);
utf8_to_wide(*s, *buffer, false);
}
return *this;