Qt-interest Archive, May 2007
In Qt Is there any function euivalent to grep in UNIX
Message 1 in thread
D. Anil kumar
Every success has a story of great failure.
So don't stop with failure where
Success comes after failure.
Message 2 in thread
Hi,
Note that 'grep' is a command-line tool. Internally 'grep' loads a file into
memory and searches for the string in memory. You can program a grep-like tool
yourself. Since the system API doesn't provide this functionality, there
should be no performance penalty writing it yourself using bricks such as
QFile and QString. For this reason I don't think it makes sense for Qt to
provide directly such functionality (unless there's much demand from users
which doesn't seem to be the case).
--
[ signature omitted ]
Message 3 in thread
How about QRegExp ?
http://doc.trolltech.com/4.2/qregexp.html
-------------- Original message ----------------------
From: "anil kumar" <d.anil@xxxxxxxxxxxxx>
>
>
>
> D. Anil kumar
>
> Every success has a story of great failure.
> So don't stop with failure where
> Success comes after failure.
>
--- Begin Message ---
--- Begin Message ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>D. Anil kumar</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Every success has a story of great failure.<BR>So
don?t stop with failure where<BR>Success comes after
failure.<BR></FONT></DIV></BODY></HTML>
--- End Message ---
--- End Message ---