containsNo
Short summary
This assertion method for UTF-16 strings checks if the current string stringToCheck contains not the search string searchString
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| stringToCheck | ( Tc2_System.MAX_STRING_LENGTH ) | current string to check | input |
| searchString | ( Tc2_System.MAX_STRING_LENGTH ) | string that must not be found in stringToCheck | input |
| message | AssertMessage | message if the assertion is false | input |
| ignoreCases | BOOL | TRUE means ignore cases; FALSE means cases must be equal too | input |
| normalizeStrings | BOOL | normalize both strings for check | input |
Code
Declaration
METHOD containsNo
VAR_INPUT
(* current string to check *)
stringToCheck :WSTRING(Tc2_System.MAX_STRING_LENGTH);
(* string that must not be found in ``stringToCheck`` *)
searchString :WSTRING(Tc2_System.MAX_STRING_LENGTH);
(* message if the assertion is false *)
message :AssertMessage;
(* ``TRUE`` means ignore cases; ``FALSE`` means cases must be equal too *)
ignoreCases :BOOL := FALSE;
(*normalize both strings for check*)
normalizeStrings :BOOL := TRUE;
END_VAR
Implementation
THIS^.assertion.containsNo(
stringToCheck := ADR(stringToCheck),
searchString := ADR(searchString),
ignoreCases := ignoreCases,
message := message,
normalizeStrings := normalizeStrings
);