?? pdu.h
字號:
#include <iostream>
#include <string>
using namespace std;
//PDU編解碼類
//未完成.07.01.01
class PDU
{
public:
//編碼部分:
string smsEncodedNumber(string srvNumber);//手機號碼編碼
string smsEncodedCenterNumber(string srvCenterNumber);//短信中心編碼
string smsPDUEncoded(char* srvContent);//短信內容編碼
string smsEncodedsms(string strCenterNumber, string strNumber, char* strSMScontent);//整個短信內容編碼
int nLength;
//解碼部分:
bool IsPDU(string SMS);
string GetTelphone(string SMS);//提取短信的發送人電話號碼
string GetDataTime(string SMS);//提取短信的發送時間
string GetContent(string SMS);//提取短信的內容(PDU)
string GetTextContent(string SMS);//提取短信的TEXT內容(TEXT)
int StrToHex(string Input);//字符串轉換為16進制數字
protected:
UINT WChar2Char(LPCWSTR pwszSrc, LPSTR pszDst);
UINT Char2WChar(LPCSTR pszSrc, LPWSTR pwszDst);
int BinToDec(string Input,int len);
private:
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -