fix: Misspelling of Endianness (#1609)

### Problem description
fix 40 typos

### Implementation description
`endianess` => `endianness`

Signed-off-by: RoboSchmied <github@roboschmie.de>
This commit is contained in:
RoboSchmied
2024-03-28 22:25:28 +01:00
committed by GitHub
parent aeabc0c436
commit cc593fb6c4
11 changed files with 40 additions and 40 deletions

View File

@@ -152,7 +152,7 @@ namespace hex {
using SizeType = typename SizeTypeImpl<Size>::Type;
template<typename T>
[[nodiscard]] constexpr T changeEndianess(const T &value, size_t size, std::endian endian) {
[[nodiscard]] constexpr T changeEndianness(const T &value, size_t size, std::endian endian) {
if (endian == std::endian::native)
return value;
@@ -172,8 +172,8 @@ namespace hex {
}
template<typename T>
[[nodiscard]] constexpr T changeEndianess(const T &value, std::endian endian) {
return changeEndianess(value, sizeof(value), endian);
[[nodiscard]] constexpr T changeEndianness(const T &value, std::endian endian) {
return changeEndianness(value, sizeof(value), endian);
}
[[nodiscard]] constexpr u128 bitmask(u8 bits) {

View File

@@ -73,7 +73,7 @@ namespace hex {
if (color == 0x00000000)
return ImVec4(0, 0, 0, -1);
return ImColor(hex::changeEndianess(color, std::endian::big));
return ImColor(hex::changeEndianness(color, std::endian::big));
}
nlohmann::json ThemeManager::exportCurrentTheme(const std::string &name) {
@@ -90,7 +90,7 @@ namespace hex {
for (const auto &[key, value] : handler.colorMap) {
auto color = handler.getFunction(value);
theme["colors"][type][key] = fmt::format("#{:08X}", hex::changeEndianess(u32(color), std::endian::big));
theme["colors"][type][key] = fmt::format("#{:08X}", hex::changeEndianness(u32(color), std::endian::big));
}
}

View File

@@ -138,7 +138,7 @@ namespace hex {
result.push_back(addressBytes[2]);
result.push_back(addressBytes[1]);
result.push_back(addressBytes[0]);
pushBytesBack<u16>(result, changeEndianess<u16>(bytes.size(), std::endian::big));
pushBytesBack<u16>(result, changeEndianness<u16>(bytes.size(), std::endian::big));
for (auto byte : bytes)
result.push_back(byte);
@@ -189,7 +189,7 @@ namespace hex {
result.push_back(addressBytes[2]);
result.push_back(addressBytes[1]);
result.push_back(addressBytes[0]);
pushBytesBack<u16>(result, changeEndianess<u16>(bytes.size(), std::endian::big));
pushBytesBack<u16>(result, changeEndianness<u16>(bytes.size(), std::endian::big));
for (auto byte : bytes)
result.push_back(byte);