kate Library API Documentation

KateCommands::SedReplace Class Reference

-- 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. More...

#include <katecmds.h>

Inheritance diagram for KateCommands::SedReplace:

Kate::Command List of all members.

Public Member Functions

bool exec (class Kate::View *view, const QString &cmd, QString &errorMsg)
bool help (class Kate::View *, const QString &, QString &)
QStringList cmds ()

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 62 of file katecmds.h.


Member Function Documentation

bool KateCommands::SedReplace::exec class Kate::View view,
const QString cmd,
QString errorMsg
[virtual]
 

Execute this command for the given view and cmd string, return a bool about success, msg for status.

Implements Kate::Command.

Definition at line 330 of file katecmds.cpp.

References QRegExp::cap(), endl(), exec(), kdDebug(), and QRegExp::search().

Referenced by exec().

bool KateCommands::SedReplace::help class Kate::View ,
const QString ,
QString
[inline, virtual]
 

Shows help for the given view and cmd string, return a bool about success, msg for status.

Implements Kate::Command.

Definition at line 67 of file katecmds.h.

References help().

Referenced by help().

QStringList KateCommands::SedReplace::cmds  )  [inline, virtual]
 

Pure text start part of the commands which can be handled by this object which means i.e.

for s/sdl/sdf/g => s or for char:1212 => char

Implements Kate::Command.

Definition at line 69 of file katecmds.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kate Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 16 17:24:03 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003