|
rapidyaml 0.15.2
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. | |
| template<class T> | |
| size_t | c4::write_hex (substr buf, T v) noexcept |
| write an integer to a string in hexadecimal format. | |
| template<class T> | |
| size_t | c4::write_oct (substr buf, T v) noexcept |
| write an integer to a string in octal format. | |
| template<class T> | |
| size_t | c4::write_bin (substr buf, T v) noexcept |
| write an integer to a string in binary format. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
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 714 of file charconv.hpp.
Referenced by itoa(), itoa(), to_chars(), to_chars(), to_chars(), to_chars(), utoa(), utoa(), xtoa(), xtoa(), xtoa(), and 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 733 of file charconv.hpp.
|
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 752 of file charconv.hpp.
|
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 771 of file charconv.hpp.
|
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 requires more than num_digits, then the number prevails.
Definition at line 812 of file charconv.hpp.
|
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 requires more than num_digits, then the number prevails.
Definition at line 821 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 requires more than num_digits, then the number prevails.
Definition at line 830 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 requires more than num_digits, then the number prevails.
Definition at line 839 of file charconv.hpp.