updated to the current pikotools api from branch api2021

This commit is contained in:
2021-05-11 22:20:46 +02:00
parent 85f9fda984
commit f1af7e2eeb
15 changed files with 54 additions and 80 deletions

View File

@@ -143,7 +143,7 @@ bool ExportInfo::SkipDir(long dir_id, std::wstring & dir)
{
if( system->dirs.MakePath(dir_id, tmp_dir) )
{
if( !tmp_dir.empty() && PT::IsSubString(tmp_dir, dir) )
if( !tmp_dir.empty() && PT::is_substr(tmp_dir, dir) )
{
// tmp_dir has a slash at the end
// we want the slash at the beginning

View File

@@ -393,13 +393,13 @@ bool ExportThread::HasThumbInAdress(std::string & buf, size_t i)
for( ; i<buf.size() ; ++i)
{
if( PT::IsSubStringp(thumb1, &buf[i]) )
if( PT::is_substr(thumb1, &buf[i]) )
{
buf.erase(i, len1);
return true;
}
if( PT::IsSubStringp(thumb2, &buf[i]) )
if( PT::is_substr(thumb2, &buf[i]) )
{
buf.erase(i, len2);
return true;
@@ -427,7 +427,7 @@ void ExportThread::ChangeAdressesThumb(std::string & buf, const char * http_pref
for(size_t i=0 ; i<buf.size() ; ++i)
{
if( PT::IsSubStringp(look_for_url.c_str(), &buf[i]) )
if( PT::is_substr(look_for_url.c_str(), &buf[i]) )
{
i += look_for_url.size() - 1; // without skipping the last slash