unicode.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 32 行

H
32
字号
/*******************************************************************
 * 
 *  Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
 *
 *  Description: 
 *
 *  Author: Amlogic Software
 *  Created: Fri Nov 11 00:13:19 2005
 *
 *******************************************************************/
#ifndef UNICODE_H
#define UNICODE_H

#include "nls_uni.h"
/* Because we want to be compatible with old version and try to modify fewer codes in other files other than that of unicode.lib ,so don't modify
  * these function name here.But we must know  that GB don't mean just GB ,may mean other standards of unicode such as iso8859-1,iso8859-2 etc
  *Forgive me.
  */
void init_nls_table(char *charset);
int  register_all_nls_tables();
u_int16_t 	Unicode2GB(u_int16_t unicode);
u_int16_t 	GB2Unicode(u_int16_t othercode);
int         StrnGB2Unicode(char *dest, const char *src, int dest_len, int src_len) ;
int get_cur_unitable_flag();

u_int16_t GetUTF8Len(const char *utf, int utf8size);
int utf8_2_gb(char* gb_buf, char* utf8_buf, int utf8size);
int gb_2_utf8(char* utf8_buf, char* gb_buf, int gbsize);


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?