summaryrefslogtreecommitdiff
path: root/include/anope.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/anope.h')
-rw-r--r--include/anope.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h
index 4cd8fc2b0..be5c2f964 100644
--- a/include/anope.h
+++ b/include/anope.h
@@ -153,6 +153,11 @@ namespace Anope
inline size_type length() const { return this->_string.length(); }
/**
+ * Resizes the string content to n characters.
+ */
+ inline void resize(size_type n) { return this->_string.resize(n); }
+
+ /**
* Erases characters from the string.
*/
inline iterator erase(const iterator &i) { return this->_string.erase(i); }
@@ -311,6 +316,12 @@ namespace Anope
* @return a vector with pointers to the messagehandlers (you can bind more than one handler to a message)
*/
extern CoreExport std::vector<Message *> FindMessage(const string &name);
+
+ /** Converts a string to hex
+ * @param the data to be converted
+ * @return a anope::string containing the hex value
+ */
+ extern CoreExport string Hex(const string &data);
}
/** sepstream allows for splitting token seperated lists.