Storing another coordinate would allow the search request to find the next word on the given line after the horizontal coordinate...
For example with the line:
"Hello Joe, Hello Fred."
I could search like this:
search("Hello", 1, 0) (which would search for the string Hello starting at line 1, column 0)
If I wanted the next hello I would search for search("Hello", 1, 5), which would search for the string Hello starting at line 1, column 5 and should return the "next" Hello. I'm pretty sure this is how the "find next" option works in a program like MS Word... (it stores line and column numbers...)
|