1 /** 2 * This file is part of the Detox package. 3 * 4 * Copyright (c) Doug Harple <detox.dharple@gmail.com> 5 * 6 * For the full copyright and license information, please view the LICENSE 7 * file that was distributed with this source code. 8 */ 9 10 #ifndef __CLEAN_STRING_H 11 #define __CLEAN_STRING_H 12 13 struct clean_string_options { 14 char *filename; 15 int remove_trailing; 16 size_t max_length; 17 18 void *misc; 19 void *translation_table; 20 }; 21 22 extern unsigned char *clean_iso8859_1_basic(unsigned char *s, void *options); 23 extern unsigned char *clean_iso8859_1(unsigned char *s, void *options); 24 extern unsigned char *clean_safe_basic(unsigned char *s, void *options); 25 extern unsigned char *clean_safe(unsigned char *s, void *options); 26 extern unsigned char *clean_uncgi(unsigned char *s, void *options); 27 extern unsigned char *clean_wipeup(unsigned char *s, void *options); 28 extern unsigned char *clean_utf_8_basic(unsigned char *s, void *options); 29 extern unsigned char *clean_utf_8(unsigned char *s, void *options); 30 extern unsigned char *clean_max_length(unsigned char *s, void *opts); 31 extern unsigned char *clean_lower(unsigned char *s, void *opts); 32 33 #endif /* __CLEAN_STRING_H */ 34