source: svn/newcon3bcm2_21bu/dst/dmw/src/include/DMW_CodeConv.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1/*
2        DMW_CodeConv.h
3
4        defines many code conversion, string manipulation API.
5        Separated from previous DMW_DebugUtil.h
6       
7*/
8
9
10#include "DMW_Platform.h"
11
12#ifndef __DMW_CODECONV_H__
13#define __DMW_CODECONV_H__
14
15
16
17
18UINT16 *DMW_GetKs2UcTable(void);
19
20
21UINT8 *DMW_ConvUc2Ks(UINT16 *uc, int len);
22void DMW_FreeKsString(UINT8 *ks);
23int DMW_UniPrint(UINT16 *ucs, int len);
24
25char *DMW_Unicode2Ks(UINT16 *ucs, int len, char *buf);
26       
27
28UINT16 *DMW_ConvKs2Uc(char *ks, int len);
29void DMW_FreeUcString(UINT16 *uc);
30
31char *DMW_MakeRandomKsString(char *buf, int size, int mode);
32        // mode 0 : english
33        // mode 1 : hangle
34        // mode 2~ : mixed
35
36int DMW_UcStringLen(UINT16 *ucs);
37
38
39
40//----------------------------
41// unicode string library
42
43int UniStrLen(UINT16 *str);
44UINT16 *UniStrCopy(UINT16 *dst, UINT16 *src);
45UINT16 *UniStrNCopy(UINT16 *dst, UINT16 *src, int len);
46UINT16 *UniStrCat(UINT16 *dst, UINT16 *src);
47int UniStrCompare(UINT16 *str1, UINT16 *str2);
48UINT16 *UniStrTrim(UINT16 *uStr);
49void UniStrFromAscii(UINT16 *ustr, char *str);
50UINT16 *UniStrCreate(char *str, UINT16 *ustr);
51
52
53
54#endif // __DMW_CODECONV_H__
55
56
57
Note: See TracBrowser for help on using the repository browser.