Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other Languages and the fly likes Modify the existing forward traverse logic and add extra parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "Modify the existing forward traverse logic and add extra parameter" Watch "Modify the existing forward traverse logic and add extra parameter" New topic
Author

Modify the existing forward traverse logic and add extra parameter

Amit Basnak
Ranch Hand

Joined: Mar 15, 2004
Posts: 71
I have the following function that searches forward relative to the cursor position.
It not found it performs another search from the begining of the whole text.



In this basically I have to add an extra parameter in this function to search forward or backwards relative to the cursor position.
Searching backward have exactly the inverse logic implemented in forwardSearch.
Please suggest to implement backward search .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Modify the existing forward traverse logic and add extra parameter