]>
Commit | Line | Data |
---|---|---|
73c04bcf A |
1 | /* |
2 | ********************************************************************** | |
3 | * Copyright (C) 2005-2006, International Business Machines | |
4 | * Corporation and others. All Rights Reserved. | |
5 | ********************************************************************** | |
6 | */ | |
7 | ||
8 | #ifndef __CSMATCH_H | |
9 | #define __CSMATCH_H | |
10 | ||
11 | #include "unicode/uobject.h" | |
12 | ||
13 | #if !UCONFIG_NO_CONVERSION | |
14 | ||
15 | U_NAMESPACE_BEGIN | |
16 | ||
17 | class InputText; | |
18 | class CharsetRecognizer; | |
19 | ||
20 | class CharsetMatch : public UMemory | |
21 | { | |
22 | private: | |
23 | CharsetRecognizer *csr; | |
24 | InputText *textIn; | |
25 | int32_t confidence; | |
26 | ||
27 | public: | |
28 | CharsetMatch(); | |
29 | ||
30 | void set(InputText *input, CharsetRecognizer *cr, int32_t conf); | |
31 | ||
32 | const char *getName()const; | |
33 | ||
34 | const char *getLanguage()const; | |
35 | ||
36 | int32_t getConfidence()const; | |
37 | ||
38 | int32_t getUChars(UChar *buf, int32_t cap, UErrorCode *status) const; | |
39 | }; | |
40 | ||
41 | U_NAMESPACE_END | |
42 | ||
43 | #endif | |
44 | #endif /* __CSMATCH_H */ |