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::string
in particular. In that case you can use any standard C string functions or throw in your own as you feel need. For conversion from jstring
to const char *
you can look here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.