MCPcopy Create free account
hub / github.com/KDE/kdevelop / endsWithWordBoundary

Function endsWithWordBoundary

kdevplatform/language/duchain/stringhelpers.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15namespace {
16bool endsWithWordBoundary(QStringView str)
17{
18 if (str.isEmpty()) {
19 return true;
20 }
21 const auto boundary = str.last();
22 return !boundary.isLetterOrNumber() && boundary != QLatin1Char('_');
23}
24
25/// libclang surrounds binary operators but not angle brackets with spaces.
26bool isOperatorSurroundedWithSpaces(QStringView str, int pos)

Callers 1

isOperatorFunction · 0.85

Calls 2

isEmptyMethod · 0.45
lastMethod · 0.45

Tested by

no test coverage detected