What is the way to parse a given jstring without std?
I am in android, and cannot fint a way to use string functions. Is it not available?
I d like something similar then: .replaceAll, .split, .startWith, or StringTokenizer, etc in Java.
“jni/hello-jni.cpp:207: error: ‘string’ in namespace ‘std’ does not
name a type”
Thanks,
Leslie
I guess that by “without std” you mean without C++ and
std::stringin particular. In that case you can use any standard C string functions or throw in your own as you feel need. For conversion fromjstringtoconst char *you can look here.