Reputation: 14066
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
Upvotes: 0
Views: 1201
Reputation:
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.
Upvotes: 1