diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-05-08 15:31:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-08 15:31:02 +0100 |
| commit | b94f1498542be0e83fe8060a50bce5ff2d5a1c39 (patch) | |
| tree | 8bddcfc9f8504817d5778136ec8c7c05d881c852 /src/config/shared/parserUtils/ParserUtils.hpp | |
| parent | a6a0cc308c827557d04cb3e4c3b5d258de0411e6 (diff) | |
config: allow hashes for parsing colors (#14337)
Diffstat (limited to 'src/config/shared/parserUtils/ParserUtils.hpp')
| -rw-r--r-- | src/config/shared/parserUtils/ParserUtils.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config/shared/parserUtils/ParserUtils.hpp b/src/config/shared/parserUtils/ParserUtils.hpp new file mode 100644 index 00000000..9dfe37f4 --- /dev/null +++ b/src/config/shared/parserUtils/ParserUtils.hpp @@ -0,0 +1,10 @@ +#pragma once + +#include <expected> +#include <cstdint> +#include <string> + +namespace Config::ParserUtils { + std::expected<int64_t, std::string> parseColor(std::string_view val); + std::expected<int64_t, std::string> parseInt(std::string_view val); +};
\ No newline at end of file |
