source: svn/trunk/zasc/app/DST_MultipleStringStructure.h @ 22

Last change on this file since 22 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
File size: 1.1 KB
Line 
1#ifndef __DST_MULTIPLE_STRING_STRUCTURE_H__
2#define __DST_MULTIPLE_STRING_STRUCTURE_H__
3
4#include "DST_Common.h"
5
6bool DST_IsBigEndian();
7
8DS_U16 DMW_KSX2UniSub(DS_U8 high, DS_U8 low);
9DS_U16 DMW_KSX2Uni(DS_U16 code);
10// À¯´Ï Äڵ带 ¿Ï¼ºÇü ÄÚµå·Î º¯È¯ÇÑ´Ù.
11DS_U16 DMW_Uni2KSX(DS_U16 code);
12// ¿Ï¼ºÇü ¹®ÀÚ¿­À» À¯´ÏÄÚµå·Î º¯È¯ÇÑ´Ù.
13// out_str ¹öÆÛÀÇ Å©±â´Â in_strÀÇ ±æÀÌ+1·Î ÇØ¾ßÇÑ´Ù.
14int DMW_String2Uni(char *in_str, DS_U16 *out_str);
15// À¯´ÏÄڵ带 ¿Ï¼ºÇü ¹®ÀÚ¿­·Î º¯È¯ÇÑ´Ù.
16void DMW_Uni2String(DS_U16 *in_str, int nLength, char *out_str);
17
18// À¯´ÏÄÚµå ¹®ÀÚ¿­À» µð¹ö±× â¿¡ Ç¥½ÃÇÑ´Ù. lenÀÌ 0º¸´Ù ÀÛÀ¸¸é 0Á¾·á ¹®ÀÚ¿­
19void DMW_UniPrint(DS_U16 * ucs, int len);
20
21DS_U16 DMW_Decode_MultipleStringStructure(DS_U8 text_length,    /* MSSÀÇ ±æÀÌ */
22                                          DS_U8 * text_p,  /* MSSÀÇ text pointer */
23                                          char *lang,      /* ISO 639.2B language code (3 bytes) */
24                                          DS_U16 max_dec_length,        /* decoding textÀÇ ÃÖ´ë ±æÀÌ */
25                                          DS_U16 * decoded_text);       /* decoding °á°ú text (unicode·Î ÀúÀåµÊ) */
26void memcpy2(DS_U16 * dest, DS_U8 * src, int bytes);
27
28#endif // __DST_MULTIPLE_STRING_STRUCTURE_H__
29
30
Note: See TracBrowser for help on using the repository browser.