IWindows125xStringPointerAssertions
Short summary
This interface provides assert statements for Windows-1252 and Windows-1251 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 falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLE
- 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 falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLE
- 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 falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLE
- 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 falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLE
- 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 falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLE
- 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 lengthmessage(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 ofstringToCheckmessage(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 ofstringToCheckmessage(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 ofstringToCheckmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current string stringToCheck length is equal or greater 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 falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLE
- Return type:
VOID
This assertion method checks if the current string stringToCheck starts with string start.…
Code
Declaration
INTERFACE INTERNAL IWindows125xStringPointerAssertions EXTENDS IAssertCallBackSetter