diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-03 15:53:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-05 22:53:59 +0300 |
commit | bf435a79408d89072f5872ab98449949a8a077b0 (patch) | |
tree | e50bddcd239de2756780691cabf8779dd5efcc12 /src/utils/stringutils.cpp | |
parent | 42990fcd0a9f662eea267097e88b68b9c30da457 (diff) | |
download | mv-bf435a79408d89072f5872ab98449949a8a077b0.tar.gz mv-bf435a79408d89072f5872ab98449949a8a077b0.tar.bz2 mv-bf435a79408d89072f5872ab98449949a8a077b0.tar.xz mv-bf435a79408d89072f5872ab98449949a8a077b0.zip |
Add own translation system.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r-- | src/utils/stringutils.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 16542526f..becb2124d 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -592,3 +592,10 @@ std::string &removeProtocol(std::string &url) url = url.substr(i + 3); return url; } + +bool strStartWith(std::string str1, std::string str2) +{ + if (str1.size() < str2.size()) + return false; + return str1.substr(0, str2.size()) == str2; +} |