"Johnson, Chris (HP TippingPoint Roseville)" <chris.johnson3@hp.com> writes:
The template functions that I can release are: Using 'ipv4-to-int' as a template and added these to 'modules/convertfuncs/convert-funcs.c':
Better later than never, I finally got around to these template functions, and they're going to hit my merge-queue/3.5 branch soon. For upper-case and lower-case, I used g_utf8_strup() and g_utf8_strdown() instead of toupper() and tolower(), so that it works on UTF8 chars too, not just ASCII. I did not pick the tf_tab_to_$something functions, but implemented $(delimit) instead, which can replace a number of delimiters within a string with another delimiter. So $(tab-to-comma $MESSAGE) would become $(delimit "\t" "," $MESSAGE), and so on. I did not add shortcuts for now. -- |8]