diff options
| author | Dan Engelbrecht <[email protected]> | 2022-03-23 23:16:22 +0100 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-03-31 11:29:27 +0200 |
| commit | 3da85d8c5479e2d21476cc01bb628d6434d02749 (patch) | |
| tree | 1205c7c032dd7169b0d41c0297472e2dabdc4621 /zenstore/compactcas.cpp | |
| parent | reduce lock times (diff) | |
| download | zen-3da85d8c5479e2d21476cc01bb628d6434d02749.tar.xz zen-3da85d8c5479e2d21476cc01bb628d6434d02749.zip | |
Rename FormatHex to ToHex
Diffstat (limited to 'zenstore/compactcas.cpp')
| -rw-r--r-- | zenstore/compactcas.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zenstore/compactcas.cpp b/zenstore/compactcas.cpp index 053d441b0..65b9bc969 100644 --- a/zenstore/compactcas.cpp +++ b/zenstore/compactcas.cpp @@ -46,7 +46,7 @@ namespace { ExtendablePathBuilder<256> Path; char BlockHexString[9]; - FormatHex(BlockIndex, BlockHexString); + ToHex(BlockIndex, BlockHexString); Path.Append(BlocksBasePath); Path.AppendSeparator(); @@ -1222,30 +1222,30 @@ TEST_CASE("compactcas.hex") CHECK(!ParseHex("", Value)); char Hex[9]; - FormatHex(0, Hex); + ToHex(0, Hex); HexString = std::string(Hex); CHECK(ParseHex(HexString, Value)); CHECK(Value == 0); - FormatHex(std::numeric_limits<std::uint32_t>::max(), Hex); + ToHex(std::numeric_limits<std::uint32_t>::max(), Hex); HexString = std::string(Hex); CHECK(HexString == "ffffffff"); CHECK(ParseHex(HexString, Value)); CHECK(Value == std::numeric_limits<std::uint32_t>::max()); - FormatHex(0xadf14711, Hex); + ToHex(0xadf14711, Hex); HexString = std::string(Hex); CHECK(HexString == "adf14711"); CHECK(ParseHex(HexString, Value)); CHECK(Value == 0xadf14711); - FormatHex(0x80000000, Hex); + ToHex(0x80000000, Hex); HexString = std::string(Hex); CHECK(HexString == "80000000"); CHECK(ParseHex(HexString, Value)); CHECK(Value == 0x80000000); - FormatHex(0x718293a4, Hex); + ToHex(0x718293a4, Hex); HexString = std::string(Hex); CHECK(HexString == "718293a4"); CHECK(ParseHex(HexString, Value)); |