find-string in text%
Finds an exact-match string in the editor and returns its position.
If the string is not found, #f is returned.
(-> exact non-negative integer orsenda-textfind-stringstrdirectionstartendget-start?case-sensitive?)#f
str: string
direction=: symbol in'forward'(forward backward)
start=: exact non-negative integer or'start'start
end=: exact non-negative integer or'eof'eof
get-start?=#t: boolean
case-sensitive?=#t: booleanThe
directionargument can be'forwardor'backward, indicating a forward search or backward search respectively. In the case of a forward search, the return value is the starting position of the string; for a backward search, the ending position is returned. However, ifget-start?is#f, then the other end of the string position will be returned.The
startandendarguments set the starting and ending positions of a forward search (usestart>endfor a backward search). Ifstartis'start, then the search starts at the start of the selection. Ifendis'eof, then the search continues to the end (for a forward search) or start (for a backward search) of the editor.If
case-sensitive?is#f, then an uppercase and lowercase of each alphabetic character are treated as equivalent.