Skip to main content

containsNo

Short summary

This assertion method checks if the current string stringToCheck doesn't contain the search string searchString. Processed strings must be in UTF-8 encoding

Parameters

NameTypeCommentKind
stringToCheckTc2_System.T_MaxStringcurrent string to checkinput
searchStringTc2_System.T_MaxStringstring that must not be found in stringToCheckinput
messageAssertMessagemessage if the assertion is falseinput
ignoreCasesBOOLTRUE means ignore cases; FALSE means that cases must be equal tooinput
normalizeStringsBOOLnormalize both strings for checkinput

Code

Declaration

METHOD containsNo
VAR_INPUT
(* current string to check *)
{attribute 'TcEncoding' := 'UTF-8'}
stringToCheck :Tc2_System.T_MaxString;
(* string that must not be found in ``stringToCheck`` *)
{attribute 'TcEncoding' := 'UTF-8'}
searchString :Tc2_System.T_MaxString;
(* message if the assertion is false *)
message :AssertMessage;
(* ``TRUE`` means ignore cases; ``FALSE`` means that cases must be equal too *)
ignoreCases :BOOL := FALSE;
(*normalize both strings for check*)
normalizeStrings :BOOL := TRUE;
END_VAR