find() can fail (return a null cursor) in two cases - either the searched term doesn't exist in the text or it exists but you told find() to skip the part of text where the searched term exists (that's what the cursor argument to find() is for).
find() can fail (return a null cursor) in two cases - either the searched term doesn't exist in the text or it exists but you told find() to skip the part of text where the searched term exists (that's what the cursor argument to find() is for).
And how can I tell find() not to skip the part?
Pass it an empty cursor or one that is positioned at the beginning of the text.
Bookmarks