]>
Commit | Line | Data |
---|---|---|
46f4442e A |
1 | /* |
2 | ********************************************************************** | |
51004dcb | 3 | * Copyright (C) 2005-2012, International Business Machines |
46f4442e A |
4 | * Corporation and others. All Rights Reserved. |
5 | ********************************************************************** | |
6 | */ | |
7 | ||
8 | #ifndef __SSEARCH_H | |
9 | #define __SSEARCH_H | |
10 | ||
11 | #include "unicode/utypes.h" | |
12 | #include "unicode/unistr.h" | |
13 | #include "unicode/ucol.h" | |
14 | ||
15 | #include "intltest.h" | |
16 | ||
17 | #if !UCONFIG_NO_COLLATION | |
18 | ||
19 | // | |
20 | // Test of the function usearch_search() | |
21 | // | |
22 | // See srchtest.h for the tests for the rest of the string search functions. | |
23 | // | |
24 | class SSearchTest: public IntlTest { | |
25 | public: | |
26 | ||
27 | SSearchTest(); | |
28 | virtual ~SSearchTest(); | |
29 | ||
30 | virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* params = NULL ); | |
31 | #if !UCONFIG_NO_BREAK_ITERATION | |
32 | ||
33 | virtual void searchTest(); | |
34 | virtual void offsetTest(); | |
35 | virtual void monkeyTest(char *params); | |
51004dcb | 36 | virtual void sharpSTest(); |
729e4ab9 A |
37 | virtual void goodSuffixTest(); |
38 | virtual void searchTime(); | |
729e4ab9 | 39 | |
46f4442e A |
40 | private: |
41 | virtual const char *getPath(char buffer[2048], const char *filename); | |
42 | virtual int32_t monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern, | |
43 | const char *name, const char *strength, uint32_t seed); | |
44 | #endif | |
46f4442e A |
45 | }; |
46 | ||
47 | #endif | |
48 | ||
51004dcb | 49 | #endif |