Felix von Leitner
0d817b6e57
add man pages for fmt_copybytes and fmt_copybytes_sizeof_minus1
6 months ago
Felix von Leitner
5945afed04
half-hearted improvements to Windows compilability
1 year ago
Felix von Leitner
133aa01439
fix unit test for fmt_escapecharc
add unit tests for fmt_xmlescape
2 years ago
Felix von Leitner
e5fb72d521
move unit tests into each file (compile with -DUNITTEST)
3 years ago
Felix von Leitner
d6674f6d8e
#include <foo.h> -> #include <libowfat/foo.h>
3 years ago
Felix von Leitner
84d3184cbc
a few more test suites
escapecharc now supports non-ascii
3 years ago
Felix von Leitner
2bcf469c7c
add scan_utf8_sem
add utf8 test suite
3 years ago
Felix von Leitner
069f5c22c1
another gcc 6 warning fix
compile on osx again
remove asm version of i?mult64 (was needed only for clang because it
didn't have __uint128_t, but it now has it)
4 years ago
Felix von Leitner
9e3ba6e772
shut up new gcc 6 warnings
4 years ago
Felix von Leitner
b9af5f3905
darwin compat
5 years ago
Felix von Leitner
8f64f1c9af
add marshaling code for protocol buffers
5 years ago
Felix von Leitner
ec32c40bab
add netstring formatter
fix scan_netstring to actually correctly return the length of the transported string
add documentation
5 years ago
Felix von Leitner
3ccdc6055a
support gcc 5 builtins for multiplication overflow in safemult.h
fix copypasted comment in fmt_asn1dertag
add man pages for add_of, sub_of and assign
5 years ago
Felix von Leitner
ea849e7ebf
a few missing headers and minor fixes
fix corking behavior for the case where a buffer follows a buffer in
iob_send
5 years ago
Felix von Leitner
33fcc42d09
add documentation
5 years ago
Felix von Leitner
5f90c12917
add fmt_iso8601
5 years ago
Felix von Leitner
6a74a47988
more updates
6 years ago
Felix von Leitner
21ca7d8264
remove compiler warnings
6 years ago
Felix von Leitner
de26fa9ec3
remove compiler warnings
6 years ago
Felix von Leitner
6a1c199a99
$ make WERROR=-Werror now builds with -Werror
add some single char escaping routines to fmt.h
pull in html5 entities from w3c and use those to do a proper scan_html decoding
fix an off-by-one in fmt_to_array
add a ton of unit tests for the fmt routines
6 years ago
Felix von Leitner
4381f7c6a2
get rid of some compiler warnings
6 years ago
Felix von Leitner
e1d937c67b
if called with srclen > maxlen, return maxlen not srclen
6 years ago
Felix von Leitner
31ce8647fe
if srclen>maxlen, truncate at maxlen
6 years ago
Felix von Leitner
29b9860a37
fmt_strn aborted one byte too late
6 years ago
Felix von Leitner
0482a9ec04
add json encoding routines to textcode
7 years ago
Felix von Leitner
cf46170dc7
make headers work in C++
add two more variable length integer encoding functions
9 years ago
Felix von Leitner
24c6e42b3c
add functions to encode and decode integers in variable length binary
formats
9 years ago
Felix von Leitner
dfced9889c
add/fix man pages
zero a buffer in io_passfd so valgrind does not complain when we pass it
to a syscall (which did not use the uninitialized parts anyway)
11 years ago
Felix von Leitner
36a09cdbbe
fix gcc warning
update Makefile for BSD users
13 years ago
Felix von Leitner
1c8ffa9021
add fmt_strm
13 years ago
Felix von Leitner
dc6ea1902b
fmt_xlonglong was utterly broken (Johannes Vetter)
13 years ago
Felix von Leitner
0698149baf
switch to size_t and ssize_t
14 years ago
Felix von Leitner
e5c56dc6b0
remove even more warnings
64-bit cleanliness issue with auto-NULL-appending macros
15 years ago
Felix von Leitner
cc8b30ba1d
add a few man pages
17 years ago
Olaf Dreesen
748f7857e4
remove strict alias warning...
17 years ago
Felix von Leitner
640edc1651
remove special case stralloc textcode functions
write generic stralloc and array textcode wrapper functions
change textcode API to use long instead of int
add cescape fmt and scan functions to textcode
add fmt_foldwhitespace to textcode
17 years ago
Felix von Leitner
c4b0574495
change length or size specifiers in APIs from int to long
add array API (http://cr.yp.to/lib/array.html )
17 years ago
Felix von Leitner
0a989950f6
add long long fmt routines
17 years ago
Felix von Leitner
7751ba7082
add fmt_human, fmt_humank and fmt_httpdate
17 years ago
Felix von Leitner
e47b02cdf7
add fmt_human and fmt_humank
17 years ago
Felix von Leitner
10f26fd5bc
add some man pages
18 years ago
Felix von Leitner
d9ce04f950
Lots of good clean-ups from Jukka Zitting!
18 years ago
Felix von Leitner
e518d7e0f0
fmt_long did not count the '-'
19 years ago
Felix von Leitner
5d07297e8c
fmt_str was broken. It did not check for out==NULL
19 years ago
Felix von Leitner
28f2b90b1c
this time for real ;)
19 years ago
Olaf Dreesen
88192569ba
removed div with a shift
19 years ago
Felix von Leitner
818e782ce0
change semantic of fmt_fill and add man pages.
19 years ago
Felix von Leitner
e29be9e016
add fmt_pad and fmt_fill.
19 years ago
Felix von Leitner
f3ce612e36
fix outputting 0.
20 years ago
Felix von Leitner
4f44f5a482
fix outputting 0.
20 years ago