|
| enum | { sep_size = 1
} |
|
using | unsigned_type = uint32_or_64_or_128_t<Int> |
|
|
basic_writer< Range > & | writer |
|
const Specs & | specs |
|
unsigned_type | abs_value |
|
char | prefix [4] |
|
unsigned | prefix_size |
◆ anonymous enum
template<typename Range>
template<typename Int, typename Specs>
◆ int_writer()
template<typename Range>
template<typename Int, typename Specs>
| internal::basic_writer< Range >::int_writer< Int, Specs >::int_writer |
( |
basic_writer< Range > & | w, |
|
|
Int | value, |
|
|
const Specs & | s ) |
|
inline |
17733 abs_value(
static_cast<unsigned_type
>(
value)),
17734 prefix_size(0) {
17736 prefix[0] = '-';
17737 ++prefix_size;
17738 abs_value = -abs_value;
17740 prefix[0] = specs.sign ==
sign::plus ?
'+' :
' ';
17741 ++prefix_size;
17742 }
17743 }
Definition duckdb.cpp:17649
◆ get_prefix()
template<typename Range>
template<typename Int, typename Specs>
◆ on_dec()
template<typename Range>
template<typename Int, typename Specs>
17754 {
17756 writer.write_int(
num_digits, get_prefix(), specs,
17758 }
Definition duckdb.cpp:17745
◆ on_hex()
template<typename Range>
template<typename Int, typename Specs>
17770 {
17771 if (specs.alt) {
17772 prefix[prefix_size++] = '0';
17773 prefix[prefix_size++] = specs.type;
17774 }
17776 writer.write_int(
num_digits, get_prefix(), specs,
17778 }
Definition duckdb.cpp:17760
◆ on_bin()
template<typename Range>
template<typename Int, typename Specs>
17789 {
17790 if (specs.alt) {
17791 prefix[prefix_size++] = '0';
17792 prefix[prefix_size++] = static_cast<char>(specs.type);
17793 }
17795 writer.write_int(
num_digits, get_prefix(), specs,
17797 }
Definition duckdb.cpp:17780
◆ on_oct()
template<typename Range>
template<typename Int, typename Specs>
17799 {
17801 if (specs.alt && specs.precision <=
num_digits && abs_value != 0) {
17802
17803
17804 prefix[prefix_size++] = '0';
17805 }
17806 writer.write_int(
num_digits, get_prefix(), specs,
17808 }
◆ on_num()
template<typename Range>
template<typename Int, typename Specs>
17841 {
17843 if (
groups.empty())
return on_dec();
17844 auto sep = specs.thousands;
17845 if (!
sep)
return on_dec();
17854 }
17857 writer.write_int(
size, get_prefix(), specs,
17859 }
Definition duckdb.cpp:17812
◆ on_error()
template<typename Range>
template<typename Int, typename Specs>
The documentation for this struct was generated from the following file: