diff options
author | Daniel Vassdal <shutter@canternet.org> | 2014-02-13 16:57:02 -0800 |
---|---|---|
committer | Daniel Vassdal <shutter@canternet.org> | 2014-02-14 13:05:01 -0800 |
commit | a4ecfa5bc0151f2a65774cb5b1e9092c8de5e107 (patch) | |
tree | c82187521cdf55df8b962fe7714eaf0ad6a2ac09 /include/anope.h | |
parent | 3c8009b4950a670618c3ee476f21f67a9468fdb2 (diff) |
Anope::string: Add .data()
Diffstat (limited to 'include/anope.h')
-rw-r--r-- | include/anope.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h index 28bc50512..638661440 100644 --- a/include/anope.h +++ b/include/anope.h @@ -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()); } |