Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | BASE 36 |
#define | TMIN 1 |
#define | TMAX 26 |
#define | SKEW 38 |
#define | DAMP 700 |
#define | INITIAL_N 128 |
#define | INITIAL_BIAS 72 |
Functions | |
int | utf32len (ut32 *input) |
ut8 * | utf32toutf8 (ut32 *input) |
ut32 * | utf8toutf32 (const ut8 *input, int len) |
ut32 | adapt_bias (ut32 delta, unsigned n_points, int is_first) |
char | encode_digit (int c) |
static ut32 | encode_var_int (const ut32 bias, const ut32 delta, char *dst) |
static ut32 | decode_digit (ut32 v) |
RZ_API char * | rz_punycode_encode (const ut8 *src, int srclen, int *dstlen) |
RZ_API char * | rz_punycode_decode (const char *src, int srclen, int *dstlen) |
#define BASE 36 |
Definition at line 7 of file punycode.c.
#define DAMP 700 |
Definition at line 11 of file punycode.c.
#define INITIAL_BIAS 72 |
Definition at line 13 of file punycode.c.
#define INITIAL_N 128 |
Definition at line 12 of file punycode.c.
#define SKEW 38 |
Definition at line 10 of file punycode.c.
#define TMAX 26 |
Definition at line 9 of file punycode.c.
#define TMIN 1 |
Definition at line 8 of file punycode.c.
Definition at line 112 of file punycode.c.
References BASE, DAMP, delta, k, SKEW, TMAX, and TMIN.
Referenced by rz_punycode_decode(), and rz_punycode_encode().
Definition at line 163 of file punycode.c.
References IS_DIGIT, UT32_MAX, and v.
Referenced by rz_punycode_decode().
char encode_digit | ( | int | c | ) |
Definition at line 133 of file punycode.c.
References BASE, delta, dst, encode_digit(), i, k, TMAX, and TMIN.
Referenced by rz_punycode_encode().
Definition at line 255 of file punycode.c.
References adapt_bias(), b, BASE, calloc(), decode_digit(), dst, eprintf, free(), i, INITIAL_BIAS, INITIAL_N, k, n, NULL, p, si, src, TMAX, TMIN, UT32_MAX, utf32toutf8(), and w.
Referenced by update().
Definition at line 176 of file punycode.c.
References adapt_bias(), b, calloc(), delta, dst, encode_var_int(), free(), h, INITIAL_BIAS, INITIAL_N, len, regress::m, n, NULL, si, src, UT32_MAX, utf32len(), and utf8toutf32().
Referenced by update().
Definition at line 15 of file punycode.c.
Referenced by rz_punycode_encode(), and utf32toutf8().
Definition at line 23 of file punycode.c.
References calloc(), eprintf, free(), i, input(), len, NULL, and utf32len().
Referenced by rz_punycode_decode().