#include "unicode/utypes.h"
#if !UCONFIG_NO_CONVERSION
#include "unicode/ucsdet.h"
#include "csdetect.h"
#include "csmatch.h"
#include "uenumimp.h"
#include "cmemory.h"
#include "cstring.h"
#include "umutex.h"
#include "ucln_in.h"
#include "uarrsort.h"
#include "inputext.h"
#include "csrsbcs.h"
#include "csrmbcs.h"
#include "csrutf8.h"
#include "csrucode.h"
#include "csr2022.h"
#define NEW_ARRAY(type,count) …
#define DELETE_ARRAY(array) …
U_NAMESPACE_BEGIN
struct CSRecognizerInfo : public UMemory { … };
U_NAMESPACE_END
static icu::CSRecognizerInfo **fCSRecognizers = …;
static icu::UInitOnce gCSRecognizersInitOnce { … };
static int32_t fCSRecognizers_size = …;
U_CDECL_BEGIN
static UBool U_CALLCONV csdet_cleanup()
{ … }
static int32_t U_CALLCONV
charsetMatchComparator(const void * , const void *left, const void *right)
{ … }
static void U_CALLCONV initRecognizers(UErrorCode &status) { … }
U_CDECL_END
U_NAMESPACE_BEGIN
void CharsetDetector::setRecognizers(UErrorCode &status)
{ … }
CharsetDetector::CharsetDetector(UErrorCode &status)
: … { … }
CharsetDetector::~CharsetDetector()
{ … }
void CharsetDetector::setText(const char *in, int32_t len)
{ … }
UBool CharsetDetector::setStripTagsFlag(UBool flag)
{ … }
UBool CharsetDetector::getStripTagsFlag() const
{ … }
void CharsetDetector::setDeclaredEncoding(const char *encoding, int32_t len) const
{ … }
int32_t CharsetDetector::getDetectableCount()
{ … }
const CharsetMatch *CharsetDetector::detect(UErrorCode &status)
{ … }
const CharsetMatch * const *CharsetDetector::detectAll(int32_t &maxMatchesFound, UErrorCode &status)
{ … }
void CharsetDetector::setDetectableCharset(const char *encoding, UBool enabled, UErrorCode &status)
{ … }
U_NAMESPACE_END
U_CDECL_BEGIN
Context;
static void U_CALLCONV
enumClose(UEnumeration *en) { … }
static int32_t U_CALLCONV
enumCount(UEnumeration *en, UErrorCode *) { … }
static const char* U_CALLCONV
enumNext(UEnumeration *en, int32_t *resultLength, UErrorCode * ) { … }
static void U_CALLCONV
enumReset(UEnumeration *en, UErrorCode *) { … }
static const UEnumeration gCSDetEnumeration = …;
U_CDECL_END
U_NAMESPACE_BEGIN
UEnumeration * CharsetDetector::getAllDetectableCharsets(UErrorCode &status)
{ … }
UEnumeration * CharsetDetector::getDetectableCharsets(UErrorCode &status) const
{ … }
U_NAMESPACE_END
#endif