Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/duchain/stringhelpers.cpp
Show First 20 Lines • Show All 502 Lines • ▼ Show 20 Line(s) | 502 | { | |||
---|---|---|---|---|---|
503 | return formatComment_impl<QByteArray>(comment); | 503 | return formatComment_impl<QByteArray>(comment); | ||
504 | } | 504 | } | ||
505 | 505 | | |||
506 | QString formatComment(const QString& comment) | 506 | QString formatComment(const QString& comment) | ||
507 | { | 507 | { | ||
508 | return formatComment_impl<QString>(comment); | 508 | return formatComment_impl<QString>(comment); | ||
509 | } | 509 | } | ||
510 | 510 | | |||
511 | QString removeWhitespace(const QString& str) | ||||
512 | { | ||||
513 | return str.simplified().remove(" "); | ||||
mwolff: remove(QLatin1Char(' ')) | |||||
514 | } | ||||
515 | | ||||
516 | | ||||
511 | 517 | | |||
512 | ParamIterator::~ParamIterator() = default; | 518 | ParamIterator::~ParamIterator() = default; | ||
513 | 519 | | |||
514 | ParamIterator::ParamIterator(const QString& parens, const QString& source, int offset) | 520 | ParamIterator::ParamIterator(const QString& parens, const QString& source, int offset) | ||
515 | : d(new ParamIteratorPrivate) | 521 | : d(new ParamIteratorPrivate) | ||
516 | { | 522 | { | ||
517 | d->m_source = source; | 523 | d->m_source = source; | ||
518 | d->m_parens = parens; | 524 | d->m_parens = parens; | ||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |
remove(QLatin1Char(' '))