blob: 51c3b63749691f546aefcd0ceba2eadb4a70ebfb [file] [log] [blame]
* Copyright (c) 2002-2008, International Business Machines Corporation and
* others. All Rights Reserved.
#ifndef REGEXTST_H
#define REGEXTST_H
#include "unicode/utypes.h"
#include "intltest.h"
class RegexTest: public IntlTest {
virtual ~RegexTest();
virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL );
// The following are test functions that are visible from the intltest test framework.
virtual void API_Match();
virtual void API_Pattern();
virtual void API_Replace();
virtual void Basic();
virtual void Extended();
virtual void Errors();
virtual void PerlTests();
virtual void Bug6149();
virtual void Callbacks();
// The following functions are internal to the regexp tests.
virtual UBool doRegexLMTest(const char *pat, const char *text, UBool looking, UBool match, int32_t line);
virtual void regex_find(const UnicodeString &pat, const UnicodeString &flags,
const UnicodeString &input, int32_t line);
virtual void regex_err(const char *pat, int32_t errline, int32_t errcol,
UErrorCode expectedStatus, int32_t line);
virtual UChar *ReadAndConvertFile(const char *fileName, int32_t &len, const char *charset, UErrorCode &status);
virtual const char *getPath(char buffer[2048], const char *filename);