blob: 223a640a57b7261aeefb1c6e37e96505bd00d8a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
**********************************************************************
* Copyright (C) 2005-2006, International Business Machines
* 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();
private:
void checkEncoding(const UnicodeString &testString,
const UnicodeString &encoding, const UnicodeString &id);
virtual const char *getPath(char buffer[2048], const char *filename);
};
#endif
|