cutext/encoding.h: Unicode Encodings
[cutext: Unicode and Text Handling]

Enumerations

enum  cutext_encoding_t {
  CUTEXT_ENCODING_NONE, CUTEXT_ENCODING_UNKNOWN, CUTEXT_ENCODING_UTF8, CUTEXT_ENCODING_UTF16,
  CUTEXT_ENCODING_UTF16LE, CUTEXT_ENCODING_UCS2, CUTEXT_ENCODING_UCS2LE, CUTEXT_ENCODING_UCS4,
  CUTEXT_ENCODING_UCS4LE, CUTEXT_ENCODING_UTF16HOST = CUTEXT_ENCODING_UTF16LE, CUTEXT_ENCODING_UCS2HOST = CUTEXT_ENCODING_UCS2LE, CUTEXT_ENCODING_UCS4HOST = CUTEXT_ENCODING_UCS4LE
}

Functions

char const * cutext_encoding_name (cutext_encoding_t enc)
cutext_encoding_t cutext_encoding_by_name (char const *enc_name)
cutext_encoding_t cutext_guess_encoding (void const *data, size_t size)

Enumeration Type Documentation

Enumeration of Unicode encodings.


Function Documentation

cutext_encoding_t cutext_encoding_by_name ( char const *  enc_name  ) 

Return the encoding of name enc_name, or CUTEXT_ENCODING_NONE if enc_name does not name a Unicode coding.

char const* cutext_encoding_name ( cutext_encoding_t  enc  ) 

Return the name enc, in a form suitable for iconv.

cutext_encoding_t cutext_guess_encoding ( void const *  data,
size_t  size 
)

Guess the encoding of the data staring at data using up to size bytes. Try to pass 4 bytes if available.

Generated 2009-11-23 for culibs-0.25 using Doxygen. Maintained by Petter Urkedal.