Step 167: split EditorState into sub-states

This commit is contained in:
Bill
2026-02-09 20:43:36 -07:00
parent 5b6e8d72d8
commit de13e514e1
26 changed files with 3503 additions and 2689 deletions

View File

@@ -3,14 +3,7 @@
#include <string>
#include <cctype>
inline std::string trimCopy(const std::string& s) {
size_t start = 0;
while (start < s.size() && std::isspace((unsigned char)s[start])) ++start;
size_t end = s.size();
while (end > start && std::isspace((unsigned char)s[end - 1])) --end;
return s.substr(start, end - start);
}
#include "StringUtils.h"
inline bool parseLineColInput(const std::string& input, int& outLine, int& outCol) {
std::string s = trimCopy(input);