Files
PCCCompiler/PCCcompiler/utils.cpp
2026-02-06 16:04:23 +01:00

9 lines
256 B
C++

#include "utils.h"
std::string trim(const std::string& str) {
size_t first = str.find_first_not_of(" \t");
if (first == std::string::npos) return "";
size_t last = str.find_last_not_of(" \t");
return str.substr(first, last - first + 1);
}