]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/csdetect.h
2 **********************************************************************
3 * Copyright (C) 2005-2006, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
11 #include "unicode/uobject.h"
13 #if !UCONFIG_NO_CONVERSION
18 class CharsetRecognizer
;
21 class CharsetDetector
: public UMemory
25 CharsetMatch
**resultArray
;
27 UBool fStripTags
; // If true, setText() will strip tags from input text.
29 static void setRecognizers(UErrorCode
&status
);
32 CharsetDetector(UErrorCode
&status
);
36 void setText(const char *in
, int32_t len
);
38 const CharsetMatch
* const *detectAll(int32_t &maxMatchesFound
, UErrorCode
&status
);
40 const CharsetMatch
*detect(UErrorCode
& status
);
42 void setDeclaredEncoding(const char *encoding
, int32_t len
) const;
44 UBool
setStripTagsFlag(UBool flag
);
46 UBool
getStripTagsFlag() const;
48 // const char *getCharsetName(int32_t index, UErrorCode& status) const;
50 static int32_t getDetectableCount();
56 #endif /* __CSDETECT_H */