| The Cygnus Native Interface for C++/Java Integration | ||
|---|---|---|
| Prev | The Cygnus Native Interface for C++/Java Integration | Next |
CNI provides a number of utility functions for working with Java String objects. The names and interfaces are analogous to those of JNI.
jstring JvNewString(const jchar *chars, jsize len);jstring JvNewStringLatin1(const char *bytes, jsize len);jstring JvNewStringLatin1(const char *bytes);jstring JvNewStringUTF(const char *bytes);jchar *JvGetStringChars(jstring str); int JvGetStringUTFLength(jstring str); jsize JvGetStringUTFRegion(jstring str, jsize start, jsize len, char *buf);