Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/duchain/stringhelpers.h
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | |||||
93 | /** | 93 | /** | ||
94 | * Remove characters in @p str from the beginning of @p from | 94 | * Remove characters in @p str from the beginning of @p from | ||
95 | * | 95 | * | ||
96 | * @return number of stripped characters | 96 | * @return number of stripped characters | ||
97 | */ | 97 | */ | ||
98 | int KDEVPLATFORMLANGUAGE_EXPORT strip( const QByteArray& str, QByteArray& from ); | 98 | int KDEVPLATFORMLANGUAGE_EXPORT strip( const QByteArray& str, QByteArray& from ); | ||
99 | 99 | | |||
100 | /** | 100 | /** | ||
101 | * Removes all whitespace from the string | ||||
102 | */ | ||||
103 | QString KDEVPLATFORMLANGUAGE_EXPORT removeWhitespace( const QString& str ); | ||||
104 | | ||||
105 | /** | ||||
101 | * Can be used to iterate through different kinds of parameters, for example template-parameters | 106 | * Can be used to iterate through different kinds of parameters, for example template-parameters | ||
102 | */ | 107 | */ | ||
103 | class KDEVPLATFORMLANGUAGE_EXPORT ParamIterator | 108 | class KDEVPLATFORMLANGUAGE_EXPORT ParamIterator | ||
104 | { | 109 | { | ||
105 | public: | 110 | public: | ||
106 | /** | 111 | /** | ||
107 | * @param parens Should be a string containing the two parens between which the parameters are searched. | 112 | * @param parens Should be a string containing the two parens between which the parameters are searched. | ||
108 | * Example: "<>" or "()" Optionally it can also contain one third end-character. | 113 | * Example: "<>" or "()" Optionally it can also contain one third end-character. | ||
Show All 33 Lines |