![]() |
MySQL 9.6.0
Source Code Documentation
|
Format class to encode ascii strings. More...
#include <escaped_format.h>
Public Types | |
| using | Table_t = std::array< std::string_view, 256 > |
Public Member Functions | |
| Escaped_format (With_quotes with_quotes=With_quotes::no) | |
| Construct a new Format object. More... | |
Static Public Member Functions | |
| static const Table_t & | table () |
| Return the conversion table for this format. More... | |
Public Attributes | |
| With_quotes | m_with_quotes |
| Indicates whether output strings should be enclosed in quote characters. More... | |
Static Public Attributes | |
| static constexpr char | quote_char = quote_char_tp |
| static constexpr char | escape_char = escape_char_tp |
| static constexpr Preserve_high_characters | preserve_high_characters |
| static constexpr Numeric_control_characters | numeric_control_characters |
Static Private Member Functions | |
| static const Table_t & | build_table () |
| Construct and return the table. More... | |
Static Private Attributes | |
| static Table_t | m_table |
| Element 'c' is a string_view over character 'c' escaped. More... | |
| static std::array< std::array< char, 4 >, 256 > | m_data_table |
| Element 'c' is a character array containing the string data for character 'c' escaped. More... | |
Format class to encode ascii strings.
| quote_char_tp | The character that surrounds a string, e.g. double quote. |
| escape_char_tp | The character that begins an escape sequence, e.g. backslash. |
| preserve_high_characters_tp | Whether ascii 128..255 should be preserved or escaped: backslash-xff vs ascii 255. |
| numeric_control_characters_tp | Whether ascii 7..13 should use hex instead of mnemonics: backslash-x0a vs backslash-n. |
| using mysql::strconv::Escaped_format< quote_char_tp, escape_char_tp, preserve_high_characters_tp, numeric_control_characters_tp >::Table_t = std::array<std::string_view, 256> |
|
inlineexplicit |
Construct a new Format object.
| with_quotes | Indicates whether output strings should be enclosed in quote characters. |
|
inlinestaticprivate |
Construct and return the table.
|
inlinestatic |
Return the conversion table for this format.
For a character c between 0 and 255, element c is the possibly-escaped form of character c, as a std::string_view.
|
staticconstexpr |
|
inlinestaticprivate |
Element 'c' is a character array containing the string data for character 'c' escaped.
|
inlinestaticprivate |
Element 'c' is a string_view over character 'c' escaped.
| With_quotes mysql::strconv::Escaped_format< quote_char_tp, escape_char_tp, preserve_high_characters_tp, numeric_control_characters_tp >::m_with_quotes |
Indicates whether output strings should be enclosed in quote characters.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |