User forums > General (but related to Code::Blocks)
[feature request] search exclude #ifdef's?
Hans Henrik:
like the subject says...
would it be an idea to add a option for search to exclude searching in specific #ifdef~'s?
(and i *guess* its possible with some WayToCompilcatedRegEx already but.. i have no idea how to write a regex like that)
also.. this is the right place to post feature requests, right??
an other idea: feature-request board?
dje:
Hi!
It is not possible with ThreadSearch plugin, because it uses a line by line algorithm and the parser can't know it line is contained inside an ifdef.
I don't remember for standard search in files.
Dje
Hans Henrik:
both standard search and thread-search has support for regular expressions, so line-by-line should be no problem.. (using regex to store each line for comparison, like ^(.*)(\r?\n\1 ) )
dje:
what I mean is parser gets one line, looks if this line matches regexp, not the whole text file, and stores result in this case.
You can't know what was before, even with backtracking.
Dje
Hans Henrik:
ok...
so i guess thats where the developing comes in. :p
Navigation
[0] Message Index
[#] Next page
Go to full version