25#ifndef INCLUDE_MYSQL_STRINGS_DTOA_H_
26#define INCLUDE_MYSQL_STRINGS_DTOA_H_
41#define MAX_DECPT_FOR_F_FORMAT DBL_DIG
48#define MY_GCVT_MAX_FIELD_WIDTH \
49 (DBL_DIG + 4 + std::max(5, MAX_DECPT_FOR_F_FORMAT))
71 char *to,
bool *
error);
74 char *to,
bool *
error);
#define MYSQL_STRINGS_EXPORT
Definition: api.h:47
static constexpr int FLOATING_POINT_BUFFER
Definition: dtoa.h:62
MYSQL_STRINGS_EXPORT size_t my_fcvt_no_trailing_zero(double x, int precision, char *to, bool *error)
Identical to my_fcvt, except that trailing zeros after the decimal point will be removed.
Definition: dtoa.cc:208
static constexpr int DECIMAL_NOT_SPECIFIED
Definition: dtoa.h:54
MYSQL_STRINGS_EXPORT size_t my_fcvt_compact(double x, char *to, bool *error)
Converts a given floating point number to a zero-terminated string representation using the 'f' forma...
Definition: dtoa.cc:240
MYSQL_STRINGS_EXPORT size_t my_fcvt(double x, int precision, char *to, bool *error)
Converts a given floating point number to a zero-terminated string representation using the 'f' forma...
Definition: dtoa.cc:202
MYSQL_STRINGS_EXPORT double my_strtod(const char *str, const char **end, int *error)
Converts string to double (string does not have to be zero-terminated)
Definition: dtoa.cc:521
my_gcvt_arg_type
Definition: dtoa.h:51
@ MY_GCVT_ARG_DOUBLE
Definition: dtoa.h:51
@ MY_GCVT_ARG_FLOAT
Definition: dtoa.h:51
MYSQL_STRINGS_EXPORT size_t my_gcvt(double x, my_gcvt_arg_type type, int width, char *to, bool *error)
Converts a given floating point number to a zero-terminated string representation with a given field ...
Definition: dtoa.cc:308
static constexpr int DECIMAL_MAX_SCALE
Definition: dtoa.h:53
void error(const char *format,...)
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1105
Cursor end()
A past-the-end Cursor.
Definition: rules_table_service.cc:192
required string type
Definition: replication_group_member_actions.proto:34