]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/ssearch.h
2 **********************************************************************
3 * Copyright (C) 2005-2009, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
11 #include "unicode/utypes.h"
12 #include "unicode/unistr.h"
13 #include "unicode/ucol.h"
14 #include "unicode/bmsearch.h"
18 #if !UCONFIG_NO_COLLATION
21 // Test of the function usearch_search()
23 // See srchtest.h for the tests for the rest of the string search functions.
25 class SSearchTest
: public IntlTest
{
29 virtual ~SSearchTest();
31 virtual void runIndexedTest(int32_t index
, UBool exec
, const char* &name
, char* params
= NULL
);
32 #if !UCONFIG_NO_BREAK_ITERATION
34 virtual void searchTest();
35 virtual void offsetTest();
36 virtual void monkeyTest(char *params
);
38 virtual void bmMonkeyTest(char *params
);
39 virtual void boyerMooreTest();
40 virtual void goodSuffixTest();
41 virtual void searchTime();
43 virtual void bmsTest();
44 virtual void bmSearchTest();
46 virtual void udhrTest();
48 virtual void stringListTest();
50 virtual const char *getPath(char buffer
[2048], const char *filename
);
51 virtual int32_t monkeyTestCase(UCollator
*coll
, const UnicodeString
&testCase
, const UnicodeString
&pattern
, const UnicodeString
&altPattern
,
52 const char *name
, const char *strength
, uint32_t seed
);
54 virtual int32_t bmMonkeyTestCase(UCollator
*coll
, const UnicodeString
&testCase
, const UnicodeString
&pattern
, const UnicodeString
&altPattern
,
55 BoyerMooreSearch
*bms
, BoyerMooreSearch
*abms
,
56 const char *name
, const char *strength
, uint32_t seed
);