diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/anope.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/anope.h b/include/anope.h index 03bb2418d..972e49b7f 100644 --- a/include/anope.h +++ b/include/anope.h @@ -225,7 +225,7 @@ namespace Anope inline string replace(iterator first, iterator last, const string &_str) { return string(this->_string.replace(first, last, _str._string)); } inline string replace(iterator first, iterator last, size_type n, char chr) { return string(this->_string.replace(first, last, n, chr)); } template <class InputIterator> inline string replace(iterator first, iterator last, InputIterator f, InputIterator l) { return string(this->_string.replace(first, last, f, l)); } - inline string replace_all_cs(const string &_orig, const string &_repl) + inline string replace_all_cs(const string &_orig, const string &_repl) const { Anope::string new_string = *this; size_type pos = new_string.find(_orig), orig_length = _orig.length(), repl_length = _repl.length(); @@ -236,7 +236,7 @@ namespace Anope } return new_string; } - inline string replace_all_ci(const string &_orig, const string &_repl) + inline string replace_all_ci(const string &_orig, const string &_repl) const { Anope::string new_string = *this; size_type pos = new_string.find_ci(_orig), orig_length = _orig.length(), repl_length = _repl.length(); |
