%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
* Copyright (C) 2005-2016, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*/
#ifndef __CSDETECT_H
#define __CSDETECT_H
#include "unicode/uobject.h"
#if !UCONFIG_NO_CONVERSION
#include "unicode/uenum.h"
U_NAMESPACE_BEGIN
class InputText;
class CharsetRecognizer;
class CharsetMatch;
class CharsetDetector : public UMemory
{
private:
InputText *textIn;
CharsetMatch **resultArray;
int32_t resultCount;
UBool fStripTags; // If true, setText() will strip tags from input text.
UBool fFreshTextSet;
static void setRecognizers(UErrorCode &status);
UBool *fEnabledRecognizers; // If not null, active set of charset recognizers had
// been changed from the default. The array index is
// corresponding to fCSRecognizers. See setDetectableCharset().
public:
CharsetDetector(UErrorCode &status);
~CharsetDetector();
void setText(const char *in, int32_t len);
const CharsetMatch * const *detectAll(int32_t &maxMatchesFound, UErrorCode &status);
const CharsetMatch *detect(UErrorCode& status);
void setDeclaredEncoding(const char *encoding, int32_t len) const;
UBool setStripTagsFlag(UBool flag);
UBool getStripTagsFlag() const;
// const char *getCharsetName(int32_t index, UErrorCode& status) const;
static int32_t getDetectableCount();
static UEnumeration * getAllDetectableCharsets(UErrorCode &status);
UEnumeration * getDetectableCharsets(UErrorCode &status) const;
void setDetectableCharset(const char *encoding, UBool enabled, UErrorCode &status);
};
U_NAMESPACE_END
#endif
#endif /* __CSDETECT_H */