by pubby · 8y ago · 0 comments
I also do not believe the benchmarks to be meaningful.
And here is a summary of the warnings I get when compiling with "-Weverything":
26 [-Wcast-align]
20 [-Wcast-qual]
6 [-Wconditional-uninitialized]
24 [-Wdollar-in-identifier-extension]
172 [-Wold-style-cast]
2 [-Wshorten-64-to-32]
3 [-Wsign-compare]
25 [-Wsign-conversion]
3 [-Wunused-parameter]
72 [-Wzero-as-null-pointer-constant]
Please don't use this code.To the OP: you should use theses tests to validate your implementation https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt (caveat: 5- and 6-byte sequences are no longer valid UTF-8 and should be rejected).
With 2280 lines, a unit test or two would make me way less apprehensive.