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

Function reverse

kdevplatform/util/formattinghelpers.cpp:951–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

949}
950
951QString reverse(QStringView str)
952{
953 QString ret;
954 ret.reserve(str.length());
955 for (int a = str.length() - 1; a >= 0; --a)
956 ret.append(str[a]);
957
958 return ret;
959}
960
961// Returns the text start position with all whitespace that is redundant in the given context skipped
962int skipRedundantWhiteSpace(QStringView context, QStringView text, int tabWidth)

Callers 3

computeCompletionsMethod · 0.85

Calls 3

reserveMethod · 0.45
lengthMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected