MySQL 9.6.0
Source Code Documentation
mysql::strconv::throwing Namespace Reference

Functions

template<class String_t = std::string, Is_format Format_t, class... Args_t>
auto concat (const Format_t &format, const Args_t &...args)
 Concatenate the string representations of the objects and return a std::string object holding the result. More...
 
template<class String_t = std::string>
String_t encode (const Is_format auto &format, const auto &object)
 Return an std::string object holding the string representation of the given object. More...
 
template<class String_t = std::string, class Object_t >
String_t encode_debug (const Object_t &object)
 Return an std::string object holding the string representation of the given object, using Debug_format. More...
 
template<class String_t = std::string, class... Objects_t>
String_t concat_debug (const Objects_t &...objects)
 Return an std::string object holding the concatenated string representations of the objects, using Debug_format. More...
 
template<class String_t = std::string, class Object_t >
String_t encode_text (const Object_t &object)
 Return an std::string object holding the string representation of the object, using Text_format. More...
 
template<class String_t = std::string, class... Objects_t>
String_t concat_text (const Objects_t &...objects)
 Return an std::string object holding the concatenated string representations of the objects, using Text_format. More...
 

Function Documentation

◆ concat()

template<class String_t = std::string, Is_format Format_t, class... Args_t>
auto mysql::strconv::throwing::concat ( const Format_t &  format,
const Args_t &...  args 
)

Concatenate the string representations of the objects and return a std::string object holding the result.

Template Parameters
String_tOutput string type. Defaults to std::string.
Format_tType of format.
Args_tTypes of objects.
Parameters
formatFormat object.
argsObjects.
Returns
String_t object holding the result.
Exceptions
bad_allocif an out-of-memory condition occurred.

◆ concat_debug()

template<class String_t = std::string, class... Objects_t>
String_t mysql::strconv::throwing::concat_debug ( const Objects_t &...  objects)

Return an std::string object holding the concatenated string representations of the objects, using Debug_format.

Template Parameters
String_tOutput string type. Defaults to std::string.
Objects_tTypes of objects.
Parameters
objectsObjects to write.
Returns
Concatenated string representations of objects.
Exceptions
bad_allocif an out-of-memory condition occurs.

◆ concat_text()

template<class String_t = std::string, class... Objects_t>
String_t mysql::strconv::throwing::concat_text ( const Objects_t &...  objects)

Return an std::string object holding the concatenated string representations of the objects, using Text_format.

Template Parameters
String_tOutput string type. Defaults to std::string.
Objects_tTypes of objects.
Parameters
objectsObjects to write.
Returns
Concatenated string representations of objects.
Exceptions
bad_allocif an out-of-memory condition occurs.

◆ encode()

template<class String_t = std::string>
String_t mysql::strconv::throwing::encode ( const Is_format auto &  format,
const auto &  object 
)

Return an std::string object holding the string representation of the given object.

Template Parameters
String_tOutput string type. Defaults to std::string.
Parameters
formatDescription of output format.
objectObject to write.
Returns
String representation of object.
Exceptions
bad_allocif an out-of-memory condition occurs.

◆ encode_debug()

template<class String_t = std::string, class Object_t >
String_t mysql::strconv::throwing::encode_debug ( const Object_t &  object)

Return an std::string object holding the string representation of the given object, using Debug_format.

Template Parameters
String_tOutput string type. Defaults to std::string.
Object_tType of object.
Parameters
objectObject to write.
Returns
String representation of object.
Exceptions
bad_allocif an out-of-memory condition occurs.

◆ encode_text()

template<class String_t = std::string, class Object_t >
String_t mysql::strconv::throwing::encode_text ( const Object_t &  object)

Return an std::string object holding the string representation of the object, using Text_format.

Template Parameters
String_tOutput string type. Defaults to std::string.
Object_tType of object.
Parameters
objectObject to write.
Returns
String representation of object.
Exceptions
bad_allocif an out-of-memory condition occurs.