str_functions

str_functions

Synopsis




#define             MAX_STRING_BUFFER_SIZE
char*               initString                          (char *str);
bool                isEmptyString                       (const char *str);
char*               subString                           (char *buf,
                                                         const char *str,
                                                         int beginIndex,
                                                         int length);
gchar*              ucs4_to_utf8                        (gunichar ucs4Code);
gunichar*           utf8_to_ucs4                        (const gchar *utf8Code);
int                 strcmp_unsigned_signed              (unsigned char *str1,
                                                         const char *str2);
unsigned char*      signedStr_to_unsignedStr            (unsigned char *result,
                                                         const char *str);
char*               unsignedStr_to_signedStr            (char *result,
                                                         unsigned char *str);

Description

Details

MAX_STRING_BUFFER_SIZE

#define MAX_STRING_BUFFER_SIZE 1000


initString ()

char*               initString                          (char *str);

str :

Returns :


isEmptyString ()

bool                isEmptyString                       (const char *str);

str :

Returns :


subString ()

char*               subString                           (char *buf,
                                                         const char *str,
                                                         int beginIndex,
                                                         int length);

buf :

str :

beginIndex :

length :

Returns :


ucs4_to_utf8 ()

gchar*              ucs4_to_utf8                        (gunichar ucs4Code);

ucs4Code: the UCS-4 to be converted.

ucs4Code :

Returns :

UTF-8 string that converted from the UCS-4 Code. Use g_free() after use.

utf8_to_ucs4 ()

gunichar*           utf8_to_ucs4                        (const gchar *utf8Code);

utf8Code :

Returns :


strcmp_unsigned_signed ()

int                 strcmp_unsigned_signed              (unsigned char *str1,
                                                         const char *str2);

str1 :

str2 :

Returns :


signedStr_to_unsignedStr ()

unsigned char*      signedStr_to_unsignedStr            (unsigned char *result,
                                                         const char *str);

result :

str :

Returns :


unsignedStr_to_signedStr ()

char*               unsignedStr_to_signedStr            (char *result,
                                                         unsigned char *str);

result :

str :

Returns :