IUtf16StringPointerAssertions
Short summary
This interface provides assert statements for UTF-16 strings
Attention: All strings are handled as null terminated word streams. For UTF-16 is end of the string 16#00_00
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| - | No | No | IAssertCallBackSetter | - |
UML Diagram
Methods
contains
- Parameters:
stringToCheck(POINTER TO WORD): current string to checksearchString(POINTER TO WORD): string must be found instringToCheckignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans cases must be equal toomessage(AssertMessage): message if the assertion is falsenormalizeStrings(BOOL): normalize both strings for check
- Return type:
VOID
This assertion method for UTF-16 strings checks if the current string stringToCheck contains the search string searchString…
containsNo
- Parameters:
stringToCheck(POINTER TO WORD): current string to checksearchString(POINTER TO WORD): string must be found instringToCheckignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans cases must be equal toomessage(AssertMessage): message if the assertion is falsenormalizeStrings(BOOL): normalize both strings for check
- Return type:
VOID
This assertion method for UTF-16 strings checks if the current string stringToCheck contains not the search string searchString…
endsWith
- Parameters:
stringToCheck(POINTER TO WORD): current string to checkend(POINTER TO WORD): string must be the end ofstringToCheckignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans cases must be equal tootrim(BOOL):TRUEmeans truncation of spaces on the right side ofstringToCheckmessage(AssertMessage): message if the assertion is falsenormalizeStrings(BOOL): normalize both strings for check
- Return type:
VOID
This assertion method for UTF-16 strings checks if the current string stringToCheck ends with the string end…
isEqualTo
- Parameters:
stringToCheck(POINTER TO WORD): current string to checkexpected(POINTER TO WORD):stringToCheckmust be equal to expectedignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans cases must be equal toomessage(AssertMessage): message if the assertion is falsenormalizeStrings(BOOL): normalize both strings for check
- Return type:
VOID
This assertion method for utf-16 strings checks if the current string stringToCheck is equal to the expected string…
isNotEqualTo
- Parameters:
stringToCheck(POINTER TO WORD): current string to checkunexpected(POINTER TO WORD):stringToCheckmust be not equal to unexpectedignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans cases must be equal toomessage(AssertMessage): message if the assertion is falsenormalizeStrings(BOOL): normalize both strings for check
- Return type:
VOID
This assertion method for utf-16 strings checks if the current string stringToCheck is not equal to the unexpected string…
lengthIsBetween
- Parameters:
stringToCheck(POINTER TO WORD): current string to checkminLength(UDINT): lower limit of the string lengthmaxLength(UDINT): upper limit of the string lengthstringLengthUnit(UnicodeStringLengthUnit): string length units of measurementmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current string stringToCheck is length…
lengthIsExact
- Parameters:
stringToCheck(POINTER TO WORD): current string to checkexpectedLength(UDINT): expected length ofstringToCheckstringLengthUnit(UnicodeStringLengthUnit): string length units of measurementmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current string stringToCheck is length…
lengthIsMax
- Parameters:
stringToCheck(POINTER TO WORD): current string to checkmaxLength(UDINT): upper limit of the length ofstringToCheckstringLengthUnit(UnicodeStringLengthUnit): string length units of measurementmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current string stringToCheck is length…
lengthIsMin
- Parameters:
stringToCheck(POINTER TO WORD): current string to checkminLength(UDINT): lower limit of the length ofstringToCheckstringLengthUnit(UnicodeStringLengthUnit): string length units of measurementmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current string stringToCheck is length…
startsWith
- Parameters:
stringToCheck(POINTER TO WORD): current string to checkstart(POINTER TO WORD): expected start ofstringToCheckignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans cases must be equal tootrim(BOOL):TRUEmeans truncation of spaces on the right side ofstringToCheckmessage(AssertMessage): message if the assertion is falsenormalizeStrings(BOOL): normalize both strings for check
- Return type:
VOID
This assertion method for UTF-16 strings checks if the current string stringToCheck strats with the string start…
Code
Declaration
INTERFACE IUtf16StringPointerAssertions EXTENDS IAssertCallBackSetter