updated to the new pikotools api: changed utf8 functions PascalCase to snake_case
This commit is contained in:
@@ -123,7 +123,7 @@ bool ExportInfo::DecodePass(Export & exp)
|
||||
/*
|
||||
if( system->crypt.RSA(false, rsa_key, exp.ftp_pass_bin, pass_decrypted) )
|
||||
{
|
||||
pt::UTF8ToWide(pass_decrypted, exp.ftp_pass);
|
||||
pt::utf8_to_wide(pass_decrypted, exp.ftp_pass);
|
||||
system->crypt.ClearString(pass_decrypted);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -262,7 +262,7 @@ return len;
|
||||
void ExportThread::Convert(const std::wstring & in, std::string & out, bool clear)
|
||||
{
|
||||
Lock();
|
||||
pt::WideToUTF8(in, out, clear);
|
||||
pt::wide_to_utf8(in, out, clear);
|
||||
Unlock();
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010-2014, Tomasz Sowa
|
||||
* Copyright (c) 2010-2021, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -96,7 +96,7 @@ void Stats::ReadStats()
|
||||
if( stats_file.empty() )
|
||||
return;
|
||||
|
||||
pt::WideToUTF8(stats_file, astats_file);
|
||||
pt::wide_to_utf8(stats_file, astats_file);
|
||||
std::ifstream file(astats_file.c_str());
|
||||
|
||||
if( !file )
|
||||
@@ -147,7 +147,7 @@ void Stats::SaveStats()
|
||||
if( stats_file.empty() )
|
||||
return;
|
||||
|
||||
pt::WideToUTF8(stats_file, astats_file);
|
||||
pt::wide_to_utf8(stats_file, astats_file);
|
||||
std::ofstream file(astats_file.c_str());
|
||||
|
||||
if( !file )
|
||||
|
||||
Reference in New Issue
Block a user