migrate common

This commit is contained in:
Xuan Son Nguyen
2026-08-21 18:04:08 +02:00
parent 76364591e1
commit 7a3360f6d8
9 changed files with 31 additions and 40 deletions
-3
View File
@@ -4,14 +4,11 @@
#include "chat-peg-parser.h"
#include "chat.h"
#include "log.h"
#include "nlohmann/json.hpp"
#include "peg-parser.h"
#include <cctype>
#include <numeric>
using json = nlohmann::ordered_json;
std::string trim_whitespace(const std::string & str) {
size_t start = 0;
while (start < str.length() && std::isspace(static_cast<unsigned char>(str[start]))) {