pr29

pr29

Synopsis

#define             IDNAPI
enum                Pr29_rc;
const char *        pr29_strerror                       (Pr29_rc rc);
int                 pr29_4                              (const uint32_t *in,
                                                         size_t len);
int                 pr29_4z                             (const uint32_t *in);
int                 pr29_8z                             (const char *in);

Description

Details

IDNAPI

#define             IDNAPI


enum Pr29_rc

  typedef enum
  {
    PR29_SUCCESS = 0,
    PR29_PROBLEM = 1,		/* String is a problem sequence. */
    PR29_STRINGPREP_ERROR = 2 /* Charset conversion failed (p29_8*). */
  } Pr29_rc;

Enumerated return codes for pr29_4(), pr29_4z(), pr29_8z(). The value 0 is guaranteed to always correspond to success.

PR29_SUCCESS

Successful operation. This value is guaranteed to always be zero, the remaining ones are only guaranteed to hold non-zero values, for logical comparison purposes.

PR29_PROBLEM

A problem sequence was encountered.

PR29_STRINGPREP_ERROR

The character set conversion failed (only for pr29_8() and pr29_8z()).

pr29_strerror ()

const char *        pr29_strerror                       (Pr29_rc rc);

rc :

Returns :


pr29_4 ()

int                 pr29_4                              (const uint32_t *in,
                                                         size_t len);

in :

len :

Returns :


pr29_4z ()

int                 pr29_4z                             (const uint32_t *in);

in :

Returns :


pr29_8z ()

int                 pr29_8z                             (const char *in);

in :

Returns :