`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.
* 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?
Strf is a C++ formatting library that
- is fast ( see the
- supports all character types (
- supports encoding conversion.
- can be used as header-only as well as static library.
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 the
basic_outbuffclass template. All other headers includes this one.
<strf/to_string.hpp>adds support for writting to
std::basic_string. It includes
<strf/to_cfile.hpp>adds support for writting to
FILE*. It includes
<strf/to_streambuf.hpp>adds support for writting to
std::basic_streambuf. It includes
- 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.
Strf demands C++14 features. In the current state, it is known to work with the following compilers:
- Clang 3.8 (with
- GCC 6 (with
- Visual Studio 2017 15.8