leitner
77a2bbd17a
half-hearted improvements to Windows compilability
6 years ago
leitner
2d78cb8406
fix unit test for fmt_escapecharc
...
add unit tests for fmt_xmlescape
6 years ago
leitner
b9eb81c58f
move unit tests into each file (compile with -DUNITTEST)
8 years ago
leitner
760598ec2f
#include <foo.h> -> #include <libowfat/foo.h>
8 years ago
leitner
660c314341
a few more test suites
...
escapecharc now supports non-ascii
8 years ago
leitner
14f26729e9
add scan_utf8_sem
...
add utf8 test suite
8 years ago
leitner
d020e6d88b
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)
9 years ago
leitner
d26b8082d8
shut up new gcc 6 warnings
9 years ago
leitner
189d8bad1d
darwin compat
9 years ago
leitner
32a312b8f1
add marshaling code for protocol buffers
9 years ago
leitner
6859c4b6ca
add netstring formatter
...
fix scan_netstring to actually correctly return the length of the transported string
add documentation
9 years ago
leitner
fb1f19042f
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
9 years ago
leitner
7bdc1b29bb
a few missing headers and minor fixes
...
fix corking behavior for the case where a buffer follows a buffer in
iob_send
9 years ago
leitner
cdecd16ab3
add documentation
10 years ago
leitner
ad5ce55281
add fmt_iso8601
10 years ago
leitner
38ea25fd9f
more updates
10 years ago
leitner
9a1addce2f
remove compiler warnings
11 years ago
leitner
35942878c2
$ 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
11 years ago
leitner
73db80daec
get rid of some compiler warnings
11 years ago
leitner
35382a430e
if called with srclen > maxlen, return maxlen not srclen
11 years ago
leitner
21d0ea4549
if srclen>maxlen, truncate at maxlen
11 years ago
leitner
a85bfc1b81
fmt_strn aborted one byte too late
11 years ago
leitner
1d2add208f
add json encoding routines to textcode
11 years ago
leitner
4f1e1d300c
make headers work in C++
...
add two more variable length integer encoding functions
13 years ago
leitner
d17c2d1012
add functions to encode and decode integers in variable length binary
...
formats
13 years ago
leitner
acd4fdb68b
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)
15 years ago
leitner
67a8f54b63
fix gcc warning
...
update Makefile for BSD users
17 years ago
leitner
aa435fbee3
add fmt_strm
17 years ago
leitner
3c31c1a03b
fmt_xlonglong was utterly broken (Johannes Vetter)
18 years ago
leitner
3004b518ef
switch to size_t and ssize_t
18 years ago
leitner
eeffc36387
remove even more warnings
...
64-bit cleanliness issue with auto-NULL-appending macros
20 years ago
leitner
e0f6355a91
add a few man pages
21 years ago
sanjiyan
8f66476e0d
remove strict alias warning...
21 years ago
leitner
a8f6a1c121
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
21 years ago
leitner
5226dd010d
change length or size specifiers in APIs from int to long
...
add array API (http://cr.yp.to/lib/array.html )
22 years ago
leitner
5674c5186d
add long long fmt routines
22 years ago
leitner
40bba8865b
add fmt_human, fmt_humank and fmt_httpdate
22 years ago
leitner
a3b08eb5e5
add fmt_human and fmt_humank
22 years ago
leitner
5950f0c5ae
add some man pages
22 years ago
leitner
85c18a49cb
Lots of good clean-ups from Jukka Zitting!
23 years ago
leitner
a7360d9385
fmt_long did not count the '-'
23 years ago
leitner
b40bae5bf4
fmt_str was broken. It did not check for out==NULL
23 years ago
leitner
d6ae7e2265
this time for real ;)
23 years ago
sanjiyan
ffd6158589
removed div with a shift
24 years ago
leitner
ada92190c4
change semantic of fmt_fill and add man pages.
24 years ago
leitner
6629de6768
add fmt_pad and fmt_fill.
24 years ago
leitner
6eca5174a8
fix outputting 0.
24 years ago
leitner
5c1abf12b5
hex conversion bug fix.
24 years ago
leitner
99bc1eb7e4
fmt_double looped inifinitely when trying to format 0.
24 years ago
leitner
762298de12
fmt_ulong did not output '0' properly.
24 years ago