charset.h

来自「GSM猫管理程序」· C头文件 代码 · 共 42 行

H
42
字号
/*SMS Server Tools 3Copyright (C) Keijo Kasvihttp://smstools3.kekekasvi.com/Based on SMS Server Tools 2 from Stefan Fringshttp://www.meinemullemaus.de/This program is free software unless you got it under another license directlyfrom the author. You can redistribute it and/or modify it under the terms ofthe GNU General Public License as published by the Free Software Foundation.Either version 2 of the License, or (at your option) any later version.*/#ifndef CHARSET_H#define CHARSET_Hchar logch_buffer[8192];// Logging is not used externally, but it's placed to the end of source file.void logch(char* format, ...);char prch(char ch);// Both functions return the size of the converted string// max limits the number of characters to be written into// destination// size is the size of the source string// max is the maximum size of the destination string// The GSM character set contains 0x00 as a valid characterint gsm2iso(char* source, int size, char* destination, int max);int iso_utf8_2gsm(char* source, int size, char* destination, int max);int iso2utf8_file(FILE *fp, char *ascii, int userdatalength);int iso2gsm(char* source, int size, char* destination, int max);int unicode2sms(char* source, int size, char* destination, int max);int decode_ucs2(char *buffer, int len);#endif

⌨️ 快捷键说明

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