mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
patterns: Added parent keyword to access members of the parent struct
This commit is contained in:
@@ -127,10 +127,20 @@ namespace hex {
|
||||
res.push_back(token);
|
||||
}
|
||||
|
||||
res.push_back(std::string(string.substr(start)));
|
||||
res.emplace_back(string.substr(start));
|
||||
return res;
|
||||
}
|
||||
|
||||
std::string combineStrings(const std::vector<std::string> &strings, std::string_view delimiter) {
|
||||
std::string result;
|
||||
for (const auto &string : strings) {
|
||||
result += string;
|
||||
result += delimiter;
|
||||
}
|
||||
|
||||
return result.substr(0, result.length() - delimiter.length());
|
||||
}
|
||||
|
||||
std::string toEngineeringString(double value) {
|
||||
constexpr std::array Suffixes = { "a", "f", "p", "n", "u", "m", "", "k", "M", "G", "T", "P", "E" };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user