slang::SFormat::FormatOptions struct

A collection of options that can be applied to the SFormat string formatting functions.

Contents

Public variables

optional<uint32_t> width
The width of a numeric field. If left empty a default will be used.
optional<uint32_t> precision
An optional precision to apply when formatting floating point values.
bool leftJustify
bool zeroPad

Variable documentation

bool slang::SFormat::FormatOptions::leftJustify

Set to true to left justify instead of right justify the field within its specified width.

bool slang::SFormat::FormatOptions::zeroPad

Set to true to zero pad instead of space pad the field within its specified width.