ICU 4.8.1.1  4.8.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Fields
UIDNAInfo Struct Reference

Output container for IDNA processing errors. More...

#include <uidna.h>

Data Fields

int16_t size
 sizeof(UIDNAInfo)
UBool isTransitionalDifferent
 Set to TRUE if transitional and nontransitional processing produce different results.
UBool reservedB3
 Reserved field, do not use.
uint32_t errors
 Bit set indicating IDNA processing errors.
int32_t reservedI2
 Reserved field, do not use.
int32_t reservedI3
 Reserved field, do not use.

Detailed Description

Output container for IDNA processing errors.

Initialize with UIDNA_INFO_INITIALIZER:

int32_t length = uidna_nameToASCII(..., &info, &errorCode);
if(U_SUCCESS(errorCode) && info.errors!=0) { ... }
Draft:
This API may be changed in the future versions and was introduced in ICU 4.6

Definition at line 158 of file uidna.h.

Field Documentation

uint32_t UIDNAInfo::errors

Bit set indicating IDNA processing errors.

0 if no errors. See UIDNA_ERROR_... constants.

Draft:
This API may be changed in the future versions and was introduced in ICU 4.6

Definition at line 173 of file uidna.h.

UBool UIDNAInfo::isTransitionalDifferent

Set to TRUE if transitional and nontransitional processing produce different results.

For details see C++ IDNAInfo::isTransitionalDifferent().

Draft:
This API may be changed in the future versions and was introduced in ICU 4.6

Definition at line 166 of file uidna.h.

UBool UIDNAInfo::reservedB3

Reserved field, do not use.

Internal:
Do not use. This API is for internal use only.

Definition at line 167 of file uidna.h.

int32_t UIDNAInfo::reservedI2

Reserved field, do not use.

Internal:
Do not use. This API is for internal use only.

Definition at line 174 of file uidna.h.

int32_t UIDNAInfo::reservedI3

Reserved field, do not use.

Internal:
Do not use. This API is for internal use only.

Definition at line 175 of file uidna.h.

int16_t UIDNAInfo::size

sizeof(UIDNAInfo)

Draft:
This API may be changed in the future versions and was introduced in ICU 4.6

Definition at line 160 of file uidna.h.


The documentation for this struct was generated from the following file: