Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modify the existing forward traverse logic and add extra parameter

 
Amit Basnak
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic