Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Backward scanning

Hello Friends,
     I have a strange requirement. I a C++ program, I need to scan backwards
from the current cursor position and identify the start of the logical line
(logical line is explained below) and fetch the complete statement.
     Any class in CDT going to help me. Any other ideas or tools? Hints
please.


Logical line:
==========
 Take line

       2> int i;
       3> test().testmethod().
       4> anothertestmethod(); //Place cursor here. Now the logical line is
line 3. The start of the statement.

Thanks for the suggestions in advance.

-Rams
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


Back to the top