summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/utils.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-11-26 08:44:18 +0000
committerRobert Pösel <robyer@seznam.cz>2014-11-26 08:44:18 +0000
commitc1d2d5892eda3070975bbb82ac4f2e35d7bc139e (patch)
tree5902759b93eed462f1b8815a19b9f9e35d674046 /protocols/FacebookRM/src/utils.h
parentf5e38aaba573fa720894433ae746b3a7a741356e (diff)
Facebook: Various optimizations and cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11083 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/utils.h')
-rw-r--r--protocols/FacebookRM/src/utils.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/FacebookRM/src/utils.h b/protocols/FacebookRM/src/utils.h
index 69315ae1e0..6a5943e0a3 100644
--- a/protocols/FacebookRM/src/utils.h
+++ b/protocols/FacebookRM/src/utils.h
@@ -53,25 +53,25 @@ namespace utils
namespace text
{
- void replace_first(std::string* data, std::string from, std::string to);
- void replace_all(std::string* data, std::string from, std::string to);
- unsigned int count_all(std::string* data, std::string term);
+ void replace_first(std::string* data, const std::string &from, const std::string &to);
+ void replace_all(std::string* data, const std::string &from, const std::string &to);
+ unsigned int count_all(std::string* data, const std::string &term);
std::string html_entities_decode(std::string data);
std::string edit_html(std::string data);
- std::string remove_html(std::string data);
- std::string slashu_to_utf8(std::string data);
- std::string trim(std::string data, bool rtrim = false);
+ std::string remove_html(const std::string &data);
+ std::string slashu_to_utf8(const std::string &data);
+ std::string trim(const std::string &data, bool rtrim = false);
std::string source_get_value(std::string* data, unsigned int argument_count, ...);
std::string source_get_value2(std::string* data, const char *term, const char *endings, bool wholeString = false);
std::string source_get_form_data(std::string* data);
std::string rand_string(int len, const char *chars = "0123456789" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz");
- void explode(std::string str, std::string separator, std::vector<std::string>* results);
+ void explode(std::string str, const std::string &separator, std::vector<std::string>* results);
void append_ordinal(unsigned long value, std::string* data);
};
namespace conversion
{
- DWORD to_timestamp(std::string data);
+ DWORD to_timestamp(const std::string &data);
std::string to_string(void*, WORD type);
template <class T>