language/duchain
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>
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
- 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:
KDE 4.4 API Reference