2006-02-06 18:03:11 +00:00
|
|
|
/*
|
|
|
|
**********************************************************************
|
2009-03-31 15:39:00 +00:00
|
|
|
* Copyright (C) 2005-2009, International Business Machines
|
2006-02-06 18:03:11 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
**********************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CSDETEST_H
|
|
|
|
#define __CSDETEST_H
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
#include "unicode/unistr.h"
|
|
|
|
|
|
|
|
#include "intltest.h"
|
|
|
|
|
|
|
|
class CharsetDetectionTest: public IntlTest {
|
|
|
|
public:
|
|
|
|
|
|
|
|
CharsetDetectionTest();
|
|
|
|
virtual ~CharsetDetectionTest();
|
|
|
|
|
|
|
|
virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL );
|
|
|
|
|
|
|
|
virtual void ConstructionTest();
|
|
|
|
virtual void UTF8Test();
|
|
|
|
virtual void UTF16Test();
|
|
|
|
virtual void C1BytesTest();
|
|
|
|
virtual void InputFilterTest();
|
|
|
|
virtual void DetectionTest();
|
2009-03-31 15:39:00 +00:00
|
|
|
virtual void IBM424Test();
|
|
|
|
virtual void IBM420Test();
|
2009-04-24 22:24:27 +00:00
|
|
|
virtual void Ticket6394Test();
|
2006-02-06 18:03:11 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void checkEncoding(const UnicodeString &testString,
|
|
|
|
const UnicodeString &encoding, const UnicodeString &id);
|
|
|
|
|
|
|
|
virtual const char *getPath(char buffer[2048], const char *filename);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|