]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/regextst.h
ICU-400.42.tar.gz
[apple/icu.git] / icuSources / test / intltest / regextst.h
CommitLineData
b75a7d8f 1/********************************************************************
46f4442e
A
2 * COPYRIGHT:
3 * Copyright (c) 2002-2008, International Business Machines Corporation and
b75a7d8f
A
4 * others. All Rights Reserved.
5 ********************************************************************/
6
7
8#ifndef REGEXTST_H
9#define REGEXTST_H
10
11#include "unicode/utypes.h"
12#if !UCONFIG_NO_REGULAR_EXPRESSIONS
13
14#include "intltest.h"
b75a7d8f
A
15
16
17class RegexTest: public IntlTest {
18public:
46f4442e 19
b75a7d8f
A
20 RegexTest();
21 virtual ~RegexTest();
22
23 virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL );
24
25 // The following are test functions that are visible from the intltest test framework.
26 virtual void API_Match();
27 virtual void API_Pattern();
28 virtual void API_Replace();
29 virtual void Basic();
30 virtual void Extended();
31 virtual void Errors();
32 virtual void PerlTests();
46f4442e 33 virtual void Callbacks();
b75a7d8f
A
34
35 // The following functions are internal to the regexp tests.
46f4442e 36 virtual UBool doRegexLMTest(const char *pat, const char *text, UBool looking, UBool match, int32_t line);
b75a7d8f 37 virtual void regex_find(const UnicodeString &pat, const UnicodeString &flags,
46f4442e 38 const UnicodeString &input, int32_t line);
b75a7d8f 39 virtual void regex_err(const char *pat, int32_t errline, int32_t errcol,
46f4442e
A
40 UErrorCode expectedStatus, int32_t line);
41 virtual UChar *ReadAndConvertFile(const char *fileName, int32_t &len, const char *charset, UErrorCode &status);
374ca955
A
42 virtual const char *getPath(char buffer[2048], const char *filename);
43
b75a7d8f
A
44};
45
46#endif // !UCONFIG_NO_REGULAR_EXPRESSIONS
47#endif