feat: line checking utils

This commit is contained in:
2026-03-26 13:17:44 +01:00
parent 75615a8053
commit 595914175b
2 changed files with 17 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#include <cctype>
#include <string>
bool isEmptyLine(std::string line) {
for (char c : line) {
if (!isspace(c))
return false;
}
return true;
}
bool isComment(std::string line) { return line[0] == '/' && line[1] == '/'; }
+4
View File
@@ -0,0 +1,4 @@
#include <string>
bool isEmptyLine(std::string);
bool isComment(std::string);