aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/encodings.c
Commit message (Collapse)AuthorAgeFilesLines
* util.encodings: Strictly verify that the 'strict' *prep argument is a booleanKim Alvefur2019-10-301-4/+10
| | | | | This is to prevent mistakes like nodeprep(username:gsub("a","b")) from unintentionally invoking strict mode.
* util.encodings: Optional strict flag to stringprepKim Alvefur2019-04-241-2/+14
|
* util.encodings: Spell out all IDNA 2008 options ICU hasKim Alvefur2019-09-111-1/+24
|
* util.encodings: Switch ICU binding to IDNA2008 (fixes #533, #1301)Kim Alvefur2019-09-111-4/+9
|
* util.encodings: Declare absence of arguments [-Wstrict-prototypes]Kim Alvefur2019-05-131-1/+1
|
* util.encodings: Add compat with ICU before version 58Kim Alvefur2019-04-291-0/+5
|
* util.encodings: Add binding to confusables skeleton function in ICUKim Alvefur2019-04-241-0/+45
|
* util.encodings: Allow unassigned code points in ICU mode to match libidn ↵Kim Alvefur2019-04-241-1/+1
| | | | behavior (fixes #1348)
* encodings: Explicitly say that base64 decoding falls through in a switch, ↵Emmanuel Gil Peyrot2018-08-081-0/+2
| | | | fixes a warning in gcc 7+.
* util.encodings: Use the 'idx' argument correctly [-Wunused-parameter]Kim Alvefur2017-10-051-1/+1
|
* util.encodings: Make limit lookup table a const (from Lua f2a813ae)Kim Alvefur2017-03-221-1/+1
|
* util-src/*.c: Attach pointer * to name instead of typeKim Alvefur2017-02-121-34/+43
|
* util-src/*.c: Squeeze repeated blank linesKim Alvefur2017-01-231-1/+0
|
* util-src: Make C modules assert that the Lua runtime matches what it was ↵Kim Alvefur2017-01-081-0/+3
| | | | compiled for
* util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to ↵Kim Alvefur2015-04-261-6/+6
| | | | support 5.1
* util.encodings: Move declarations to top of function [pedantic]Kim Alvefur2015-05-021-2/+3
|
* util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches ↵Kim Alvefur2015-04-031-126/+195
| | | | --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux
* Merge 0.9->0.10 againKim Alvefur2015-03-271-3/+94
|\
| * util.encodings: Expose UTF-8 validation and length checking functionsKim Alvefur2015-03-231-0/+28
| |
| * util.encodings: Perform validation of UTF-8 strings before passing to libidn ↵Kim Alvefur2015-03-231-3/+67
| | | | | | | | (Based on code from the utf8 library in Lua 5.3)
* | util-src/*.c: Add macro for compiling with Lua 5.2Kim Alvefur2014-09-171-0/+4
| |
* | util-src/*.c: Use the more concise lua_setfieldKim Alvefur2014-09-171-8/+4
| |
* | util-src/*.c: Don't create globals when loadedKim Alvefur2014-09-161-6/+1
|/
* util.encodings: Fix small typo introduced in 7f789266b741Matthew Wild2011-06-041-1/+1
|
* util.encodings: Check return values before proceedingPaul Aurich2011-05-221-3/+17
|
* util.encodings: Swap code order ("ifndef" bugs me)Paul Aurich2011-05-221-75/+77
|
* util.encodings: Fix idna.to_unicodePaul Aurich2011-05-221-1/+1
|
* util.encodings: Switch comment styles to build ok as ANSI CMatthew Wild2010-12-261-5/+5
|
* util-src/Makefile, util-src/encodings.c{,pp}: Port ICU code to C, rename ↵Matthew Wild2010-12-171-0/+379
| | | | encodings.cpp back to .c and amend the Makefile accordingly
* util.encodings: Support for ICU for IDNA operations.Tobias Markmann2010-12-141-243/+0
|
* Update copyright headers for 2010Matthew Wild2010-03-221-3/+3
|
* util.encodings: Use STD3 ASCII rules for idna.to_ascii.Waqas Hussain2010-02-101-1/+1
|
* util.encodings: Removed a bit of unreachable code.Waqas Hussain2009-10-021-1/+0
|
* util.encodings: Included idn-free.h, which explicitly declares the idn_free ↵Waqas Hussain2009-10-021-0/+1
| | | | function.
* util.encodings: Fixed: Last change was not ANSI C compatible.Waqas Hussain2009-10-021-1/+6
|
* util.encodings: Fixed an issue with cross-module memory deallocation ↵Waqas Hussain2009-09-221-4/+4
| | | | (crashes on some windows versions).
* 0.3->0.4Matthew Wild2009-03-201-1/+1
|
* Licensing/version updates for some files (forgot to commit, doh...)Matthew Wild2009-02-021-241/+230
|
* Fixed util.encodings.base64.decode to not truncate results when encountering ↵Waqas Hussain2008-12-081-3/+5
| | | | an '=' before the end of the given input.
* and the C files tooMatthew Wild2008-12-031-0/+20
|
* Use unsigned int instead of uint because uint is already in use on OS X.Tobias Markmann2008-11-281-3/+1
|
* To use free you should include stdlib.h rather than malloc.h according to ↵Tobias Markmann2008-11-281-1/+1
| | | | man page of free() and various C reference websites.
* Minor changes to C files (to prevent compiler warnings)Waqas Hussain2008-11-271-4/+8
|
* Fix for hashes.c and encodings.c to rename luaopen for util_*Matthew Wild2008-11-261-1/+1
|
* Removed commented codeWaqas Hussain2008-11-261-14/+2
|
* Added util-src/encodings.c - support for base64, stringprep and idna encodingsWaqas Hussain2008-11-261-0/+237