ICU 4.8.1.1  4.8.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Friends
IDNAInfo Class Reference

Output container for IDNA processing errors. More...

#include <idna.h>

Inheritance diagram for IDNAInfo:
UMemory

Public Member Functions

 IDNAInfo ()
 Constructor for stack allocation.
UBool hasErrors () const
 Were there IDNA processing errors?
uint32_t getErrors () const
 Returns a bit set indicating IDNA processing errors.
UBool isTransitionalDifferent () const
 Returns TRUE if transitional and nontransitional processing produce different results.

Friends

class UTS46

Additional Inherited Members

- Static Public Member Functions inherited from UMemory
static void * operator new (size_t size)
 Override for ICU4C C++ memory management.
static void * operator new[] (size_t size)
 Override for ICU4C C++ memory management.
static void operator delete (void *p)
 Override for ICU4C C++ memory management.
static void operator delete[] (void *p)
 Override for ICU4C C++ memory management.
static void * operator new (size_t, void *ptr)
 Override for ICU4C C++ memory management for STL.
static void operator delete (void *, void *)
 Override for ICU4C C++ memory management for STL.

Detailed Description

Output container for IDNA processing errors.

The IDNAInfo class is not suitable for subclassing.

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

Definition at line 264 of file idna.h.

Constructor & Destructor Documentation

IDNAInfo::IDNAInfo ( )
inline

Constructor for stack allocation.

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

Definition at line 270 of file idna.h.

Member Function Documentation

uint32_t IDNAInfo::getErrors ( ) const
inline

Returns a bit set indicating IDNA processing errors.

See UIDNA_ERROR_... constants in uidna.h.

Returns
bit set of processing errors
Draft:
This API may be changed in the future versions and was introduced in ICU 4.6

Definition at line 283 of file idna.h.

UBool IDNAInfo::hasErrors ( ) const
inline

Were there IDNA processing errors?

Returns
TRUE if there were processing errors
Draft:
This API may be changed in the future versions and was introduced in ICU 4.6

Definition at line 276 of file idna.h.

UBool IDNAInfo::isTransitionalDifferent ( ) const
inline

Returns TRUE if transitional and nontransitional processing produce different results.

This is the case when the input label or domain name contains one or more deviation characters outside a Punycode label (see UTS #46).

  • With nontransitional processing, such characters are copied to the destination string.
  • With transitional processing, such characters are mapped (sharp s/sigma) or removed (joiner/nonjoiner).
Returns
TRUE if transitional and nontransitional processing produce different results
Draft:
This API may be changed in the future versions and was introduced in ICU 4.6

Definition at line 297 of file idna.h.


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