diff --git a/plugins/builtin/source/content/data_inspector.cpp b/plugins/builtin/source/content/data_inspector.cpp index c5cadf2cb..798bcfed8 100644 --- a/plugins/builtin/source/content/data_inspector.cpp +++ b/plugins/builtin/source/content/data_inspector.cpp @@ -24,7 +24,7 @@ namespace hex::plugin::builtin { }; template - requires(sizeof(T) <= sizeof(u64)) static std::vector stringToUnsigned(const std::string &value, std::endian endian) { + static std::vector stringToUnsigned(const std::string &value, std::endian endian) requires(sizeof(T) <= sizeof(u64)) { u64 result = std::strtoull(value.c_str(), nullptr, 0); if (result > std::numeric_limits::max()) return {}; @@ -38,7 +38,7 @@ namespace hex::plugin::builtin { } template - requires(sizeof(T) <= sizeof(u64)) static std::vector stringToSigned(const std::string &value, std::endian endian) { + static std::vector stringToSigned(const std::string &value, std::endian endian) requires(sizeof(T) <= sizeof(u64)) { i64 result = std::strtoull(value.c_str(), nullptr, 0); if (result > std::numeric_limits::max() || result < std::numeric_limits::min()) return {}; @@ -52,7 +52,7 @@ namespace hex::plugin::builtin { } template - requires(sizeof(T) <= sizeof(long double)) static std::vector stringToFloat(const std::string &value, std::endian endian) { + static std::vector stringToFloat(const std::string &value, std::endian endian) requires(sizeof(T) <= sizeof(long double)) { auto result = std::strtold(value.c_str(), nullptr); std::vector bytes(sizeof(T), 0x00); @@ -65,7 +65,7 @@ namespace hex::plugin::builtin { } template - requires(sizeof(T) <= sizeof(u64)) static std::vector stringToInteger(const std::string &value, std::endian endian) { + static std::vector stringToInteger(const std::string &value, std::endian endian) requires(sizeof(T) <= sizeof(u64)) { if constexpr (std::is_unsigned_v) return stringToUnsigned(value, endian); else if constexpr (std::is_signed_v) diff --git a/plugins/builtin/source/lang/de_DE.cpp b/plugins/builtin/source/lang/de_DE.cpp index 7b0d99922..d65e84795 100644 --- a/plugins/builtin/source/lang/de_DE.cpp +++ b/plugins/builtin/source/lang/de_DE.cpp @@ -406,6 +406,7 @@ namespace hex::plugin::builtin { { "hex.builtin.inspector.float16", "half float (16 bit)" }, { "hex.builtin.inspector.float", "float (32 bit)" }, { "hex.builtin.inspector.double", "double (64 bit)" }, + { "hex.builtin.inspector.long_double", "long double (128 bit)" }, { "hex.builtin.inspector.ascii", "ASCII Zeichen" }, { "hex.builtin.inspector.wide", "Wide Zeichen" }, { "hex.builtin.inspector.utf8", "UTF-8 code point" }, diff --git a/plugins/builtin/source/lang/en_US.cpp b/plugins/builtin/source/lang/en_US.cpp index 20e67c534..ed96fbf2c 100644 --- a/plugins/builtin/source/lang/en_US.cpp +++ b/plugins/builtin/source/lang/en_US.cpp @@ -411,6 +411,7 @@ namespace hex::plugin::builtin { { "hex.builtin.inspector.float16", "half float (16 bit)" }, { "hex.builtin.inspector.float", "float (32 bit)" }, { "hex.builtin.inspector.double", "double (64 bit)" }, + { "hex.builtin.inspector.long_double", "long double (128 bit)" }, { "hex.builtin.inspector.ascii", "ASCII Character" }, { "hex.builtin.inspector.wide", "Wide Character" }, { "hex.builtin.inspector.utf8", "UTF-8 code point" }, diff --git a/plugins/builtin/source/lang/it_IT.cpp b/plugins/builtin/source/lang/it_IT.cpp index 95d76c55d..b27859a32 100644 --- a/plugins/builtin/source/lang/it_IT.cpp +++ b/plugins/builtin/source/lang/it_IT.cpp @@ -402,6 +402,7 @@ namespace hex::plugin::builtin { { "hex.builtin.inspector.float16", "half float (16 bit)" }, { "hex.builtin.inspector.float", "float (32 bit)" }, { "hex.builtin.inspector.double", "double (64 bit)" }, + { "hex.builtin.inspector.long_double", "long double (128 bit)" }, { "hex.builtin.inspector.ascii", "ASCII Character" }, { "hex.builtin.inspector.wide", "Wide Character" }, { "hex.builtin.inspector.utf8", "UTF-8 code point" }, diff --git a/plugins/builtin/source/lang/ja_JP.cpp b/plugins/builtin/source/lang/ja_JP.cpp index e39331c22..aa294bf2d 100644 --- a/plugins/builtin/source/lang/ja_JP.cpp +++ b/plugins/builtin/source/lang/ja_JP.cpp @@ -410,6 +410,7 @@ namespace hex::plugin::builtin { { "hex.builtin.inspector.float16", "half float (16 bit)" }, { "hex.builtin.inspector.float", "float (32 bit)" }, { "hex.builtin.inspector.double", "double (64 bit)" }, + { "hex.builtin.inspector.long_double", "long double (128 bit)" }, { "hex.builtin.inspector.ascii", "ASCII文字" }, { "hex.builtin.inspector.wide", "Wide Character" }, { "hex.builtin.inspector.utf8", "UTF-8 code point" }, diff --git a/plugins/builtin/source/lang/zh_CN.cpp b/plugins/builtin/source/lang/zh_CN.cpp index 51b06c672..684d47de2 100644 --- a/plugins/builtin/source/lang/zh_CN.cpp +++ b/plugins/builtin/source/lang/zh_CN.cpp @@ -404,6 +404,7 @@ namespace hex::plugin::builtin { { "hex.builtin.inspector.float16", "半浮点(16位)" }, { "hex.builtin.inspector.float", "float(32位单精度浮点)" }, { "hex.builtin.inspector.double", "double(64位双精度浮点)" }, + { "hex.builtin.inspector.long_double", "long double(128位双精度浮点)" }, { "hex.builtin.inspector.ascii", "ASCII字符" }, { "hex.builtin.inspector.wide", "宽字符" }, { "hex.builtin.inspector.utf8", "UTF-8代码点" },