• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

language/duchain

KDevelop::ParamIterator

KDevelop::ParamIterator Class Reference

Can be used to iterate through different kinds of parameters, for example template-parameters(By giving it "<>:"). More...

#include <stringhelpers.h>

List of all members.

Public Member Functions

 ParamIterator (QString parens, QString source, int start=0)
 operator bool () const
QString operator* ()
ParamIterator & operator++ ()
uint position () const
QString prefix () const

Detailed Description

Can be used to iterate through different kinds of parameters, for example template-parameters(By giving it "<>:").

Definition at line 87 of file stringhelpers.h.


Constructor & Destructor Documentation

KDevelop::ParamIterator::ParamIterator ( QString  parens,
QString  source,
int  start = 0 
)
Parameters:
parens should be a string containing the two parens between which the parameters are searched. Example: "<>" or "()" Optionally it can also contain one third end-character. If that end-character is encountered in the prefix, the iteration will be stopped.

Example: When "<>:" is given, ParamIterator will only parse the first identifier of a c++ scope

The whole search should be stopped when: A) The end-sign is found on the top-level B) A closing-brace of parameters was found

Definition at line 531 of file stringhelpers.cpp.


Member Function Documentation

KDevelop::ParamIterator::operator bool (  )  const

Returns whether there is a current found parameter.

Definition at line 596 of file stringhelpers.cpp.

QString KDevelop::ParamIterator::operator* (  ) 

Returns current found parameter.

Definition at line 591 of file stringhelpers.cpp.

QString KDevelop::ParamIterator::prefix (  )  const

Returns the text in front of the first opening-paren(if none found then the whole text).

Definition at line 601 of file stringhelpers.cpp.


The documentation for this class was generated from the following files:
  • stringhelpers.h
  • stringhelpers.cpp

language/duchain

Skip menu "language/duchain"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal