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

Function isNumeric

kdevplatform/project/projectmodel.cpp:715–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713static const int maximumCacheExtensionLength = 3;
714
715bool isNumeric(QStringView str)
716{
717 if (str.isEmpty()) {
718 return false;
719 }
720
721 return std::all_of(str.begin(), str.end(), [](const QChar c) {
722 return c.isNumber();
723 });
724}
725
726class IconNameCache
727{

Callers 1

iconNameForPathMethod · 0.70

Calls 3

isEmptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected