summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-08-01 12:21:42 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-08-01 12:21:42 -0400
commit084766069cdf24b69e1f146db4d44a24b617e7de (patch)
treec1ff0fd43ed68a7ee55d4ad953dc45bc8310362b /include
parent1175ef320e25919746cafda6c8aaa57c5adc1860 (diff)
parentbfd94136c62b20f0a8e15d22815ef3a6e6438d49 (diff)
Merge branch '1.9' of ssh://anope.git.sf.net/gitroot/anope/anope into 1.9
Diffstat (limited to 'include')
-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.