]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/csdetest.h
ICU-461.18.tar.gz
[apple/icu.git] / icuSources / test / intltest / csdetest.h
1 /*
2 **********************************************************************
3 * Copyright (C) 2005-2009, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 */
7
8 #ifndef __CSDETEST_H
9 #define __CSDETEST_H
10
11 #include "unicode/utypes.h"
12 #include "unicode/unistr.h"
13
14 #include "intltest.h"
15
16 class CharsetDetectionTest: public IntlTest {
17 public:
18
19 CharsetDetectionTest();
20 virtual ~CharsetDetectionTest();
21
22 virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL );
23
24 virtual void ConstructionTest();
25 virtual void UTF8Test();
26 virtual void UTF16Test();
27 virtual void C1BytesTest();
28 virtual void InputFilterTest();
29 virtual void DetectionTest();
30 virtual void IBM424Test();
31 virtual void IBM420Test();
32 virtual void Ticket6394Test();
33
34 private:
35 void checkEncoding(const UnicodeString &testString,
36 const UnicodeString &encoding, const UnicodeString &id);
37
38 virtual const char *getPath(char buffer[2048], const char *filename);
39
40 };
41
42 #endif