ast updated

This commit is contained in:
2026-05-17 16:30:49 +03:00
parent 208d34864e
commit 24750ddcbe
20 changed files with 194 additions and 38 deletions
+20
View File
@@ -0,0 +1,20 @@
#pragma once
#include <string>
std::string shorten(const std::string &string) {
if (string.size() > 9) {
std::string shortString;
for (int i = 0; i < 5; ++i) {
shortString.push_back(string[i]);
}
for (int i = 0; i < 3; ++i) {
shortString.push_back('.');
}
for (int i = string.size() - 6; i < string.size(); ++i) {
shortString.push_back(string[i]);
}
return shortString;
}
return string;
}