summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-4.8.1/test/intltest/ssearch.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-08-10 12:03:08 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-08-10 12:03:08 +0000
commit79b8b3a76d8eda7372bb4dedae0ec7aebdaebc12 (patch)
tree9e4992c8719febb576deb6120740611380d71f7a /Build/source/libs/icu/icu-4.8.1/test/intltest/ssearch.h
parent8cd13eb8f4bb7b92c6d9bb50aff9a62c37df026c (diff)
icu 4.8.1
git-svn-id: svn://tug.org/texlive/trunk@23480 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-4.8.1/test/intltest/ssearch.h')
-rw-r--r--Build/source/libs/icu/icu-4.8.1/test/intltest/ssearch.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-4.8.1/test/intltest/ssearch.h b/Build/source/libs/icu/icu-4.8.1/test/intltest/ssearch.h
new file mode 100644
index 00000000000..e17f38019b4
--- /dev/null
+++ b/Build/source/libs/icu/icu-4.8.1/test/intltest/ssearch.h
@@ -0,0 +1,63 @@
+/*
+ **********************************************************************
+ * Copyright (C) 2005-2009, International Business Machines
+ * Corporation and others. All Rights Reserved.
+ **********************************************************************
+ */
+
+#ifndef __SSEARCH_H
+#define __SSEARCH_H
+
+#include "unicode/utypes.h"
+#include "unicode/unistr.h"
+#include "unicode/ucol.h"
+#include "unicode/bmsearch.h"
+
+#include "intltest.h"
+
+#if !UCONFIG_NO_COLLATION
+
+//
+// Test of the function usearch_search()
+//
+// See srchtest.h for the tests for the rest of the string search functions.
+//
+class SSearchTest: public IntlTest {
+public:
+
+ SSearchTest();
+ virtual ~SSearchTest();
+
+ virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* params = NULL );
+#if !UCONFIG_NO_BREAK_ITERATION
+
+ virtual void searchTest();
+ virtual void offsetTest();
+ virtual void monkeyTest(char *params);
+
+ virtual void bmMonkeyTest(char *params);
+ virtual void boyerMooreTest();
+ virtual void goodSuffixTest();
+ virtual void searchTime();
+
+ virtual void bmsTest();
+ virtual void bmSearchTest();
+
+ virtual void udhrTest();
+
+ virtual void stringListTest();
+private:
+ virtual const char *getPath(char buffer[2048], const char *filename);
+ virtual int32_t monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
+ const char *name, const char *strength, uint32_t seed);
+
+ virtual int32_t bmMonkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
+ BoyerMooreSearch *bms, BoyerMooreSearch *abms,
+ const char *name, const char *strength, uint32_t seed);
+#endif
+
+};
+
+#endif
+
+#endif