CmpAlphabeticallyCI (FUN)

FUNCTION CmpAlphabeticallyCI : INT

Helper function for CmpInstancePaths: compares two strings alphabetically, ignoring case.

See ASCII_to_SortIdx for the exact sorting order of all ASCII characters.

Returns a value > 0 if identifier 1 comes after identifier 2, 0 if they are equal, and a value < 0 if identifier 1 comes before identifier 2.

InOut:

Scope

Name

Type

Return

CmpAlphabeticallyCI

INT

Input

pSt1

POINTER TO BYTE

udiLen1

UDINT

pSt2

POINTER TO BYTE

udiLen2

UDINT