Implement VMClassLoader's native methods.
Change-Id: I6e617f415e54ce29c3a0a470b58e79d3aaa0a4bf
diff --git a/src/utils.h b/src/utils.h
index fc58617..e582c7d 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -172,6 +172,15 @@
// of the JNI spec.
std::string MangleForJni(const std::string& s);
+// Tests whether 's' is a valid class name.
+// name_or_descriptor
+// true => "java/lang/String"
+// false => "Ljava/lang/String;" (i.e. "descriptor")
+// dot_or_slash
+// true => "java.lang.String"
+// false => "java/lang/String" (i.e. "dot or slash")
+bool IsValidClassName(const char* s, bool name_or_descriptor, bool dot_or_slash);
+
// Returns the JNI native function name for the non-overloaded method 'm'.
std::string JniShortName(const Method* m);
// Returns the JNI native function name for the overloaded method 'm'.