Index: libadblockplus-android/jni/Utils.cpp |
diff --git a/libadblockplus-android/jni/Utils.cpp b/libadblockplus-android/jni/Utils.cpp |
index 02a2bade2e9fbadb7d1127b2441941c8cab6fb7c..26f42a6efa8e9f8f46d6b473fdaef60d0a5499e0 100644 |
--- a/libadblockplus-android/jni/Utils.cpp |
+++ b/libadblockplus-android/jni/Utils.cpp |
@@ -103,6 +103,11 @@ jstring JniStdStringToJava(JNIEnv* env, std::string str) |
return env->NewStringUTF(str.c_str()); |
} |
+bool stringBeginsWith(const std::string& string, const std::string& beginning) |
+{ |
+ return string.compare(0, beginning.length(), beginning); |
+} |
+ |
jobject NewJniArrayList(JNIEnv* env) |
{ |
return env->NewObject(arrayListClass->Get(), arrayListCtor); |