Find length of a suffix of a string
──────────────────────────────────────────────────────────────────────────────
Syntax
GT_StrRight(<cStr>, <cChars>) --> nLen
Arguments:
<cStr> - The input string
<cChars> - The set of characters to find
Returns:
nLen - The length of the prefix found.
Description:
Return the length of the trailing segment in the passed string
<cStr> that consists solely of the characters in the character
set <cChars>.
If no characters in the the search set are found, the function
shall return 0
Examples:
? GT_StrRight("this is a test", "teas ") // prints 8
? GT_StrRight("this is a test", "tes h") // prints 5
? GT_StrRight("this is a test", "zxy") // prints 0
Source: STRRIGHT.C
Author: Andy M Leighton