|
rapidyaml
0.7.1
parse and emit YAML, and do it fast
|
Writes a value without checking the buffer length decimal number – but asserting. More...
Functions | |
| template<class T > | |
| size_t | c4::write_dec (substr buf, T v) noexcept |
| write an integer to a string in decimal format. More... | |
| template<class T > | |
| size_t | c4::write_hex (substr buf, T v) noexcept |
| write an integer to a string in hexadecimal format. More... | |
| template<class T > | |
| size_t | c4::write_oct (substr buf, T v) noexcept |
| write an integer to a string in octal format. More... | |
| template<class T > | |
| size_t | c4::write_bin (substr buf, T v) noexcept |
| write an integer to a string in binary format. More... | |
| template<class T > | |
| size_t | c4::write_dec (substr buf, T val, size_t num_digits) noexcept |
same as c4::write_dec(), but pad with zeroes on the left such that the resulting string is num_digits wide. More... | |
| template<class T > | |
| size_t | c4::write_hex (substr buf, T val, size_t num_digits) noexcept |
same as c4::write_hex(), but pad with zeroes on the left such that the resulting string is num_digits wide. More... | |
| template<class T > | |
| size_t | c4::write_bin (substr buf, T val, size_t num_digits) noexcept |
same as c4::write_bin(), but pad with zeroes on the left such that the resulting string is num_digits wide. More... | |
| template<class T > | |
| size_t | c4::write_oct (substr buf, T val, size_t num_digits) noexcept |
same as c4::write_oct(), but pad with zeroes on the left such that the resulting string is num_digits wide. More... | |
Writes a value without checking the buffer length decimal number – but asserting.
|
inlinenoexcept |
write an integer to a string in decimal format.
This is the lowest level (and the fastest) function to do this task.
Definition at line 708 of file charconv.hpp.
References c4::digits_dec(), and c4::write_dec_unchecked().
Referenced by c4::itoa(), c4::utoa(), and c4::xtoa().
|
inlinenoexcept |
write an integer to a string in hexadecimal format.
This is the lowest level (and the fastest) function to do this task.
Definition at line 727 of file charconv.hpp.
References c4::digits_hex(), and c4::write_hex_unchecked().
Referenced by c4::itoa(), and c4::utoa().
|
inlinenoexcept |
write an integer to a string in octal format.
This is the lowest level (and the fastest) function to do this task.
Definition at line 746 of file charconv.hpp.
References c4::digits_oct(), and c4::write_oct_unchecked().
Referenced by c4::itoa(), and c4::utoa().
|
inlinenoexcept |
write an integer to a string in binary format.
This is the lowest level (and the fastest) function to do this task.
Definition at line 765 of file charconv.hpp.
References c4::digits_bin(), and c4::write_bin_unchecked().
Referenced by c4::itoa(), and c4::utoa().
|
inlinenoexcept |
same as c4::write_dec(), but pad with zeroes on the left such that the resulting string is num_digits wide.
If the given number is requires more than num_digits, then the number prevails.
Definition at line 803 of file charconv.hpp.
Referenced by c4::to_chars().
|
inlinenoexcept |
same as c4::write_hex(), but pad with zeroes on the left such that the resulting string is num_digits wide.
If the given number is requires more than num_digits, then the number prevails.
Definition at line 812 of file charconv.hpp.
|
inlinenoexcept |
same as c4::write_bin(), but pad with zeroes on the left such that the resulting string is num_digits wide.
If the given number is requires more than num_digits, then the number prevails.
Definition at line 821 of file charconv.hpp.
|
inlinenoexcept |
same as c4::write_oct(), but pad with zeroes on the left such that the resulting string is num_digits wide.
If the given number is requires more than num_digits, then the number prevails.
Definition at line 830 of file charconv.hpp.