Dev/define cmd tie bit to reg (#1328)
Some checks failed
Build on RHEL8 / build (push) Failing after 1m8s
Build on RHEL9 / build (push) Failing after 2m22s

* strong type wip

* moved everythign to bit_utils class

* wip, still on testing in ctb reg

* passed tests for define
This commit is contained in:
2025-11-10 16:27:03 +01:00
committed by GitHub
parent b4a0c69897
commit 161cd5508d
19 changed files with 1303 additions and 520 deletions

View File

@@ -43,6 +43,15 @@ bool is_int(const std::string &s) {
}) == s.end();
}
bool is_hex_or_dec_int(const std::string &s) {
try {
StringTo<int>(s);
return true;
} catch (...) {
}
return false;
}
bool replace_first(std::string *s, const std::string &substr,
const std::string &repl) {
auto pos = s->find(substr);