46 lines
1.4 KiB
C
46 lines
1.4 KiB
C
/**************************************************************************
|
|
* %name: sscs_utf8.h %
|
|
* %instance: security_1 %
|
|
* %version: 2 %
|
|
* %created_by: cameron %
|
|
* %date_modified: Wed Apr 06 13:40:09 2005 %
|
|
***************************************************************************
|
|
* This is the header file for utf8 utility functions.
|
|
*
|
|
****************************************************************************/
|
|
|
|
#ifndef _SSUTF8_H_
|
|
#define _SSUTF8_H_
|
|
|
|
#if defined(__cplusplus) || defined(c_plusplus)
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include "sscs_string.h"
|
|
|
|
#ifndef _MICASA_H_
|
|
/* defining the utf8 for SSCS */
|
|
typedef unsigned char SS_UTF8_T;
|
|
#endif
|
|
|
|
#define sscs_Utf8Strlen(s) sscs_strlen((s))
|
|
#define sscs_Utf8StrSize(s) (sscs_strlen((s)) ? (sscs_strlen((s))+1) : 0)
|
|
#define sscs_Utf8Strcpy(s1, s2) sscs_strcpy((s1), (s2))
|
|
#define sscs_Utf8Strcat(s1, s2) sscs_strcat((s1), (s2))
|
|
#define sscs_Utf8Strcmp(s1, s2) sscs_strcmp((s1), (s2))
|
|
#define sscs_Utf8Stricmp(s1, s2) sscs_stricmp((s1), (s2))
|
|
#define sscs_Utf8Strstr(s1, s2) sscs_strstr((s1), (s2))
|
|
#define sscs_Utf8Strchr(s1, c) sscs_strchr((s1), (c))
|
|
#define sscs_Utf8Strncat(s1, s2, c) sscs_strncat((s1), (s2), (c))
|
|
#define sscs_Utf8Strncmp(s1, s2, c) sscs_strncmp((s1), (s2), (c))
|
|
#define sscs_Utf8Strncpy(s1, s2, c) sscs_strncpy((s1), (s2), (c))
|
|
|
|
|
|
#if defined(__cplusplus) || defined(c_plusplus)
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|