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

@@ -192,7 +192,7 @@ void dir_has_parents(Info & i)
dir_parents_str += '/';
}
i.res = PT::IsSubString(i.par, dir_parents_str);
i.res = PT::is_substr(i.par, dir_parents_str);
}

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2018, Tomasz Sowa
* Copyright (c) 2008-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -163,8 +163,8 @@ void doc_css_tab_file_is_global(Info & i)
// !! z konfiga wziasc przedrostki
if( doc_css_index < cur->session->last_css.size() )
i.res = PT::IsSubString(L"http://", cur->session->last_css[doc_css_index].c_str()) ||
PT::IsSubString(L"https://", cur->session->last_css[doc_css_index].c_str());
i.res = PT::is_substr(L"http://", cur->session->last_css[doc_css_index].c_str()) ||
PT::is_substr(L"https://", cur->session->last_css[doc_css_index].c_str());
}

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2018, Tomasz Sowa
* Copyright (c) 2008-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -122,8 +122,8 @@ void mount_css_tab_file_is_global(Info & i)
int parcss = system->mounts.MountParCss();
if( mount_css_index < cur->mount->param[parcss].arg.size() )
i.res = PT::IsSubString(L"http://", cur->mount->param[parcss].arg[mount_css_index].c_str()) ||
PT::IsSubString(L"https://", cur->mount->param[parcss].arg[mount_css_index].c_str());
i.res = PT::is_substr(L"http://", cur->mount->param[parcss].arg[mount_css_index].c_str()) ||
PT::is_substr(L"https://", cur->mount->param[parcss].arg[mount_css_index].c_str());
}