Base module

numeric

Integer parsing and formatting helpers.

Functions

ReturnNameDescription
voidformatFormats an integer value in decimal notation.
voidformatFormats an integer value in decimal notation, right justified in a field having at least the specified width.
voidformat0Formats an integer value in decimal notation, right justified and zero-padded in a field having at least the specified width.
voidformatHexFormats an int value in hexadecimal notation. The value is treated as unsigned.
voidformatHexFormats 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.
voidformatFormats an unsigned int value in decimal notation.
voidformatFormats an unsigned int value in decimal notation, right justified in a field having at least the specified width.
voidformat0Formats an unsigned int value in decimal notation, right justified and zero-padded in a field having at least the specified width.
voidformatHexFormats an unsigned int value in hexadecimal notation.
voidformatHexFormats an unsigned int value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width.
voidformatFormats a long value in decimal notation.
voidformatFormats a long value in decimal notation, right justified in a field having at least the specified width.
voidformat0Formats a long value in decimal notation, right justified and zero-padded in a field having at least the specified width.
voidformatHexFormats a long value in hexadecimal notation. The value is treated as unsigned.
voidformatHexFormats 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.
voidformatFormats an unsigned long value in decimal notation.
voidformatFormats an unsigned long value in decimal notation, right justified in a field having at least the specified width.
voidformat0Formats an unsigned long value in decimal notation, right justified and zero-padded in a field having at least the specified width.
voidformatHexFormats an unsigned long value in hexadecimal notation.
voidformatHexFormats an unsigned long value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width.
voidformatFormats a 64-bit integer value in decimal notation.
voidformatFormats a 64-bit integer value in decimal notation, right justified in a field having at least the specified width.
voidformat0Formats a 64-bit integer value in decimal notation, right justified and zero-padded in a field having at least the specified width.
voidformatHexFormats a 64-bit integer value in hexadecimal notation. The value is treated as unsigned.
voidformatHexFormats 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.
voidformatFormats an unsigned 64-bit integer value in decimal notation.
voidformatFormats an unsigned 64-bit integer value in decimal notation, right justified in a field having at least the specified width.
voidformat0Formats an unsigned 64-bit integer value in decimal notation, right justified and zero-padded in a field having at least the specified width.
voidformatHexFormats an unsigned 64-bit integer value in hexadecimal notation.
voidformatHexFormats an unsigned 64-bit integer value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width.

format

void format(std::string & str, int value)

Defined in src/base/include/icy/numeric.h:32

Formats an integer value in decimal notation.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueintValue to format.

format

void format(std::string & str, int value, int width)

Defined in src/base/include/icy/numeric.h:39

Formats an integer value in decimal notation, right justified in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueintValue to format.
widthintMinimum field width; padded with spaces on the left.

format0

void format0(std::string & str, int value, int width)

Defined in src/base/include/icy/numeric.h:46

Formats an integer value in decimal notation, right justified and zero-padded in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueintValue to format.
widthintMinimum field width; padded with zeros on the left.

formatHex

void formatHex(std::string & str, int value)

Defined in src/base/include/icy/numeric.h:52

Formats an int value in hexadecimal notation. The value is treated as unsigned.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueintValue to format.

formatHex

void formatHex(std::string & str, int value, int width)

Defined in src/base/include/icy/numeric.h:60

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.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueintValue to format.
widthintMinimum field width; padded with zeros on the left.

format

void format(std::string & str, unsigned value)

Defined in src/base/include/icy/numeric.h:65

Formats an unsigned int value in decimal notation.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueunsignedValue to format.

format

void format(std::string & str, unsigned value, int width)

Defined in src/base/include/icy/numeric.h:72

Formats an unsigned int value in decimal notation, right justified in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueunsignedValue to format.
widthintMinimum field width; padded with spaces on the left.

format0

void format0(std::string & str, unsigned int value, int width)

Defined in src/base/include/icy/numeric.h:79

Formats an unsigned int value in decimal notation, right justified and zero-padded in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueunsigned intValue to format.
widthintMinimum field width; padded with zeros on the left.

formatHex

void formatHex(std::string & str, unsigned value)

Defined in src/base/include/icy/numeric.h:84

Formats an unsigned int value in hexadecimal notation.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueunsignedValue to format.

formatHex

void formatHex(std::string & str, unsigned value, int width)

Defined in src/base/include/icy/numeric.h:91

Formats an unsigned int value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueunsignedValue to format.
widthintMinimum field width; padded with zeros on the left.

format

void format(std::string & str, long value)

Defined in src/base/include/icy/numeric.h:96

Formats a long value in decimal notation.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valuelongValue to format.

format

void format(std::string & str, long value, int width)

Defined in src/base/include/icy/numeric.h:103

Formats a long value in decimal notation, right justified in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valuelongValue to format.
widthintMinimum field width; padded with spaces on the left.

format0

void format0(std::string & str, long value, int width)

Defined in src/base/include/icy/numeric.h:110

Formats a long value in decimal notation, right justified and zero-padded in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valuelongValue to format.
widthintMinimum field width; padded with zeros on the left.

formatHex

void formatHex(std::string & str, long value)

Defined in src/base/include/icy/numeric.h:116

Formats a long value in hexadecimal notation. The value is treated as unsigned.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valuelongValue to format.

formatHex

void formatHex(std::string & str, long value, int width)

Defined in src/base/include/icy/numeric.h:124

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.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valuelongValue to format.
widthintMinimum field width; padded with zeros on the left.

format

void format(std::string & str, unsigned long value)

Defined in src/base/include/icy/numeric.h:129

Formats an unsigned long value in decimal notation.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueunsigned longValue to format.

format

void format(std::string & str, unsigned long value, int width)

Defined in src/base/include/icy/numeric.h:136

Formats an unsigned long value in decimal notation, right justified in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueunsigned longValue to format.
widthintMinimum field width; padded with spaces on the left.

format0

void format0(std::string & str, unsigned long value, int width)

Defined in src/base/include/icy/numeric.h:143

Formats an unsigned long value in decimal notation, right justified and zero-padded in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueunsigned longValue to format.
widthintMinimum field width; padded with zeros on the left.

formatHex

void formatHex(std::string & str, unsigned long value)

Defined in src/base/include/icy/numeric.h:148

Formats an unsigned long value in hexadecimal notation.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueunsigned longValue to format.

formatHex

void formatHex(std::string & str, unsigned long value, int width)

Defined in src/base/include/icy/numeric.h:155

Formats an unsigned long value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueunsigned longValue to format.
widthintMinimum field width; padded with zeros on the left.

format

void format(std::string & str, std::int64_t value)

Defined in src/base/include/icy/numeric.h:160

Formats a 64-bit integer value in decimal notation.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valuestd::int64_tValue to format.

format

void format(std::string & str, std::int64_t value, int width)

Defined in src/base/include/icy/numeric.h:167

Formats a 64-bit integer value in decimal notation, right justified in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valuestd::int64_tValue to format.
widthintMinimum field width; padded with spaces on the left.

format0

void format0(std::string & str, std::int64_t value, int width)

Defined in src/base/include/icy/numeric.h:174

Formats a 64-bit integer value in decimal notation, right justified and zero-padded in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valuestd::int64_tValue to format.
widthintMinimum field width; padded with zeros on the left.

formatHex

void formatHex(std::string & str, std::int64_t value)

Defined in src/base/include/icy/numeric.h:180

Formats a 64-bit integer value in hexadecimal notation. The value is treated as unsigned.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valuestd::int64_tValue to format.

formatHex

void formatHex(std::string & str, std::int64_t value, int width)

Defined in src/base/include/icy/numeric.h:188

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.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valuestd::int64_tValue to format.
widthintMinimum field width; padded with zeros on the left.

format

void format(std::string & str, uint64_t value)

Defined in src/base/include/icy/numeric.h:193

Formats an unsigned 64-bit integer value in decimal notation.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueuint64_tValue to format.

format

void format(std::string & str, uint64_t value, int width)

Defined in src/base/include/icy/numeric.h:200

Formats an unsigned 64-bit integer value in decimal notation, right justified in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueuint64_tValue to format.
widthintMinimum field width; padded with spaces on the left.

format0

void format0(std::string & str, uint64_t value, int width)

Defined in src/base/include/icy/numeric.h:207

Formats an unsigned 64-bit integer value in decimal notation, right justified and zero-padded in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueuint64_tValue to format.
widthintMinimum field width; padded with zeros on the left.

formatHex

void formatHex(std::string & str, uint64_t value)

Defined in src/base/include/icy/numeric.h:212

Formats an unsigned 64-bit integer value in hexadecimal notation.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueuint64_tValue to format.

formatHex

void formatHex(std::string & str, uint64_t value, int width)

Defined in src/base/include/icy/numeric.h:219

Formats an unsigned 64-bit integer value in hexadecimal notation, right justified and zero-padded in a field having at least the specified width.

Parameters

ParameterTypeDescription
strstd::string &Output string to append to.
valueuint64_tValue to format.
widthintMinimum field width; padded with zeros on the left.