strspan( base, start, charset )
Parameters
| Type | Description | |
| base | string | string to search through |
| start | numeric | starting offset in base |
| charset | string | characters to ignore |
_result
Set to a numeric value that is an offset into base.
Descriptions
Finds the offset of the first character in base that does not match any character in the charset string. The search for characters not in charset is started at the offset specified by the start parameter. The search is case sensitive. The strspan command sets _result to the numeric offset of the first character in base that does not match any character in charset. If all characters after position start in base are members of charset _result is set to -1. If characters not found in charset occur before the start position they will not be found. The start parameter is zero based. To search from the beginning of base use a value of 0.
In the example below the print command appends 3 to the print log for the non-matching 's' in "This".
See Also
strbreak, strlen, strins, strmid, strfind, stricmp, strrev, strtrim, strlower, strupper