Software /
code /
verse
Annotate
libs/encodings.lua @ 110:3fca7dd127df
doc/example_jingle.lua, doc/example_jingle_send.lua: Example scripts to receive and send files using Jingle
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 24 Aug 2010 11:16:46 +0100 (2010-08-24) |
parent | 107:59c6f2deb8ab |
child | 130:5de7f66e4168 |
rev | line source |
---|---|
107
59c6f2deb8ab
libs/encodings.lua: Throw error when calling unimplemented function
Matthew Wild <mwild1@gmail.com>
parents:
0
diff
changeset
|
1 local function not_impl() |
59c6f2deb8ab
libs/encodings.lua: Throw error when calling unimplemented function
Matthew Wild <mwild1@gmail.com>
parents:
0
diff
changeset
|
2 error("Encoding function not implemented"); |
59c6f2deb8ab
libs/encodings.lua: Throw error when calling unimplemented function
Matthew Wild <mwild1@gmail.com>
parents:
0
diff
changeset
|
3 end |
59c6f2deb8ab
libs/encodings.lua: Throw error when calling unimplemented function
Matthew Wild <mwild1@gmail.com>
parents:
0
diff
changeset
|
4 |
0 | 5 module "encodings" |
6 | |
7 stringprep = {}; | |
107
59c6f2deb8ab
libs/encodings.lua: Throw error when calling unimplemented function
Matthew Wild <mwild1@gmail.com>
parents:
0
diff
changeset
|
8 base64 = { encode = not_impl, decode = not_impl }; |
0 | 9 |
10 return _M; |