Name |
Description |
Decimal_FormatterSpecification [constructor]
|
Create an uninitialized Decimal_FormatterSpecification object. |
alignment
|
Return the enumerator representing the requested alignment unless the status is not at least e_STATE_PARSED in which case throw a bsl::format_error exception indicating that error. |
alternativeFlag
|
Return a boolean indicating if alternative formatting was requested unless the status is not at least e_STATE_PARSED in which case throw a bsl::format_error exception indicating that error. |
filler
|
Return a pointer to the character array that stored the parsed filler character that may be a multibyte code point or just a single character unless the status is not e_STATE_POSTPROCESSED in which case throw a bsl::format_error exception indicating that error. See also numFillerCharacters() that provides the number of characters in the array returned by this function (at least one). |
fillerCharacters
|
Return the number of filler characters in the array returned by filler()`unless the status is not `e_STATE_POSTPROCESSED in which case throw a bsl::format_error exception indicating that error. |
fillerCodePointDisplayWidth
|
Return the display width of the code point represented by the array returned by filler(). |
formatType
|
Return the format‐type requested unless the status is not at least e_STATE_PARSED in which case throw a bsl::format_error exception indicating that error. |
localeSpecificFlag
|
Return a boolean indicating if the locale specific flag was present in the format specification unless the status is not at least e_STATE_PARSED in which case throw a bsl::format_error exception indicating that error. Note that the locale specific flag is not yet supported hence the attempt to format with a specification that has this flags set will result in an exception indicating that. |
parse
|
Parse a decimal floating point format string using the iterator‐range from the specified context and if successful load the results into this object as well as set its status to e_PARSED; otherwise, if the format specification denoted by the context iterator‐range is not a valid decimal floating point format specification throw a bsl::format_error exception. |
postprocess
|
Postprocess this object using the argument values provided by the specified context to fill in the values of nested width or precision parameters if such deferred parameters exist and set the status to e_STATE_POSTPROCESSED. By nested format parameters we mean parameters whose value comes from an argument to the formatter function, and not an literal integer value within the format string. In case of an error throw a bsl::format_error exception. |
postprocessedPrecision
|
Return an optional value representing the requested precision unless the status is not e_STATE_POSTPROCESSED in which case throw a bsl::format_error exception indicating that error. Note that the returned type is capable of representing more than just an optional integer, but after preprocessing it will have only two possible states: no value, or an integer value. |
postprocessedWidth
|
Return an optional value representing the requested width unless the status is not e_STATE_POSTPROCESSED in which case throw a bsl::format_error exception indicating that error. Note that the returned type is capable of representing more than just an optional integer, but after preprocessing it will have only two possible states: no value, or an integer value. |
sign
|
Return the enumerator representing the requested sign‐treatment option unless the status is not at least e_STATE_PARSED in which case throw a bsl::format_error exception indicating that error. |
zeroPaddingFlag
|
Return a boolean indicating if zero padding was requested unless the status is not at least e_STATE_PARSED in which case throw a bsl::format_error exception indicating that error. |