NetSurf
Typedefs | Enumerations | Functions
punycode.h File Reference
#include <limits.h>
#include <stddef.h>
Include dependency graph for punycode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef unsigned long punycode_uint
 

Enumerations

enum  punycode_status { punycode_success = 0 , punycode_bad_input = 1 , punycode_big_output = 2 , punycode_overflow = 3 }
 

Functions

enum punycode_status punycode_encode (size_t, const punycode_uint[], const unsigned char[], size_t *, char[])
 
enum punycode_status punycode_decode (size_t, const char[], size_t *, punycode_uint[], unsigned char[])
 

Typedef Documentation

◆ punycode_uint

typedef unsigned long punycode_uint

Definition at line 41 of file punycode.h.

Enumeration Type Documentation

◆ punycode_status

Enumerator
punycode_success 
punycode_bad_input 
punycode_big_output 
punycode_overflow 

Definition at line 24 of file punycode.h.

Function Documentation

◆ punycode_decode()

enum punycode_status punycode_decode ( size_t  input_length,
const char  input[],
size_t *  output_length,
punycode_uint  output[],
unsigned char  case_flags[] 
)

Definition at line 194 of file punycode.c.

References adapt(), base, basic, decode_digit(), delim, flagged, initial_bias, initial_n, maxint, punycode_bad_input, punycode_big_output, punycode_overflow, punycode_success, tmax, and tmin.

Referenced by idna__ace_to_ucs4().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ punycode_encode()

enum punycode_status punycode_encode ( size_t  input_length_orig,
const  punycode_uint[],
const unsigned char  case_flags[],
size_t *  output_length,
char  output[] 
)

Definition at line 95 of file punycode.c.

References adapt(), base, basic, delimiter, encode_basic(), encode_digit(), initial_bias, initial_n, maxint, punycode_big_output, punycode_overflow, punycode_success, tmax, and tmin.

Referenced by idna__ucs4_to_ace().

Here is the call graph for this function:
Here is the caller graph for this function: