MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / hasCodeBlocks

Method hasCodeBlocks

CodeHandler.cpp:87–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87bool CodeHandler::hasCodeBlocks(const QString &text)
88{
89 QStringList lines = text.split('\n');
90
91 for (const QString &line : lines) {
92 if (line.trimmed().startsWith("```")) {
93 return true;
94 }
95 }
96
97 return false;
98}
99
100static QHash<QString, QString> buildLanguageToCommentPrefixMap()
101{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected