Simple library for dealing with UTF-8 BOM (Byte Order Mark)

Piotr Czajkowski 7eabf2a642 Better errors, I hope hace 4 años
win cad7eec1d2 Added bomToolkit.exe hace 6 años
.gitignore f6b70503dd Added bomToolkit hace 6 años
LICENSE.md eda3d65bad License hace 6 años
README.md 9ada86ea45 Added bomToolkit hace 6 años
bom.c 7eabf2a642 Better errors, I hope hace 4 años
bom.h 7eabf2a642 Better errors, I hope hace 4 años
bomToolkit.c e80b83cdcb Formatting hace 6 años
makefile c8dba3c795 Added -Wshadow hace 5 años
testBOM daf7382543 First version hace 6 años
testNoBOM daf7382543 First version hace 6 años
test_bom.c 7eabf2a642 Better errors, I hope hace 4 años

README.md

BOM

I've written it for fun and because BOM is still a valid problem in l10n world. It's simple and relies only on standard libraries, so should work pretty much everywhere.

It contains simple test which you can run by:

make test

I've also added simple wrapper, so you can use it as executable:

Usage:
./bomToolkit <filePath> c - to check for BOM.
./bomToolkit <filePath> r - to remove BOM.
./bomToolkit <filePath> a - to add BOM.

And you can find Windows executable in win subfolder.

It's 22 times faster than similar one I've written in C#, so either C is faster at that or I've written it better:) Enjoy!

As always, you can use it as you want, but I give you no warranty.