summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu-xetex/i18n/csmatch.h
blob: 50b78a3a1dc70041120f823c0da7fd3949367b68 (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
40
41
42
43
44
/*
 **********************************************************************
 *   Copyright (C) 2005-2006, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 **********************************************************************
 */

#ifndef __CSMATCH_H
#define __CSMATCH_H

#include "unicode/uobject.h"

#if !UCONFIG_NO_CONVERSION

U_NAMESPACE_BEGIN

class InputText;
class CharsetRecognizer;

class CharsetMatch : public UMemory
{
 private:
    CharsetRecognizer *csr;
    InputText *textIn;
    int32_t confidence;

 public:
    CharsetMatch();

    void set(InputText *input, CharsetRecognizer *cr, int32_t conf);

    const char *getName()const;

    const char *getLanguage()const;

    int32_t getConfidence()const;

    int32_t getUChars(UChar *buf, int32_t cap, UErrorCode *status) const;
};

U_NAMESPACE_END

#endif
#endif /* __CSMATCH_H */