]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/ssearch.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 **********************************************************************
5 * Copyright (C) 2005-2012, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 **********************************************************************
13 #include "unicode/utypes.h"
14 #include "unicode/unistr.h"
15 #include "unicode/ucol.h"
19 #if !UCONFIG_NO_COLLATION
22 // Test of the function usearch_search()
24 // See srchtest.h for the tests for the rest of the string search functions.
26 class SSearchTest
: public IntlTest
{
30 virtual ~SSearchTest();
32 virtual void runIndexedTest(int32_t index
, UBool exec
, const char* &name
, char* params
= NULL
);
33 #if !UCONFIG_NO_BREAK_ITERATION
35 virtual void searchTest();
36 virtual void offsetTest();
37 virtual void monkeyTest(char *params
);
38 virtual void sharpSTest();
39 virtual void goodSuffixTest();
40 virtual void searchTime();
43 virtual const char *getPath(char buffer
[2048], const char *filename
);
44 virtual int32_t monkeyTestCase(UCollator
*coll
, const UnicodeString
&testCase
, const UnicodeString
&pattern
, const UnicodeString
&altPattern
,
45 const char *name
, const char *strength
, uint32_t seed
);