Go to the source code of this file.
|
static char *__cdecl | try_get_ptd_buffer (__crt_cached_ptd_host &ptd) |
|
static errno_t __cdecl | internal_to_string (_Out_writes_z_(buffer_count) char *const buffer, size_t const buffer_count, STRFLT const strflt, int const requested_digits, int *const decimal_point, int *const sign, __crt_cached_ptd_host &ptd) throw () |
|
static errno_t __cdecl | _fcvt_s_internal (char *const buffer, size_t const buffer_count, double const value, int const requested_digits, int *const decimal_point, int *const sign, __crt_cached_ptd_host &ptd) |
|
errno_t __cdecl | _fcvt_s (char *const buffer, size_t const buffer_count, double const value, int const requested_digits, int *const decimal_point, int *const sign) |
|
static char *__cdecl | _fcvt_internal (double const value, int const requested_digits, int *const decimal_point, int *const sign, __crt_cached_ptd_host &ptd) |
|
char *__cdecl | _fcvt (double const value, int const requested_digits, int *const decimal_point, int *const sign) |
|
static errno_t __cdecl | _ecvt_s_internal (char *const buffer, size_t const buffer_count, double const value, int const requested_digits, int *const decimal_point, int *const sign, __crt_cached_ptd_host &ptd) |
|
errno_t __cdecl | _ecvt_s (char *const buffer, size_t const buffer_count, double const value, int const requested_digits, int *const decimal_point, int *const sign) |
|
static char *__cdecl | _ecvt_internal (double const value, int const requested_digits, int *const decimal_point, int *const sign, __crt_cached_ptd_host &ptd) |
|
char *__cdecl | _ecvt (double const value, int const requested_digits, int *const decimal_point, int *const sign) |
|
◆ _ecvt()
Definition at line 287 of file fcvt.cpp.
293{
294 __crt_cached_ptd_host
ptd;
296}
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
static char *__cdecl _ecvt_internal(double const value, int const requested_digits, int *const decimal_point, int *const sign, __crt_cached_ptd_host &ptd)
◆ _ecvt_internal()
Definition at line 258 of file fcvt.cpp.
265{
268 {
269 return nullptr;
270 }
271
272
273
274
275
277
280 {
281 return nullptr;
282 }
283
285}
static char *__cdecl try_get_ptd_buffer(__crt_cached_ptd_host &ptd)
static errno_t __cdecl _ecvt_s_internal(char *const buffer, size_t const buffer_count, double const value, int const requested_digits, int *const decimal_point, int *const sign, __crt_cached_ptd_host &ptd)
Referenced by _ecvt().
◆ _ecvt_s()
Definition at line 245 of file fcvt.cpp.
253{
254 __crt_cached_ptd_host
ptd;
256}
size_t const buffer_count
◆ _ecvt_s_internal()
Definition at line 201 of file fcvt.cpp.
210{
216
218
224 &strflt,
225 result_string,
227
229
230
231
232
233
234 int const capped_digits =
min(requested_digits,
static_cast<int>(
buffer_count - 2));
235
236
237 if (capped_digits >= 0 &&
buffer[capped_digits])
238 {
239 buffer[capped_digits] =
'\0';
240 }
241
243}
__acrt_has_trailing_digits __cdecl __acrt_fltout(_CRT_DOUBLE value, unsigned const precision, __acrt_precision_style const precision_style, STRFLT const flt, char *const result, size_t const result_count)
#define _UCRT_VALIDATE_RETURN_ERRCODE(ptd, expr, errorcode)
#define _RESET_STRING(_String, _Size)
static errno_t __cdecl internal_to_string(_Out_writes_z_(buffer_count) char *const buffer, size_t const buffer_count, STRFLT const strflt, int const requested_digits, int *const decimal_point, int *const sign, __crt_cached_ptd_host &ptd)
Referenced by _ecvt_internal(), and _ecvt_s().
◆ _fcvt()
Definition at line 177 of file fcvt.cpp.
183{
184 __crt_cached_ptd_host
ptd;
186}
static char *__cdecl _fcvt_internal(double const value, int const requested_digits, int *const decimal_point, int *const sign, __crt_cached_ptd_host &ptd)
◆ _fcvt_internal()
Definition at line 137 of file fcvt.cpp.
144{
147 {
148 return nullptr;
149 }
150
152
158 &strflt,
159 result_string,
161
162
163
164
165
166 int const capped_digits =
min(requested_digits,
_CVTBUFSIZE - 2 - strflt.decpt);
167
170 {
171 return nullptr;
172 }
173
175}
static errno_t __cdecl _fcvt_s_internal(char *const buffer, size_t const buffer_count, double const value, int const requested_digits, int *const decimal_point, int *const sign, __crt_cached_ptd_host &ptd)
Referenced by _fcvt().
◆ _fcvt_s()
Definition at line 124 of file fcvt.cpp.
132{
133 __crt_cached_ptd_host
ptd;
135}
◆ _fcvt_s_internal()
Definition at line 86 of file fcvt.cpp.
95{
101
103
109 &strflt,
110 result_string,
112
113 int const actual_digits = strflt.decpt + requested_digits;
114
115 bool const buffer_insufficiently_large =
116 requested_digits > 0 && strflt.decpt > 0 &&
117 actual_digits < requested_digits;
118
119 int const capped_digits = buffer_insufficiently_large ?
INT_MAX : actual_digits;
120
122}
Referenced by _fcvt_internal(), and _fcvt_s().
◆ internal_to_string()
Definition at line 40 of file fcvt.cpp.
49{
50
51
52
53
54 size_t const minimum_buffer_count = static_cast<size_t>((requested_digits > 0 ? requested_digits : 0) + 2);
55
57
58 int const capped_digits =
min(requested_digits,
static_cast<int>(
buffer_count - 2));
59
61
63 {
64 return ptd.get_errno().set(
e);
65 }
66
67 *
sign = strflt->sign ==
'-' ? 1 : 0;
68 *decimal_point = strflt->decpt;
69
70 return 0;
71}
errno_t __cdecl __acrt_fp_strflt_to_string(char *const buffer, size_t const buffer_count, int digits, STRFLT const pflt, __acrt_has_trailing_digits const trailing_digits, __acrt_rounding_mode const rounding_mode, __crt_cached_ptd_host &ptd)
Referenced by _ecvt_s_internal(), and _fcvt_s_internal().
◆ try_get_ptd_buffer()
static char *__cdecl try_get_ptd_buffer |
( |
__crt_cached_ptd_host & |
ptd | ) |
|
|
static |