EndsWith

STD.Str.EndsWith( src, suffix )

STD.Uni.EndsWith( src, suffix, form )

srcThe string to search.
suffixThe string to find.
formThe type of Unicode normalization to be employed. (NFC, NFD, NFKC, or NFKD)
Return: EndsWith returns a BOOLEAN value.

The EndsWith function returns TRUE if the src ends with the text in the suffix parameter.

Trailing and Leading spaces are stripped from the suffix before matching.

For the Unicode version, unless specified, normalization will not occur. Unless initiated as hex and then converted to Unicode using TRANSFER, ECL will perform its own normalization on your declared Unicode string.

Example:

IMPORT STD;
STD.STr.EndsWith('a word away','away');   //returns TRUE
STD.STr.EndsWith('a word a way','away');  //returns FALSE