Sfairadora

  • Reference Guide

skip_cchars_back

skip_cchars_back(str, n, set)
Returns the index of the first character in the string str before the position n (including the character at the index n) that is contained in the string set. If no such character is found, the function returns –1. In other words, it skips back all the characters not contained in specified set. The characters are indexed from 0. If n is negative, is used.
The parameter str can be a String, Text or Rich_string. The parameter n and the return value are of the type Int. The parameter set is a String. If the parameter str is a Rich_string, then the set can be a Rich_string, too. In that case, the format of the characters in the set is also regarded.
Note: this function serves to manipulate character strings. To handle binary data, use the analogical function skip_cbytes_back.

See Also