1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 21:46:38 +02:00

Anope::string: Add .data()

This commit is contained in:
Daniel Vassdal
2014-02-13 16:57:02 -08:00
parent 3c8009b495
commit a4ecfa5bc0
+1
View File
@@ -115,6 +115,7 @@ namespace Anope
* The following functions return the various types of strings.
*/
inline const char *c_str() const { return this->_string.c_str(); }
inline const char *data() const { return this->_string.data(); }
inline std::string &str() { return this->_string; }
inline const std::string &str() const { return this->_string; }
inline ci::string ci_str() const { return ci::string(this->_string.c_str()); }