|
1 /* |
|
2 ********************************************************************** |
|
3 * Copyright (C) 2005-2012, International Business Machines |
|
4 * Corporation and others. All Rights Reserved. |
|
5 ********************************************************************** |
|
6 */ |
|
7 |
|
8 #ifndef __CSRUTF8_H |
|
9 #define __CSRUTF8_H |
|
10 |
|
11 #include "unicode/utypes.h" |
|
12 |
|
13 #if !UCONFIG_NO_CONVERSION |
|
14 |
|
15 #include "csrecog.h" |
|
16 |
|
17 U_NAMESPACE_BEGIN |
|
18 |
|
19 /** |
|
20 * Charset recognizer for UTF-8 |
|
21 * |
|
22 * @internal |
|
23 */ |
|
24 class CharsetRecog_UTF8: public CharsetRecognizer { |
|
25 |
|
26 public: |
|
27 |
|
28 virtual ~CharsetRecog_UTF8(); |
|
29 |
|
30 const char *getName() const; |
|
31 |
|
32 /* (non-Javadoc) |
|
33 * @see com.ibm.icu.text.CharsetRecognizer#match(com.ibm.icu.text.CharsetDetector) |
|
34 */ |
|
35 UBool match(InputText *input, CharsetMatch *results) const; |
|
36 |
|
37 }; |
|
38 |
|
39 U_NAMESPACE_END |
|
40 |
|
41 #endif |
|
42 #endif /* __CSRUTF8_H */ |