- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- Search for |

- File List
- Globals

# ucsdet.h

Go to the documentation of this file.

    00001 /*
    00002  **********************************************************************
    00003  *   Copyright (C) 2005-2007, International Business Machines
    00004  *   Corporation and others.  All Rights Reserved.
    00005  **********************************************************************
    00006  *   file name:  ucsdet.h
    00007  *   encoding:   US-ASCII
    00008  *   indentation:4
    00009  *
    00010  *   created on: 2005Aug04
    00011  *   created by: Andy Heninger
    00012  *
    00013  *   ICU Character Set Detection, API for C
    00014  *
    00015  *   Draft version 18 Oct 2005
    00016  *
    00017  */
    00018
    00019 #ifndef __UCSDET_H
    00020 #define __UCSDET_H
    00021
    00022 #include "unicode/utypes.h"
    00023
    00024 #if !UCONFIG_NO_CONVERSION
    00025 #include "unicode/uenum.h"
    00026
    00047 struct UCharsetDetector;
    00052 typedef struct UCharsetDetector UCharsetDetector;
    00053
    00054 struct UCharsetMatch;
    00060 typedef struct UCharsetMatch UCharsetMatch;
    00061
    00070 U_STABLE UCharsetDetector * U_EXPORT2
    00071 ucsdet_open(UErrorCode   *status);
    00072
    00082 U_STABLE void U_EXPORT2
    00083 ucsdet_close(UCharsetDetector *ucsd);
    00084
    00100 U_STABLE void U_EXPORT2
    00101 ucsdet_setText(UCharsetDetector *ucsd, const char *textIn, int32_t len, UErrorCode *status);
    00102
    00103
    00122 U_STABLE void U_EXPORT2
    00123 ucsdet_setDeclaredEncoding(UCharsetDetector *ucsd, const char *encoding, int32_t length, UErrorCode *status);
    00124
    00125
    00151 U_STABLE const UCharsetMatch * U_EXPORT2
    00152 ucsdet_detect(UCharsetDetector *ucsd, UErrorCode *status);
    00153
    00154
    00185 U_STABLE const UCharsetMatch ** U_EXPORT2
    00186 ucsdet_detectAll(UCharsetDetector *ucsd, int32_t *matchesFound, UErrorCode *status);
    00187
    00188
    00189
    00205 U_STABLE const char * U_EXPORT2
    00206 ucsdet_getName(const UCharsetMatch *ucsm, UErrorCode *status);
    00207
    00231 U_STABLE int32_t U_EXPORT2
    00232 ucsdet_getConfidence(const UCharsetMatch *ucsm, UErrorCode *status);
    00233
    00263 U_STABLE const char * U_EXPORT2
    00264 ucsdet_getLanguage(const UCharsetMatch *ucsm, UErrorCode *status);
    00265
    00266
    00289 U_STABLE  int32_t U_EXPORT2
    00290 ucsdet_getUChars(const UCharsetMatch *ucsm,
    00291                  UChar *buf, int32_t cap, UErrorCode *status);
    00292
    00293
    00294
    00314 U_STABLE  UEnumeration * U_EXPORT2
    00315 ucsdet_getAllDetectableCharsets(const UCharsetDetector *ucsd,  UErrorCode *status);
    00316
    00317
    00328 U_STABLE  UBool U_EXPORT2
    00329 ucsdet_isInputFilterEnabled(const UCharsetDetector *ucsd);
    00330
    00331
    00343 U_STABLE  UBool U_EXPORT2
    00344 ucsdet_enableInputFilter(UCharsetDetector *ucsd, UBool filter);
    00345
    00346 #endif
    00347 #endif   /* __UCSDET_H */
    00348
    00349