![]() |
MySQL 9.6.0
Source Code Documentation
|
String_writer subclass that can be instantiated. More...
#include <string_writer.h>
Public Member Functions | |
| Constructible_string_writer (const Is_out_str auto &out_str) | |
Public Member Functions inherited from mysql::strconv::String_writer | |
| String_writer (const String_writer &)=delete | |
| String_writer (String_writer &&) noexcept=default | |
| String_writer & | operator= (const String_writer &)=delete |
| String_writer & | operator= (String_writer &&) noexcept=default |
| ~String_writer ()=default | |
| void | write_raw (const std::string_view &sv) |
| Append a string_view to the buffer, unformatted. More... | |
| void | write_char (int ch) |
| Append a single character to the buffer. More... | |
| void | write (const Is_format auto &format, const auto &object) |
| Write the given object to this String_writer. More... | |
| void | write (const Is_format auto &format, const std::string_view &sv) |
| Write the given string_view to this String_writer. More... | |
| void | advance (std::size_t size) |
Move the position size bytes forward without writing anything. More... | |
| char * | pos () |
| Return the current write position as a char *. More... | |
| const char * | pos () const |
| Return the current write position as a const char *. More... | |
| unsigned char * | upos () |
| Return the current write position as an unsigned char *. More... | |
| const unsigned char * | upos () const |
| Return the current write position as a const unsigned char *. More... | |
| std::byte * | bpos () |
| Return the current write position as a std::byte *. More... | |
| const std::byte * | bpos () const |
| Return the current write position as a const std::byte *. More... | |
| char * | end () |
| Return the buffer end as a char *. More... | |
| const char * | end () const |
| Return the buffer end as a const char *. More... | |
| unsigned char * | uend () |
| Return the buffer end as an unsigned char *. More... | |
| const unsigned char * | uend () const |
| Return the buffer end as a const unsigned char *. More... | |
| std::byte * | bend () |
| Return the buffer end as a std::byte *. More... | |
| const std::byte * | bend () const |
| Return the buffer end as a const std::byte *. More... | |
| std::size_t | remaining_size () const |
Public Member Functions inherited from mysql::strconv::detail::String_target_interface< String_writer > | |
| void | concat (const Is_format auto &format, const Args_t &...args) |
| Depending on the subclass, write or compute the size of multiple objects to this String_target. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from mysql::strconv::String_writer | |
| static constexpr Target_type | target_type = Target_type::writer |
Protected Member Functions inherited from mysql::strconv::String_writer | |
| String_writer (char *first, char *last) | |
| Construct a new object backed by the given buffer. More... | |
Protected Member Functions inherited from mysql::strconv::detail::String_target_interface< String_writer > | |
| void | resolve_format_and_write (const Is_format auto &format, const Object_t &object) |
| Resolve the format, using the rules to deduce format based on default format and parent format, and write the given object using the resolved format. More... | |
String_writer subclass that can be instantiated.
We hide this in the detail namespace because the class is not supposed to be instantiated in user code, only in this framework.
|
inlineexplicit |