aboutsummaryrefslogtreecommitdiff
path: root/tools/skycpt/KmpSearch.h
blob: 717a77b93d7467cd875d98d0291a368b1b5e9684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __KmpSearch__
#define __KmpSearch__

#ifndef _MSC_VER
#define __fastcall
#endif

class KmpSearch {
public:
	void __fastcall init(const char *subStr);
	char * __fastcall search(const char *str);
//private:
	char _retarget[256], _subStr[256];
	unsigned long _strLen;
};

#endif //__KmpSearch__