> Depends on what exactly you expect from such a thing.  No, cscope doesn't
> try to imitate grep.  That's what grep itself is for.  There is a
> command-line, single-shot mode though.  See option -L in the manpage.

grep works horribly for large projects - especially for NFS - but is
in turn very useful
for searching files. cscope has (or could have with the right
algorithms) a much
faster way of looking through a large project (plaintext or not), but
in turn requires extra space.

If you have this extra space, don't you see how this could be a
exceedingly useful
thing to have? Think 'locate' except for text.

>
>> 4. How well does it do on large, arbitrary text (as opposed to code)
>
> It doesn't.  This is cscope, not Google.

think it through a bit. Even open source code search engines have
plaintext search;
say I don't know a given function (or class, etc) but I know a comment
that I used.
Any complete code searching engine should have the ability to search
very quickly
for arbitrary text.

And if it has the ability to look for arbitrary text in code, it could
easily be made into a
generic indexing engine, so you get a fully new functional area for free.

But anyways, since it sounds like cscope has decided on its boundaries, let me
rephrase the question - is anyone aware of an open source indexer that
can do this?
It should be able to index arbitrary text for sub-linear pattern matching.

Ed

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Cscope-devel mailing list
Cscope-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cscope-devel

Reply via email to