26 #ifndef INCLUDE_OLA_STRINGS_FORMATPRIVATE_H_
27 #define INCLUDE_OLA_STRINGS_FORMATPRIVATE_H_
40 enum { HEX_BIT_WIDTH = 4 };
48 _ToHex(T v,
int width,
bool prefix)
59 inline uint32_t _HexCast(uint8_t v) {
return v; }
60 inline uint32_t _HexCast(int8_t v) {
return static_cast<uint8_t
>(v); }
61 inline uint16_t _HexCast(uint16_t v) {
return v; }
62 inline uint16_t _HexCast(int16_t v) {
return static_cast<uint16_t
>(v); }
63 inline uint32_t _HexCast(uint32_t v) {
return v; }
64 inline uint32_t _HexCast(int32_t v) {
return static_cast<uint32_t
>(v); }
68 #endif // INCLUDE_OLA_STRINGS_FORMATPRIVATE_H_