📄 stringopt.h
字号:
// CharCode.h: interface for the CCharCode class.
//
//////////////////////////////////////////////////////////////////////
/*
* Generated by MyEclipse Struts
*
* Written by Yang Huaisheng
* Homepage: http://codefan.spaces.live.com
* version 0.01
* create at 2006-04-30
*
* Distribute freely, except: don't remove my name from the source or
* documentation (don't take credit for my work), mark your changes (don't
* get me blamed for your possible bugs), don't alter or remove this
* notice.
* No warrantee of any kind, express or implied, is included with this
* software; use at your own risk, responsibility for damages (if any) to
* anyone resulting from the use of this software rests entirely with the
* user.
*
* Send bug reports, bug fixes, enhancements, requests, flames, etc. to
* codefan@hotmial.com
*
*/
#if !defined(AFX_CHARCODE_H__DD4E6366_36BE_4E29_8001_2708AC188DF1__INCLUDED_)
#define AFX_CHARCODE_H__DD4E6366_36BE_4E29_8001_2708AC188DF1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CCharCode
{
private:
CCharCode(){};
virtual ~CCharCode(){};
public:
static char GetPYIndex(LPCTSTR szHanzi);
static CString GetPYABIndex(LPCTSTR szHanzi);
static CString DBCToSBC(LPCTSTR szHanzi);
static CString SBCToDBC(LPCTSTR szHanzi);
};
class CStringOpt
{
private:
CStringOpt(){};
virtual ~CStringOpt(){};
public:
static void GetStrNext(const char * szStr,const long sL,long * pNext);
static long StrFind_KMP(const char * szStr,const long nSL,const char * szSubStr,const long nSSL,const long * pNext, const long nStart=0);
static long StrFind(const char * szStr,const long nSL,const char * szSubStr,const long nSSL, const long nStart=0);
static long StrFind(const char * szStr,const char * szSubStr, const long nStart=0);
};
#endif // !defined(AFX_CHARCODE_H__DD4E6366_36BE_4E29_8001_2708AC188DF1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -