Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

KateCommands::SedReplace Class Reference

#include </home/clem/local/src/opie/noncore/apps/tinykate/libkate/document/katecmds.h>

Inheritance diagram for KateCommands::SedReplace:

Inheritance graph
[legend]
Collaboration diagram for KateCommands::SedReplace:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SedReplace (KateDocument *doc=0)
bool execCmd (QString cmd=0, KateView *view=0)

Static Private Member Functions

static QString sedMagic (QString textLine, QString find, QString replace, bool noCase, bool repeat)

Detailed Description

-- Charles Samuels <charles@kde.org> Support vim/sed find and replace s/search/replace/ find search, replace with replace on this line s/search/replace/ do the same to the whole file s/search/replace/i do the S. and R., but case insensitively $s/search/replace/ do the search are replacement to the selection only

$s/// is currently unsupported

Definition at line 55 of file katecmds.h.


Constructor & Destructor Documentation

KateCommands::SedReplace::SedReplace KateDocument doc = 0  )  [inline]
 

Definition at line 58 of file katecmds.h.


Member Function Documentation

bool KateCommands::SedReplace::execCmd QString  cmd = 0,
KateView view = 0
[virtual]
 

Implements KateCmdParser.

Definition at line 186 of file katecmds.cpp.

References KateView::currentLine(), KateView::currentTextLine(), KateView::doc(), Opie::Core::endl(), KateCommands::exchangeAbbrevs(), kdDebug(), QString::latin1(), repeat(), KateCommands::replace(), sedMagic(), KateCommands::setLineText(), text, and KateView::textLine().

QString KateCommands::SedReplace::sedMagic QString  textLine,
QString  find,
QString  replace,
bool  noCase,
bool  repeat
[static, private]
 

Definition at line 127 of file katecmds.cpp.

References KateCommands::backslashString(), QValueList< T >::begin(), QValueList< T >::end(), i, QString::length(), QString::number(), KateCommands::replace(), QString::replace(), and start.

Referenced by execCmd().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:58:59 2005 for OPIE by  doxygen 1.4.2