Kate
#include <katevicommandrangeexpressionparser.h>
Public Member Functions | |
| CommandRangeExpressionParser () | |
Static Public Member Functions | |
| static KTextEditor::Range | parseRangeExpression (const QString &command, KateView *view, QString &destRangeExpression, QString &destTransformedCommand) |
Detailed Description
Definition at line 32 of file katevicommandrangeexpressionparser.h.
Constructor & Destructor Documentation
| CommandRangeExpressionParser::CommandRangeExpressionParser | ( | ) |
Definition at line 37 of file katevicommandrangeexpressionparser.cpp.
Member Function Documentation
|
static |
Attempt to parse any leading range expression (e.g.
"%", "'<,'>", ".,+6" etc) in command and return it as a Range. If parsing was successful, the range will be valid, the string making up the range expression will be placed in destRangeExpression, and the command with the range stripped will be placed in destTransformedCommand. In some special cases, the destTransformedCommand will be further re-written e.g. a command in the form of just a number will be rewritten as "goto <number>".
An invalid Range is returned if no leading range expression could be found.
Definition at line 68 of file katevicommandrangeexpressionparser.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:57:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference