/tinybits

Tiny bits and useful snippets that I keep using everywhere (C, C++)

Primary LanguageC++The UnlicenseUnlicense

tinybits

  • Tiny bits and useful snippets that I keep using everywhere.
  • Too simple to become libraries. Just cut & paste.
  • Cross-platform C/C++.
  • Public Domain.
Snippet Language Domain
tinyarc4.hpp C++ ARC4 stream cypher
tinyatoi.c C atoi() replacement
tinybenchmark.hpp C++ Benchmark code
tinybsearch.c C Dichotomic binary search
tinybsearch.cc C++ Dichotomic binary search
tinybuild.h C Build macros
tinydebug.h C Debug macros
tinydefer.cc C++ Defer macro, Go style
tinydir.cc C++ Recursive directory listing
tinydual.sh.bat Bash Dual bash/batch file
tinyendian.c C Endianness conversion
tinyfsm.c C Tight FSM
tinyhexdump.c C Hexdump viewer
tinyhuman.hpp C++ De/humanized numbers
tinylog.h C Logging utilities
tinylogger.cc C++ Session logger
tinymatch.c C Wildcard/pattern matching
tinymime.c C MIME/file-type detection
tinypipe.hpp C++11 Chainable pipes
tinyprint.cc C++ Comma-based printer
tinypulse.c C Digital pulses
tinyroman.cc C++ Integer to roman literals
tinystring.cc C++ String utilities
tinytga.c C Forked TGA writer
tinytime.cc C++ Timing utilities
tinytodo.cc C++11 TODO() macro
tinytty.c C Terminal utilities
tinyunit.cc C++ Unit-testing
tinyuniso.cc C++ .iso/9960 unarchiver
tinyuntar.cc C++ .tar unarchiver
tinyunzip.cc C++ .zip unarchiver
tinyvariant.cc C++ Variant class
tinyvbyte.h C VLE encoder/decoder (vbyte)
tinywav.c C Forked WAV writer
tinywtf.h C/C++ Portable host macros
tinyzlib.cpp C++ zlib inflater