scuffed-code/icu4c/source/i18n/csmatch.h
2006-02-06 20:45:30 +00:00

43 lines
875 B
C++

/*
**********************************************************************
* Copyright (C) 2005-2006, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*/
#ifndef __CSMATCH_H
#define __CSMATCH_H
#include "unicode/utypes.h"
#include "unicode/uobject.h"
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 /* __CSMATCH_H */