0

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

lacas
  • 13,928
  • 30
  • 109
  • 183

1 Answers1

1

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.

Community
  • 1
  • 1