59 #define UIDNA_DEFAULT 0x0000
66 #define UIDNA_ALLOW_UNASSIGNED 0x0001
73 #define UIDNA_USE_STD3_RULES 0x0002
int32_t uidna_IDNToUnicode(const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status)
Convenience function that implements the IDNToUnicode operation as defined in the IDNA RFC...
int32_t uidna_toUnicode(const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status)
This function implements the ToUnicode operation as defined in the IDNA RFC.
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
C API: Parse Error Information.
int32_t uidna_toASCII(const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status)
This function implements the ToASCII operation as defined in the IDNA RFC.
int32_t uidna_compare(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, int32_t options, UErrorCode *status)
Compare two IDN strings for equivalence.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
A UParseError struct is used to returned detailed information about parsing errors.
Basic definitions for ICU, for both C and C++ APIs.
int32_t uidna_IDNToASCII(const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status)
Convenience function that implements the IDNToASCII operation as defined in the IDNA RFC...
signed int int32_t
Define 64 bit limits.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.