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

Kate

Public Member Functions | Static Public Member Functions | List of all members
CommandRangeExpressionParser Class Reference

#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

Range CommandRangeExpressionParser::parseRangeExpression ( const QString &  command,
KateView *  view,
QString &  destRangeExpression,
QString &  destTransformedCommand 
)
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:
  • katevicommandrangeexpressionparser.h
  • katevicommandrangeexpressionparser.cpp
This file is part of the KDE documentation.
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.

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