• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Kate

  • kde-4.14
  • applications
  • kate
  • part
  • vimode
katevicommandrangeexpressionparser.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries and the Kate part.
2  *
3  * Copyright (C) 2008 - 2009 Erlend Hamberg <ehamberg@gmail.com>
4  * Copyright (C) 2011 Svyatoslav Kuzmich <svatoslav1@gmail.com>
5  * Copyright (C) 2012 Vegard Øye
6  * Copyright (C) 2013 Simon St James <kdedevel@etotheipiplusone.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public License
19  * along with this library; see the file COPYING.LIB. If not, write to
20  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  * Boston, MA 02110-1301, USA.
22  */
23 #ifndef KATE_VI_COMMAND_RANGE_EXPRESSION_PARSER_INCLUDED
24 #define KATE_VI_COMMAND_RANGE_EXPRESSION_PARSER_INCLUDED
25 
26 #include <ktexteditor/range.h>
27 
28 #include <QtCore/QRegExp>
29 
30 class KateView;
31 
32 class CommandRangeExpressionParser
33 {
34 public:
35  CommandRangeExpressionParser();
46  static KTextEditor::Range parseRangeExpression(const QString& command, KateView* view, QString& destRangeExpression, QString& destTransformedCommand);
47 private:
48  KTextEditor::Range parseRangeExpression(const QString& command, QString& destRangeExpression, QString& destTransformedCommand, KateView* view);
49  int calculatePosition( const QString& string, KateView *view );
50  QRegExp m_line;
51  QRegExp m_lastLine;
52  QRegExp m_thisLine;
53  QRegExp m_mark;
54  QRegExp m_forwardSearch;
55  QRegExp m_forwardSearch2;
56  QRegExp m_backwardSearch;
57  QRegExp m_backwardSearch2;
58  QRegExp m_base;
59  QRegExp m_offset;
60  QRegExp m_position;
61  QRegExp m_cmdRange;
62 };
63 
64 #endif
CommandRangeExpressionParser
Definition: katevicommandrangeexpressionparser.h:32
CommandRangeExpressionParser::parseRangeExpression
static KTextEditor::Range parseRangeExpression(const QString &command, KateView *view, QString &destRangeExpression, QString &destTransformedCommand)
Attempt to parse any leading range expression (e.g.
Definition: katevicommandrangeexpressionparser.cpp:68
QRegExp
CommandRangeExpressionParser::CommandRangeExpressionParser
CommandRangeExpressionParser()
Definition: katevicommandrangeexpressionparser.cpp:37
QString
KateView
Definition: kateview.h:77
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal