Logo Search packages:      
Sourcecode: icu version File versions  Download package

uidna.h File Reference

C API: Internationalizing Domain Names in Applications (IDNA) More...

Include dependency graph for uidna.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  UIDNAInfo

Defines

#define UIDNA_INFO_INITIALIZER

Typedefs

typedef struct UIDNA UIDNA
typedef struct UIDNAInfo UIDNAInfo

Enumerations

enum  {
  UIDNA_DEFAULT = 0, UIDNA_ALLOW_UNASSIGNED = 1, UIDNA_USE_STD3_RULES = 2, UIDNA_CHECK_BIDI = 4,
  UIDNA_CHECK_CONTEXTJ = 8, UIDNA_NONTRANSITIONAL_TO_ASCII = 0x10, UIDNA_NONTRANSITIONAL_TO_UNICODE = 0x20
}
enum  {
  UIDNA_ERROR_EMPTY_LABEL = 1, UIDNA_ERROR_LABEL_TOO_LONG = 2, UIDNA_ERROR_DOMAIN_NAME_TOO_LONG = 4, UIDNA_ERROR_LEADING_HYPHEN = 8,
  UIDNA_ERROR_TRAILING_HYPHEN = 0x10, UIDNA_ERROR_HYPHEN_3_4 = 0x20, UIDNA_ERROR_LEADING_COMBINING_MARK = 0x40, UIDNA_ERROR_DISALLOWED = 0x80,
  UIDNA_ERROR_PUNYCODE = 0x100, UIDNA_ERROR_LABEL_HAS_DOT = 0x200, UIDNA_ERROR_INVALID_ACE_LABEL = 0x400, UIDNA_ERROR_BIDI = 0x800,
  UIDNA_ERROR_CONTEXTJ = 0x1000
}

Functions

U_DRAFT void U_EXPORT2 uidna_close (UIDNA *idna)
U_STABLE int32_t U_EXPORT2 uidna_compare (const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, int32_t options, UErrorCode *status)
U_STABLE int32_t U_EXPORT2 uidna_IDNToASCII (const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status)
U_STABLE int32_t U_EXPORT2 uidna_IDNToUnicode (const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status)
U_DRAFT int32_t U_EXPORT2 uidna_labelToASCII (const UIDNA *idna, const UChar *label, int32_t length, UChar *dest, int32_t capacity, UIDNAInfo *pInfo, UErrorCode *pErrorCode)
U_DRAFT int32_t U_EXPORT2 uidna_labelToASCII_UTF8 (const UIDNA *idna, const char *label, int32_t length, char *dest, int32_t capacity, UIDNAInfo *pInfo, UErrorCode *pErrorCode)
U_DRAFT int32_t U_EXPORT2 uidna_labelToUnicode (const UIDNA *idna, const UChar *label, int32_t length, UChar *dest, int32_t capacity, UIDNAInfo *pInfo, UErrorCode *pErrorCode)
U_DRAFT int32_t U_EXPORT2 uidna_labelToUnicodeUTF8 (const UIDNA *idna, const char *label, int32_t length, char *dest, int32_t capacity, UIDNAInfo *pInfo, UErrorCode *pErrorCode)
U_DRAFT int32_t U_EXPORT2 uidna_nameToASCII (const UIDNA *idna, const UChar *name, int32_t length, UChar *dest, int32_t capacity, UIDNAInfo *pInfo, UErrorCode *pErrorCode)
U_DRAFT int32_t U_EXPORT2 uidna_nameToASCII_UTF8 (const UIDNA *idna, const char *name, int32_t length, char *dest, int32_t capacity, UIDNAInfo *pInfo, UErrorCode *pErrorCode)
U_DRAFT int32_t U_EXPORT2 uidna_nameToUnicode (const UIDNA *idna, const UChar *name, int32_t length, UChar *dest, int32_t capacity, UIDNAInfo *pInfo, UErrorCode *pErrorCode)
U_DRAFT int32_t U_EXPORT2 uidna_nameToUnicodeUTF8 (const UIDNA *idna, const char *name, int32_t length, char *dest, int32_t capacity, UIDNAInfo *pInfo, UErrorCode *pErrorCode)
U_DRAFT UIDNA *U_EXPORT2 uidna_openUTS46 (uint32_t options, UErrorCode *pErrorCode)
U_STABLE int32_t U_EXPORT2 uidna_toASCII (const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status)
U_STABLE int32_t U_EXPORT2 uidna_toUnicode (const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status)

Detailed Description

C API: Internationalizing Domain Names in Applications (IDNA)

IDNA2008 is implemented according to UTS #46, see the IDNA C++ class in idna.h.

The C API functions which do take a UIDNA * service object pointer implement UTS #46 and IDNA2008. The C API functions which do not take a service object pointer implement IDNA2003.

Definition in file uidna.h.


Generated by  Doxygen 1.6.0   Back to index