Home
last modified time | relevance | path

Searched refs:strings (Results 1 – 2 of 2) sorted by relevance

/libnativehelper/
DtoStringArray.cpp25 const char* const* strings; member
26 ArrayCounter(const char* const* strings) : strings(strings) {} in ArrayCounter()
29 while (strings[count] != NULL) { in operator ()()
37 const char* const* strings; member
38 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() argument
45 ArrayCounter counter(strings); in toStringArray()
46 ArrayGetter getter(strings); in toStringArray()
/libnativehelper/include/nativehelper/
DtoStringArray.h49 const std::vector<std::string>& strings; member
50 VectorCounter(const std::vector<std::string>& strings) : strings(strings) {} in VectorCounter()
52 return strings.size(); in operator()
56 const std::vector<std::string>& strings; member
57 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() argument
64 VectorCounter counter(strings); in toStringArray()
65 VectorGetter getter(strings); in toStringArray()
69 JNIEXPORT jobjectArray toStringArray(JNIEnv* env, const char* const* strings);