updated to the new pikotools api (api2021 branch)

This commit is contained in:
Tomasz Sowa 2021-05-14 21:02:27 +02:00
parent b289aa7f0a
commit 29c7163d9b
1 changed files with 3 additions and 3 deletions

View File

@ -935,7 +935,7 @@ bool PatternParser::CreateTreeCheckProgramDirective(Item & item)
{ {
const wchar_t * old_itext = itext; const wchar_t * old_itext = itext;
if( PT::IsSubStringNoCasep(L"if", itext) ) if( PT::is_substr_nc(L"if", itext) )
{ {
itext += 2; itext += 2;
SkipWhite(); SkipWhite();
@ -948,7 +948,7 @@ bool PatternParser::CreateTreeCheckProgramDirective(Item & item)
} }
} }
if( PT::IsSubStringNoCasep(L"while", itext) ) if( PT::is_substr_nc(L"while", itext) )
{ {
itext += 5; itext += 5;
SkipWhite(); SkipWhite();
@ -1095,7 +1095,7 @@ void PatternParser::CreateTreeReadIf(Item & item)
{ {
SkipWhite(); SkipWhite();
if( PT::IsSubStringNoCasep(L"else", itext) ) if( PT::is_substr_nc(L"else", itext) )
{ {
itext += 4; itext += 4;
pitem = item.AddItem(); pitem = item.AddItem();