8#ifndef INCLUDED_BDLDFP_DECIMALFORMATCONFIG
9#define INCLUDED_BDLDFP_DECIMALFORMATCONFIG
103#include <bsl_cstring.h>
140 const char *d_infinityText;
141 const char *d_nanText;
142 const char *d_sNanText;
202 const char *
nan =
"nan",
203 const char *snan =
"snan",
229 void setNan(
const char *value);
234 void setSNan(
const char *value);
266 const char *
nan()
const;
269 const char *
sNan()
const;
316 , d_sign(e_NEGATIVE_ONLY)
317 , d_infinityText(
"inf")
320 , d_decimalPoint(
'.')
331 const char *infinity,
338 : d_precision(precision)
341 , d_infinityText(infinity)
344 , d_decimalPoint(point)
345 , d_exponent(exponent)
346 , d_showpoint(showpoint)
347 , d_expWidth(expWidth)
381 d_infinityText = value;
401 d_decimalPoint = value;
448 return d_infinityText;
466 return d_decimalPoint;
491 const DecimalFormatConfig& rhs)
493 return lhs.d_precision == rhs.d_precision &&
494 lhs.d_style == rhs.d_style &&
495 lhs.d_sign == rhs.d_sign &&
496 bsl::strcmp(lhs.d_infinityText, rhs.d_infinityText) == 0 &&
497 bsl::strcmp(lhs.d_nanText, rhs.d_nanText) == 0 &&
498 bsl::strcmp(lhs.d_sNanText, rhs.d_sNanText) == 0 &&
499 lhs.d_decimalPoint == rhs.d_decimalPoint &&
500 lhs.d_exponent == rhs.d_exponent &&
501 lhs.d_showpoint == rhs.d_showpoint &&
502 lhs.d_expWidth == rhs.d_expWidth;
507 const DecimalFormatConfig& rhs)
509 return lhs.d_precision != rhs.d_precision ||
510 lhs.d_style != rhs.d_style ||
511 lhs.d_sign != rhs.d_sign ||
512 bsl::strcmp(lhs.d_infinityText, rhs.d_infinityText) ||
513 bsl::strcmp(lhs.d_nanText, rhs.d_nanText) ||
514 bsl::strcmp(lhs.d_sNanText, rhs.d_sNanText) ||
515 lhs.d_decimalPoint != rhs.d_decimalPoint ||
516 lhs.d_exponent != rhs.d_exponent ||
517 lhs.d_showpoint != rhs.d_showpoint ||
518 lhs.d_expWidth != rhs.d_expWidth;
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdldfp_decimal.h:712
bool operator!=(Decimal32 lhs, Decimal32 rhs)
bool operator==(Decimal32 lhs, Decimal32 rhs)