#include <xmog_java_string.h>
Collaboration diagram for xmog_java_string:

Static Public Member Functions | |
| static void | init_encodings (xmog_localenv *env=NULL) |
| Initializes the static instances. | |
| static void | set_default_encoding (const char *_enc, xmog_localenv *env=NULL) |
| Sets the default encoding that is used on the current thread. | |
| static void | set_default_encoding (const XMOG_WCHAR *_enc, xmog_localenv *env=NULL) |
| Sets the default encoding that is used on the current thread. | |
| static void | set_default_encoding (xmog_base *_enc, xmog_localenv *env=NULL) |
| Sets the default encoding that is used on the current thread. | |
| static jstring | from_char (const char *_str, jint _len=-1, xmog_base *_enc=NULL, xmog_localenv *env=NULL, xmog_base *pStr=NULL, char **pCache=NULL) |
Returns a jstring for the given character string. | |
| static void | from_char (xmog_base *_this, xmog_flags _flags, const char *_str, jint _len=-1, xmog_base *_enc=NULL, xmog_localenv *env=NULL, xmog_base *pStr=NULL, char **pCache=NULL) |
Returns a jstring for the given character string. | |
| static jstring | from_charUtf8 (const char *_strUTF, xmog_localenv *env=NULL) |
Returns a jstring for the given UTF-8 character string. | |
| static void | from_charUtf8 (xmog_base *_this, xmog_flags _flags, const char *_strUTF, xmog_localenv *env=NULL) |
Returns a jstring for the given UTF-8 character string. | |
| static char * | to_char (jstring _str, xmog_localenv *env=NULL, xmog_base *pStr=NULL, char **pCache=NULL) |
Returns a char string for the given Java string. | |
| static char * | to_char (jstring _str, xmog_base *_enc=NULL, xmog_localenv *env=NULL, xmog_base *pStr=NULL, char **pCache=NULL) |
Returns a char string for the given Java string. | |
| static char * | to_charUtf8 (jstring _str, xmog_localenv *env=NULL, xmog_base *pStr=NULL, char **pCache=NULL) |
| Returns a UTF-8 string for the given Java string. | |
| static unsigned short * | to_u16 (jstring _str, xmog_localenv *env=NULL) |
Returns a unsigned short string for the given Java string. | |
| static void | free (char *&str) |
| Frees a previously allocated string. | |
| static void | free_u16 (unsigned short *&str) |
| Frees a previously allocated string. | |
Static Public Attributes | |
| static xmog_base * | US_ASCII |
| The US-ASCII character set. | |
| static xmog_base * | ISO_8859_1 |
| The ISO-8859-1 character set. | |
| static xmog_base * | UTF_8 |
| The UTF-8 character set. | |
| static xmog_base * | UTF_16BE |
| The UTF-16BE character set. | |
| static xmog_base * | UTF_16LE |
| The UTF-16LE character set. | |
| static xmog_base * | UTF_16 |
| The UTF-16 character set. | |
This class provides different variations of the same API to allow use from singlebyte and multibyte (UNICODE) clients. It also declares several static encoding instances that can be used to support the built-in encodings.
|
|
Frees a previously allocated string. This method relies on the fact that the string that is to be freed was previously allocated using the framework's memory allocator.
|
|
|
Frees a previously allocated string. This method relies on the fact that the string that is to be freed was previously allocated using the framework's memory allocator.
|
|
||||||||||||||||||||||||||||||||||||
|
Returns a
|
|
||||||||||||||||||||||||||||
|
Returns a
|
|
||||||||||||||||||||
|
Returns a
|
|
||||||||||||
|
Returns a
|
|
|
Initializes the static instances. This method is called internally by the xmog_java_string class and by the xmog_jvm class when the JVM is loaded. |
|
||||||||||||
|
Sets the default encoding that is used on the current thread. An encoding is always thread-specific to support servers that have to run threads on behalf of more than one user.
|
|
||||||||||||
|
Sets the default encoding that is used on the current thread. An encoding is always thread-specific to support servers that have to run threads on behalf of more than one user.
|
|
||||||||||||
|
Sets the default encoding that is used on the current thread. An encoding is always thread-specific to support servers that have to run threads on behalf of more than one user.
|
|
||||||||||||||||||||||||
|
Returns a
|
|
||||||||||||||||||||
|
Returns a
|
|
||||||||||||||||||||
|
Returns a UTF-8 string for the given Java string.
|
|
||||||||||||
|
Returns a
|
1.4.1