Description
`strf` is a formatting library that: - is highly extensible. - is highly customizable - is fast - is locale-independent - supports encoding conversion.
strf alternatives and similar libraries
Based on the "Miscellaneous" category.
Alternatively, view strf alternatives based on common mentions on social networks and blogs.
-
ZXing
An open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. [Apache] -
ZBar
A barcode scanner library, which allows to scan photos/images/video streams for barcodes and return their value. [LGPL2] -
American fuzzy lop
Crazy fuzzing tool that automatically discovers bugs given time and minimal example input. [Apache2] -
UNITS
a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies. -
Better String
An alternative to the string library for C which is more functional and does not have buffer overflow overrun problems. Also includes a C++ wrapper. [BSD, GPL2] -
value-category-cheatsheet
A PDF cheatsheet for lvalues, rvalues, and the like. [Jank copyleft] -
CommonPP
Small library helping you with basic stuff like getting metrics out of your code, thread naming, etc.
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of strf or a related project?
README
Strf
Version: 0.12.2
Branch | Travis | Appveyor | codecov.io |
---|---|---|---|
develop | |||
master |
Strf is a C++ formatting library that
- is fast ( see the
benchmarks
) - supports all character types (
char
,char8_t
,char16_t
,char32_t
andwchar_t
) - supports encoding conversion.
- can be used as header-only as well as static library.
Documentation
The introduction is what you should read first.
After that, the quick reference provides a nice overview of the library's capabilities. It is the document that people are supposed to visit more often.
At last, there are the header references, which aim to be a more accurate and complete.
<strf.hpp>
is the main header.<strf/outbuff.hpp>
is a lightweight and freestanding header that defines thebasic_outbuff
class template. All other headers includes this one.<strf/to_string.hpp>
adds support for writting tostd::basic_string
. It includes<strf.hpp>
.<strf/to_cfile.hpp>
adds support for writting toFILE*
. It includes<strf.hpp>
.<strf/to_streambuf.hpp>
adds support for writting tostd::basic_streambuf
. It includes<strf.hpp>
.
Acknowledgments
- This library uses Ryu to print floating-points. Thanks to Ulf Adams for creating such a great algorithm and providing a C implementation. It saved me a ton of work.
- Thanks to Eyal Rozenberg -- the author of cuda-kat library -- for enabling strf to work on CUDA.
Requirements
Strf demands C++14 features. In the current state, it is known to work with the following compilers:
- Clang 3.8 (with
--std=c++14
option ) - GCC 6 (with
--std=c++14
option ) - Visual Studio 2017 15.8