322
323 /*
324 * Internal use only.
325 */
326 enum {
327 NO_ENCODING_YET = 0, /* "sun.jnu.encoding" not yet set */
328 NO_FAST_ENCODING, /* Platform encoding is not fast */
329 FAST_8859_1, /* ISO-8859-1 */
330 FAST_CP1252, /* MS-DOS Cp1252 */
331 FAST_646_US /* US-ASCII : ISO646-US */
332 };
333
334 jstring nativeNewStringPlatform(JNIEnv *env, const char *str);
335
336 char* nativeGetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy);
337
338 int getFastEncoding();
339
340 void initializeEncoding();
341
342
343 #ifdef __cplusplus
344 } /* extern "C" */
345 #endif /* __cplusplus */
346
347 #endif /* JNI_UTIL_H */
|
322
323 /*
324 * Internal use only.
325 */
326 enum {
327 NO_ENCODING_YET = 0, /* "sun.jnu.encoding" not yet set */
328 NO_FAST_ENCODING, /* Platform encoding is not fast */
329 FAST_8859_1, /* ISO-8859-1 */
330 FAST_CP1252, /* MS-DOS Cp1252 */
331 FAST_646_US /* US-ASCII : ISO646-US */
332 };
333
334 jstring nativeNewStringPlatform(JNIEnv *env, const char *str);
335
336 char* nativeGetStringPlatformChars(JNIEnv *env, jstring jstr, jboolean *isCopy);
337
338 int getFastEncoding();
339
340 void initializeEncoding();
341
342 void* getProcessHandle();
343
344 #ifdef __cplusplus
345 } /* extern "C" */
346 #endif /* __cplusplus */
347
348 #endif /* JNI_UTIL_H */
|