IUtf8StringPointerAssertions
Short summary
This interface provides assert statements for UTF-8 string pointers
Attention: All strings are handled as null-terminated byte streams
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| - | No | No | IAssertCallBackSetter | - |
UML Diagram
Methods
contains
- Parameters:
stringToCheck(POINTER TO BYTE): current string to checksearchString(POINTER TO BYTE): string must be found instringToCheckignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that cases must be equal toomessage(AssertMessage): message if the assertion is falsenormalizeStrings(BOOL): normalize both strings for check
- Return type:
VOID
This assertion method checks if the current string stringToCheck contains the search string searchString…
containsNo
- Parameters:
stringToCheck(POINTER TO BYTE): current string to checksearchString(POINTER TO BYTE): string must be found instringToCheckignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that cases must be equal toomessage(AssertMessage): message if the assertion is falsenormalizeStrings(BOOL): normalize both strings for check
- Return type:
VOID
This assertion method checks if the current string stringToCheck doesn't contain the search string searchString…
endsWith
- Parameters:
stringToCheck(POINTER TO BYTE): current string to checkend(POINTER TO BYTE): string must be the end ofstringToCheckignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that 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 checks if the current string stringToCheck ends with the string end…
isEqualTo
- Parameters:
stringToCheck(POINTER TO BYTE): current string to checkexpected(POINTER TO BYTE):stringToCheckmust be equal to expectedignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that cases must be equal toomessage(AssertMessage): message if the assertion is falsenormalizeStrings(BOOL): normalize both strings for check
- Return type:
VOID
This assertion method checks if the current string stringToCheck is equal to expected…
isNotEqualTo
- Parameters:
stringToCheck(POINTER TO BYTE): current string to checkunexpected(POINTER TO BYTE):stringToCheckmust be not equal to expectedignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that cases must be equal toomessage(AssertMessage): message if the assertion is falsenormalizeStrings(BOOL): normalize both strings for check
- Return type:
VOID
This assertion method checks if the current string stringToCheck is not equal to unexpected…
lengthIsBetween
- Parameters:
stringToCheck(POINTER TO BYTE): 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 length is between minLength and maxLength…
lengthIsExact
- Parameters:
stringToCheck(POINTER TO BYTE): 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 length is equal to expectedLength…
lengthIsMax
- Parameters:
stringToCheck(POINTER TO BYTE): 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 length is equal or less than to maxLength…
lengthIsMin
- Parameters:
stringToCheck(POINTER TO BYTE): 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 length is equal or grater than to minLength…
startsWith
- Parameters:
stringToCheck(POINTER TO BYTE): current string to checkstart(POINTER TO BYTE): expected start ofstringToCheckignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that cases must be equal tootrim(BOOL):TRUEmeans truncation of spaces on the left side ofstringToCheckmessage(AssertMessage): message if the assertion is falsenormalizeStrings(BOOL): normalize both strings for check
- Return type:
VOID
This assertion method checks if the current string stringToCheck starts with string start…
Code
Declaration
INTERFACE INTERNAL IUtf8StringPointerAssertions EXTENDS IAssertCallBackSetter