From a4ecfa5bc0151f2a65774cb5b1e9092c8de5e107 Mon Sep 17 00:00:00 2001 From: Daniel Vassdal Date: Thu, 13 Feb 2014 16:57:02 -0800 Subject: [PATCH] Anope::string: Add .data() --- include/anope.h | 1 + 1 file changed, 1 insertion(+) 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()); }