Integer parsing and formatting helpers.
| Return | Name | Description |
|---|---|---|
void | format | Formats an integer value in decimal notation. |
void | format | Formats an integer value in decimal notation, right justified in a field having at least the specified width. |
void | format0 | Formats an integer value in decimal notation, right justified and zero-padded in a field having at least the specified width. |
void | formatHex | Formats an int value in hexadecimal notation. The value is treated as unsigned. |
void | formatHex | Formats an int value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width. The value is treated as unsigned. |
void | format | Formats an unsigned int value in decimal notation. |
void | format | Formats an unsigned int value in decimal notation, right justified in a field having at least the specified width. |
void | format0 | Formats an unsigned int value in decimal notation, right justified and zero-padded in a field having at least the specified width. |
void | formatHex | Formats an unsigned int value in hexadecimal notation. |
void | formatHex | Formats an unsigned int value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width. |
void | format | Formats a long value in decimal notation. |
void | format | Formats a long value in decimal notation, right justified in a field having at least the specified width. |
void | format0 | Formats a long value in decimal notation, right justified and zero-padded in a field having at least the specified width. |
void | formatHex | Formats a long value in hexadecimal notation. The value is treated as unsigned. |
void | formatHex | Formats a long value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width. The value is treated as unsigned. |
void | format | Formats an unsigned long value in decimal notation. |
void | format | Formats an unsigned long value in decimal notation, right justified in a field having at least the specified width. |
void | format0 | Formats an unsigned long value in decimal notation, right justified and zero-padded in a field having at least the specified width. |
void | formatHex | Formats an unsigned long value in hexadecimal notation. |
void | formatHex | Formats an unsigned long value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width. |
void | format | Formats a 64-bit integer value in decimal notation. |
void | format | Formats a 64-bit integer value in decimal notation, right justified in a field having at least the specified width. |
void | format0 | Formats a 64-bit integer value in decimal notation, right justified and zero-padded in a field having at least the specified width. |
void | formatHex | Formats a 64-bit integer value in hexadecimal notation. The value is treated as unsigned. |
void | formatHex | Formats a 64-bit integer value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width. The value is treated as unsigned. |
void | format | Formats an unsigned 64-bit integer value in decimal notation. |
void | format | Formats an unsigned 64-bit integer value in decimal notation, right justified in a field having at least the specified width. |
void | format0 | Formats an unsigned 64-bit integer value in decimal notation, right justified and zero-padded in a field having at least the specified width. |
void | formatHex | Formats an unsigned 64-bit integer value in hexadecimal notation. |
void | formatHex | Formats an unsigned 64-bit integer value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width. |
void format(std::string & str, int value)Formats an integer value in decimal notation.
str Output string to append to.
value Value to format.
void format(std::string & str, int value, int width)Formats an integer value in decimal notation, right justified in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with spaces on the left.
void format0(std::string & str, int value, int width)Formats an integer value in decimal notation, right justified and zero-padded in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.
void formatHex(std::string & str, int value)Formats an int value in hexadecimal notation. The value is treated as unsigned.
str Output string to append to.
value Value to format.
void formatHex(std::string & str, int value, int width)Formats an int value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width. The value is treated as unsigned.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.
void format(std::string & str, unsigned value)Formats an unsigned int value in decimal notation.
str Output string to append to.
value Value to format.
void format(std::string & str, unsigned value, int width)Formats an unsigned int value in decimal notation, right justified in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with spaces on the left.
void format0(std::string & str, unsigned int value, int width)Formats an unsigned int value in decimal notation, right justified and zero-padded in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.
void formatHex(std::string & str, unsigned value)Formats an unsigned int value in hexadecimal notation.
str Output string to append to.
value Value to format.
void formatHex(std::string & str, unsigned value, int width)Formats an unsigned int value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.
void format(std::string & str, long value)Formats a long value in decimal notation.
str Output string to append to.
value Value to format.
void format(std::string & str, long value, int width)Formats a long value in decimal notation, right justified in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with spaces on the left.
void format0(std::string & str, long value, int width)Formats a long value in decimal notation, right justified and zero-padded in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.
void formatHex(std::string & str, long value)Formats a long value in hexadecimal notation. The value is treated as unsigned.
str Output string to append to.
value Value to format.
void formatHex(std::string & str, long value, int width)Formats a long value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width. The value is treated as unsigned.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.
void format(std::string & str, unsigned long value)Formats an unsigned long value in decimal notation.
str Output string to append to.
value Value to format.
void format(std::string & str, unsigned long value, int width)Formats an unsigned long value in decimal notation, right justified in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with spaces on the left.
void format0(std::string & str, unsigned long value, int width)Formats an unsigned long value in decimal notation, right justified and zero-padded in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.
void formatHex(std::string & str, unsigned long value)Formats an unsigned long value in hexadecimal notation.
str Output string to append to.
value Value to format.
void formatHex(std::string & str, unsigned long value, int width)Formats an unsigned long value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.
void format(std::string & str, std::int64_t value)Formats a 64-bit integer value in decimal notation.
str Output string to append to.
value Value to format.
void format(std::string & str, std::int64_t value, int width)Formats a 64-bit integer value in decimal notation, right justified in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with spaces on the left.
void format0(std::string & str, std::int64_t value, int width)Formats a 64-bit integer value in decimal notation, right justified and zero-padded in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.
void formatHex(std::string & str, std::int64_t value)Formats a 64-bit integer value in hexadecimal notation. The value is treated as unsigned.
str Output string to append to.
value Value to format.
void formatHex(std::string & str, std::int64_t value, int width)Formats a 64-bit integer value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width. The value is treated as unsigned.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.
void format(std::string & str, uint64_t value)Formats an unsigned 64-bit integer value in decimal notation.
str Output string to append to.
value Value to format.
void format(std::string & str, uint64_t value, int width)Formats an unsigned 64-bit integer value in decimal notation, right justified in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with spaces on the left.
void format0(std::string & str, uint64_t value, int width)Formats an unsigned 64-bit integer value in decimal notation, right justified and zero-padded in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.
void formatHex(std::string & str, uint64_t value)Formats an unsigned 64-bit integer value in hexadecimal notation.
str Output string to append to.
value Value to format.
void formatHex(std::string & str, uint64_t value, int width)Formats an unsigned 64-bit integer value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width.
str Output string to append to.
value Value to format.
width Minimum field width; padded with zeros on the left.