Wednesday, May 4, 2016

specialized searching in C++

Is it possible to search for a string foo with in the class bar while
working with C++ header files?

In C++, a class is written as

class bar
{
var1;
var2;
...
func1();
func2();
...
};

and a typical header file will contain many such classes. Obviously, I
am oversimplifying things here. But the idea is to do something like

/bar::foo

where foo will be searched with in the text enclosed by { and } that
belongs to class bar. The header file may have many other hits for
"foo" outside the class definition. But I am not interested in those.
Any ideas on how to achieve something like this?

thanks
raju
--
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: