Index: src/Utils.h |
diff --git a/src/Utils.h b/src/Utils.h |
index 287b2800763aa817ef166e6ae95374c5e1352916..1c4ee830a212d6a63a3b0a2b1fb525424a1784e3 100644 |
--- a/src/Utils.h |
+++ b/src/Utils.h |
@@ -48,6 +48,10 @@ namespace AdblockPlus |
std::string ToUtf8String(const std::wstring& str); |
std::wstring CanonizeUrl(const std::wstring& url); |
#endif |
+ inline bool BeginsWith(const std::string& str, const std::string& beginning) |
+ { |
+ return 0 == str.compare(0, beginning.size(), beginning); |
+ } |
} |
} |