Software /
code /
prosody
Comparison
util-src/encodings.c @ 417:d60e63379284
Removed commented code
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 26 Nov 2008 01:55:07 +0500 |
parent | 415:3cf7deea9971 |
child | 432:fb19a5c14d44 |
comparison
equal
deleted
inserted
replaced
416:7cc2d8a8ae97 | 417:d60e63379284 |
---|---|
1 /* | 1 /* |
2 * xxpath.c | 2 * encodings.c |
3 * An implementation of a subset of xpath for Lua 5.1 | 3 * Lua library for base64, stringprep and idna encodings |
4 * Waqas Hussain <waqas20@gmail.com> | |
5 * 05 Oct 2008 15:28:15 | |
6 */ | 4 */ |
7 | 5 |
8 #include <string.h> | 6 #include <string.h> |
9 | 7 |
10 #include "lua.h" | 8 #include "lua.h" |
11 #include "lauxlib.h" | 9 #include "lauxlib.h" |
12 | |
13 /*const char* hex_tab = "0123456789abcdef"; | |
14 void toHex(const char* in, int length, char* out) { | |
15 int i; | |
16 for (i = 0; i < length; i++) { | |
17 out[i*2] = hex_tab[(in[i] >> 4) & 0xF]; | |
18 out[i*2+1] = hex_tab[(in[i]) & 0xF]; | |
19 } | |
20 //out[i*2] = 0; | |
21 }*/ | |
22 | 10 |
23 /***************** BASE64 *****************/ | 11 /***************** BASE64 *****************/ |
24 | 12 |
25 #define uint unsigned int | 13 #define uint unsigned int |
26 | 14 |