• Reference Guide


skip_blank(str, n)
Returns the index of the first non-space character in the string str after the position n (including the character at the index n). In other words, the function skips all spaces beginning at the index n. If no such a character is found, the function returns the size of the entire remaining portion of the string str. The characters are indexed from 0. If n is negative, value 0 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.
Following characters are considered spaces: ' ' (space), '`t' (tabulator), '`r', '`n' (new line) a '`f' (new page) (see text constants).
The functions whose name begins with skip_… serve to analyze a string. The best way to use them is to create a variable containing an index (pointer) of the current position within the string. This variable is passed to the appropriate skip­_… function as the parameter determining the place, where to search the string from. The resulting value (the new pointer) is then assigned back to the variable.
pos = skip_blank(str, pos)

See Also