|
| template<typename It> |
| It | prettify (It it) const |
|
|
const char * | digits_ |
|
int | num_digits_ |
|
int | exp_ |
|
size_t | size_ |
|
float_specs | specs_ |
|
Char | decimal_point_ |
◆ float_writer()
17433 }
17435 size_ +=
specs.sign ? 1 : 0;
17436 }
Definition duckdb.cpp:17302
◆ prettify()
template<typename Char>
template<typename It>
17312 {
17313
17314 int full_exp = num_digits_ + exp_;
17316
17317 *
it++ =
static_cast<Char>(*digits_);
17318 int num_zeros = specs_.precision - num_digits_;
17324 *
it++ =
static_cast<Char>(specs_.upper ?
'E' :
'e');
17326 }
17328
17329 if (specs_.thousand_sep !=
'\0' &&
full_exp > 3) {
17330
17331
17332
17333
17337 *
it++ = specs_.thousand_sep;
17338 }
17339 if (
i < num_digits_) {
17340
17344
17346 }
17347 } else {
17348
17350 }
17351 }
17352 } else {
17355 }
17356 if (specs_.trailing_zeros) {
17357 *
it++ = decimal_point_;
17361 *
it++ =
static_cast<Char>(
'0');
17363 }
17364#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17367#endif
17369 }
17371
17372 if (specs_.thousand_sep !=
'\0' &&
full_exp > 3) {
17373
17374
17375
17376
17380 *
it++ = specs_.thousand_sep;
17381 }
17383 }
17384 } else {
17386 }
17387 if (!specs_.trailing_zeros) {
17388
17394 }
17395 *
it++ = decimal_point_;
17397 if (specs_.precision > num_digits_) {
17398
17399 int num_zeros = specs_.precision - num_digits_;
17401 }
17402 } else {
17403
17404 *
it++ =
static_cast<Char>(
'0');
17406 if (num_digits_ == 0 && specs_.precision >= 0 && specs_.precision <
num_zeros)
17409 if (!specs_.trailing_zeros)
17412 *
it++ = decimal_point_;
17415 }
17416 }
17418 }
◆ size()
◆ width()
◆ operator()()
template<typename Char>
template<typename It>
The documentation for this class was generated from the following file: