long FindString (char *str, int direction = 1, long start = -1, long end = -1,
Bool getStart = TRUE, Bool caseSensitive = TRUE)
Find an exact-match string in the buffer. direction can be 1 or -1, 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, if getStart is FALSE, then the other end of the string position will be returned. If the string is not found, -1 is returned.
You can set the starting and ending positions of a forward search; (start > end for a backward search). If start is -1, then the search starts at the start of the selection. If end is -1, then the search continues to the end/start of the buffer.
If caseSensitive is FALSE, then an uppercase and lowercase of each alphabetic character are treated as equivalent.