|
| size_t | c4::to_chars (substr buf, uint8_t v) noexcept |
| |
| size_t | c4::to_chars (substr buf, uint16_t v) noexcept |
| |
| size_t | c4::to_chars (substr buf, uint32_t v) noexcept |
| |
| size_t | c4::to_chars (substr buf, uint64_t v) noexcept |
| |
| size_t | c4::to_chars (substr buf, int8_t v) noexcept |
| |
| size_t | c4::to_chars (substr buf, int16_t v) noexcept |
| |
| size_t | c4::to_chars (substr buf, int32_t v) noexcept |
| |
| size_t | c4::to_chars (substr buf, int64_t v) noexcept |
| |
| size_t | c4::to_chars (substr buf, float v) noexcept |
| |
| size_t | c4::to_chars (substr buf, double v) noexcept |
| |
| template<class T > |
| size_t ::type | c4::to_chars (substr buf, T v) noexcept |
| |
| template<class T > |
| size_t | c4::to_chars (substr s, T *v) noexcept |
| |
| template<class T > |
| substr | c4::to_chars_sub (substr buf, T const &v) noexcept |
| | call to_chars() and return a substr consisting of the written portion of the input buffer. More...
|
| |
| size_t | c4::to_chars (substr buf, bool v) noexcept |
| |
| size_t | c4::to_chars (substr buf, char v) noexcept |
| |
| size_t | c4::to_chars (substr buf, csubstr v) noexcept |
| |
| size_t | c4::to_chars (substr buf, substr v) noexcept |
| |
| template<size_t N> |
| size_t | c4::to_chars (substr buf, const char(&v)[N]) noexcept |
| |
| size_t | c4::to_chars (substr buf, const char *v) noexcept |
| |
| template<class T > |
| size_t | c4::to_chars (substr buf, fmt::boolalpha_< T > fmt) |
| | write a variable as an alphabetic boolean, ie as either true or false More...
|
| |
| template<typename T > |
| std::enable_if< std::is_signed< T >::value, size_t >::type | c4::to_chars (substr buf, fmt::integral_< T > fmt) |
| | format an integer signed type More...
|
| |
| template<typename T > |
| std::enable_if< std::is_signed< T >::value, size_t >::type | c4::to_chars (substr buf, fmt::integral_padded_< T > fmt) |
| | format an integer signed type, pad with zeroes More...
|
| |
| size_t | c4::to_chars (substr buf, fmt::real_< float > fmt) |
| |
| size_t | c4::to_chars (substr buf, fmt::real_< double > fmt) |
| |
| size_t | c4::to_chars (substr buf, fmt::const_raw_wrapper r) |
| | write a variable in raw binary format, using memcpy More...
|
| |
| template<class T > |
| size_t | c4::to_chars (substr buf, fmt::left_< T > const &align) |
| |
| template<class T > |
| size_t | c4::to_chars (substr buf, fmt::right_< T > const &align) |
| |
| size_t | c4::to_chars (substr buf, fmt::const_base64_wrapper b) |
| | write a variable in base64 format More...
|
| |
Convert the given value, writing into the string.
The resulting string will NOT be null-terminated. Return the number of characters needed. This function is safe to call when the string is too small - no writes will occur beyond the string's last character.
Dispatches to the most appropriate and efficient conversion function.
template<class T >
| substr c4::to_chars_sub |
( |
substr |
buf, |
|
|
T const & |
v |
|
) |
| |
|
inlinenoexcept |
call to_chars() and return a substr consisting of the written portion of the input buffer.
Ie, same as to_chars(), but return a substr instead of a size_t. Convert the given value to a string using to_chars(), and return the resulting string, up to and including the last written character.
- See also
- to_chars()
Definition at line 2427 of file charconv.hpp.
2430 return buf.left_of(sz <= buf.len ? sz : buf.len);
size_t to_chars(substr buf, const char *v) noexcept
References c4::to_chars().