Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/jni/Utils.cpp

Issue 29465639: Issue 5309 - Subscriptions update causes ANR (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: rebase Created July 5, 2017, 1:47 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « libadblockplus-android/jni/Utils.h ('k') | libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld