Go to the documentation of this file.
27 #if U_SHOW_CPLUSPLUS_API
276 IDNAInfo() : errors(0), labelErrors(0), isTransDiff(false), isBiDi(false), isOkBiDi(true) {}
312 errors=labelErrors=0;
318 uint32_t errors, labelErrors;
326 #endif // UCONFIG_NO_IDNA
uint32_t getErrors() const
Returns a bit set indicating IDNA processing errors.
virtual UnicodeString & nameToASCII(const UnicodeString &name, UnicodeString &dest, IDNAInfo &info, UErrorCode &errorCode) const =0
Converts a whole domain name into its ASCII form for DNS lookup.
Basic definitions for ICU, for both C and C++ APIs.
UBool hasErrors() const
Were there IDNA processing errors?
IDNAInfo()
Constructor for stack allocation.
int8_t UBool
The ICU boolean type, a signed-byte integer.
Abstract base class for IDNA processing.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside.
virtual UnicodeString & labelToUnicode(const UnicodeString &label, UnicodeString &dest, IDNAInfo &info, UErrorCode &errorCode) const =0
Converts a single domain name label into its Unicode form for human-readable display.
C++ API: StringPiece: Read-only byte string wrapper class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
A ByteSink can be filled with bytes.
UMemory is the common ICU base class.
static IDNA * createUTS46Instance(uint32_t options, UErrorCode &errorCode)
Returns an IDNA instance which implements UTS #46.
virtual void nameToUnicodeUTF8(StringPiece name, ByteSink &dest, IDNAInfo &info, UErrorCode &errorCode) const
Converts a whole domain name into its Unicode form for human-readable display.
C API: Internationalizing Domain Names in Applications (IDNA)
virtual UnicodeString & nameToUnicode(const UnicodeString &name, UnicodeString &dest, IDNAInfo &info, UErrorCode &errorCode) const =0
Converts a whole domain name into its Unicode form for human-readable display.
UBool isTransitionalDifferent() const
Returns true if transitional and nontransitional processing produce different results.
virtual void labelToASCII_UTF8(StringPiece label, ByteSink &dest, IDNAInfo &info, UErrorCode &errorCode) const
Converts a single domain name label into its ASCII form for DNS lookup.
virtual void labelToUnicodeUTF8(StringPiece label, ByteSink &dest, IDNAInfo &info, UErrorCode &errorCode) const
Converts a single domain name label into its Unicode form for human-readable display.
virtual void nameToASCII_UTF8(StringPiece name, ByteSink &dest, IDNAInfo &info, UErrorCode &errorCode) const
Converts a whole domain name into its ASCII form for DNS lookup.
Output container for IDNA processing errors.
A string-like object that points to a sized piece of memory.
C++ API: Interface for writing bytes, and implementation classes.
virtual UnicodeString & labelToASCII(const UnicodeString &label, UnicodeString &dest, IDNAInfo &info, UErrorCode &errorCode) const =0
Converts a single domain name label into its ASCII form for DNS lookup.