2006-02-06 18:03:11 +00:00
|
|
|
/*
|
|
|
|
**********************************************************************
|
|
|
|
* Copyright (C) 2005-2006, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
**********************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CSMATCH_H
|
|
|
|
#define __CSMATCH_H
|
|
|
|
|
|
|
|
#include "unicode/uobject.h"
|
|
|
|
|
2006-05-09 18:06:10 +00:00
|
|
|
#if !UCONFIG_NO_CONVERSION
|
|
|
|
|
2006-02-06 18:03:11 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
class InputText;
|
|
|
|
class CharsetRecognizer;
|
|
|
|
|
2006-02-06 20:45:30 +00:00
|
|
|
class CharsetMatch : public UMemory
|
2006-02-06 18:03:11 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
CharsetRecognizer *csr;
|
|
|
|
InputText *textIn;
|
|
|
|
int32_t confidence;
|
|
|
|
|
|
|
|
public:
|
2006-02-06 20:45:30 +00:00
|
|
|
CharsetMatch();
|
2006-02-06 18:03:11 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2006-05-09 18:06:10 +00:00
|
|
|
#endif
|
2006-02-06 18:03:11 +00:00
|
|
|
#endif /* __CSMATCH_H */
|