8#ifndef INCLUDED_BDLDFP_DECIMALFORMATCONFIG
9#define INCLUDED_BDLDFP_DECIMALFORMATCONFIG
105#include <bsl_cstring.h>
143 const char *d_infinityText;
144 const char *d_nanText;
145 const char *d_sNanText;
206 const char *
nan =
"nan",
207 const char *snan =
"snan",
235 void setNan(
const char *value);
241 void setSNan(
const char *value);
274 const char *
nan()
const;
277 const char *
sNan()
const;
326 , d_sign(e_NEGATIVE_ONLY)
327 , d_infinityText(
"inf")
330 , d_decimalPoint(
'.')
341 const char *infinity,
348 : d_precision(precision)
351 , d_infinityText(infinity)
354 , d_decimalPoint(point)
355 , d_exponent(exponent)
356 , d_showpoint(showpoint)
357 , d_expWidth(expWidth)
391 d_infinityText = value;
411 d_decimalPoint = value;
458 return d_infinityText;
476 return d_decimalPoint;
501 const DecimalFormatConfig& rhs)
503 return lhs.d_precision == rhs.d_precision &&
504 lhs.d_style == rhs.d_style &&
505 lhs.d_sign == rhs.d_sign &&
506 bsl::strcmp(lhs.d_infinityText, rhs.d_infinityText) == 0 &&
507 bsl::strcmp(lhs.d_nanText, rhs.d_nanText) == 0 &&
508 bsl::strcmp(lhs.d_sNanText, rhs.d_sNanText) == 0 &&
509 lhs.d_decimalPoint == rhs.d_decimalPoint &&
510 lhs.d_exponent == rhs.d_exponent &&
511 lhs.d_showpoint == rhs.d_showpoint &&
512 lhs.d_expWidth == rhs.d_expWidth;
517 const DecimalFormatConfig& rhs)
519 return lhs.d_precision !=
rhs.d_precision ||
520 lhs.d_style !=
rhs.d_style ||
521 lhs.d_sign !=
rhs.d_sign ||
522 bsl::strcmp(
lhs.d_infinityText,
rhs.d_infinityText) ||
523 bsl::strcmp(
lhs.d_nanText,
rhs.d_nanText) ||
524 bsl::strcmp(
lhs.d_sNanText,
rhs.d_sNanText) ||
525 lhs.d_decimalPoint !=
rhs.d_decimalPoint ||
526 lhs.d_exponent !=
rhs.d_exponent ||
527 lhs.d_showpoint !=
rhs.d_showpoint ||
528 lhs.d_expWidth !=
rhs.d_expWidth;
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1976
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition bdldfp_decimal.h:747
bool operator!=(Decimal32 lhs, Decimal32 rhs)
bool operator==(Decimal32 lhs, Decimal32 rhs)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917