1 /********************************************************************
3 * Copyright (c) 2002-2003, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
11 #include "unicode/utypes.h"
12 #if !UCONFIG_NO_REGULAR_EXPRESSIONS
15 #include "unicode/regex.h"
18 class RegexTest
: public IntlTest
{
24 virtual void runIndexedTest(int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
26 // The following are test functions that are visible from the intltest test framework.
27 virtual void API_Match();
28 virtual void API_Pattern();
29 virtual void API_Replace();
31 virtual void Extended();
32 virtual void Errors();
33 virtual void PerlTests();
35 // The following functions are internal to the regexp tests.
36 virtual UBool
doRegexLMTest(const char *pat
, const char *text
, UBool looking
, UBool match
, int line
);
37 virtual void regex_find(const UnicodeString
&pat
, const UnicodeString
&flags
,
38 const UnicodeString
&input
, int line
);
39 virtual void regex_err(const char *pat
, int32_t errline
, int32_t errcol
,
40 UErrorCode expectedStatus
, int line
);
41 virtual UChar
*ReadAndConvertFile(const char *fileName
, int &len
, UErrorCode
&status
);
44 #endif // !UCONFIG_NO_REGULAR_EXPRESSIONS