Searched refs:strings (Results 1 – 2 of 2) sorted by relevance
25 const char* const* strings; member26 ArrayCounter(const char* const* strings) : strings(strings) {} in ArrayCounter()29 while (strings[count] != NULL) { in operator ()()37 const char* const* strings; member38 ArrayGetter(const char* const* strings) : strings(strings) {} in ArrayGetter()40 return strings[i]; in operator ()()44 jobjectArray toStringArray(JNIEnv* env, const char* const* strings) { in toStringArray() argument45 ArrayCounter counter(strings); in toStringArray()46 ArrayGetter getter(strings); in toStringArray()
49 const std::vector<std::string>& strings; member50 VectorCounter(const std::vector<std::string>& strings) : strings(strings) {} in VectorCounter()52 return strings.size(); in operator()56 const std::vector<std::string>& strings; member57 VectorGetter(const std::vector<std::string>& strings) : strings(strings) {} in VectorGetter()59 return strings[i].c_str(); in operator()63 inline jobjectArray toStringArray(JNIEnv* env, const std::vector<std::string>& strings) { in toStringArray() argument64 VectorCounter counter(strings); in toStringArray()65 VectorGetter getter(strings); in toStringArray()69 JNIEXPORT jobjectArray toStringArray(JNIEnv* env, const char* const* strings);