/* DMW_CodeConv.h defines many code conversion, string manipulation API. Separated from previous DMW_DebugUtil.h */ #include "DMW_Platform.h" #ifndef __DMW_CODECONV_H__ #define __DMW_CODECONV_H__ UINT16 *DMW_GetKs2UcTable(void); UINT8 *DMW_ConvUc2Ks(UINT16 *uc, int len); void DMW_FreeKsString(UINT8 *ks); int DMW_UniPrint(UINT16 *ucs, int len); char *DMW_Unicode2Ks(UINT16 *ucs, int len, char *buf); UINT16 *DMW_ConvKs2Uc(char *ks, int len); void DMW_FreeUcString(UINT16 *uc); char *DMW_MakeRandomKsString(char *buf, int size, int mode); // mode 0 : english // mode 1 : hangle // mode 2~ : mixed int DMW_UcStringLen(UINT16 *ucs); //---------------------------- // unicode string library int UniStrLen(UINT16 *str); UINT16 *UniStrCopy(UINT16 *dst, UINT16 *src); UINT16 *UniStrNCopy(UINT16 *dst, UINT16 *src, int len); UINT16 *UniStrCat(UINT16 *dst, UINT16 *src); int UniStrCompare(UINT16 *str1, UINT16 *str2); UINT16 *UniStrTrim(UINT16 *uStr); void UniStrFromAscii(UINT16 *ustr, char *str); UINT16 *UniStrCreate(char *str, UINT16 *ustr); #endif // __DMW_CODECONV_H__