#include #include "attach_env.hpp" #include namespace mbgl { namespace platform { std::string uppercase(const std::string& str) { auto env{ android::AttachEnv() }; jni::Local value = jni::Make(*env, str.c_str()); static auto toUpperCase = jni::Class::Singleton(*env).GetMethod(*env, "toUpperCase"); auto result = value.Call(*env, toUpperCase); return jni::Make(*env, result); } std::string lowercase(const std::string& str) { auto env{ android::AttachEnv() }; jni::Local value = jni::Make(*env, str.c_str()); static auto toLowerCase = jni::Class::Singleton(*env).GetMethod(*env, "toLowerCase"); auto result = value.Call(*env, toLowerCase); return jni::Make(*env, result); } } // namespace platform } // namespace mbgl