📄 definefunction.h
字号:
// DefineFunction.h: interface for the CDefineFunction class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DEFINEFUNCTION_H__4214EC73_3FD6_4C0F_ACC0_765B7EA55C04__INCLUDED_)
#define AFX_DEFINEFUNCTION_H__4214EC73_3FD6_4C0F_ACC0_765B7EA55C04__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CDefineFunction
{
public:
CDefineFunction();
virtual ~CDefineFunction();
public:
public:
//切割字符串,将strToSplit字符串用splitStr切割符切割后
//返回保存切割后字符串的CStringArray类型对象的指针
static CStringArray* SplitString(CString strToSplit, LPCTSTR splitStr);
//切割字符串,将strToSplit字符串用splitStr切割符切割后
//保存在strArray对象中返回*
static void SplitString(CString strToSplit, LPCTSTR splitStr,CStringArray&strArray);
//切割字符串,将strToSplit字符串用splitStr切割符切割后保
//存在strArray对象中返回,strArray中可以包含空字符串
static void SplitStringWithNull(CString strToSplit, LPCTSTR splitStr,CStringArray&strArray);
//将yyyy-mm-dd hh:mm:ss格式的字符串时间处理成数字时间,封装在CTime对象中返回
static void getTimeFromString(CString strDateTime,CTime& retTime);
//计算整数base的count次幂
static int powerint(int base,int count);
//获取语言的编码,通过字符串进行比对,返回语言1和语言2的值.
static void getLangEncode(CString strLang,byte&btFirst,byte&btSecond);
//根据语言的编码,通过值比对,返回指定语言的名称.
static void getLangName(CString& strLang,byte btFirst,byte btSecond);
//得到当前应用程序所在的全路径名
static CString getAppStartPath();
};
#endif // !defined(AFX_DEFINEFUNCTION_H__4214EC73_3FD6_4C0F_ACC0_765B7EA55C04__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -