FastFormat

A flexible, efficient, C++ output/formatting library
Download

FastFormat Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Matthew Wilson
  • Publisher web site:

FastFormat Tags


FastFormat Description

A flexible, efficient, C++ output/formatting library FastFormat does not suffer from the common problems that plague standard and third-party libraries: lack of type-safety, lack of speed, lack of I18N/L10N support.Installing FastFormatThe distribution is in the form of a zip file, e.g. fastformat-0.2.1.zip which you should extract (recursively) to a location of your choice, e.g. ~/opensrc/fastformat/0.2, and we recommend that you define the FASTFORMAT_ROOT environment variable to be this directory.FastFormat depends on one other project, STLSoft, which is 100% header-only. If you wish to build the example and test programs included in the distribution using the makefiles supplied, you will need to have defined the STLSOFT environment variable to be the root directory of the STLSoft include files.FastFormat is written in standard C++, and should be compilable with any modern C/C++ compiler that provides an implementation of the C & C++ standard libraries. Here are some key features of "FastFormat": · Very high robustness, including 100% type-safety. It is more robust than: C's Streams, C++'s IOStreams, Boost.Format and Loki.SafeFormat. Indeed, with the FastFormat.Write API it is impossible to write defective client code! · Very high efficiency. It is faster than: C++'s IOStreams (by ~100-900%), Boost.Format (by ~400-1600%) and Loki.SafeFormat (by ~35-450%) · Infinite extensibility. You can extend it to work with any argument type, any output/destination type, and with any format type · I18N/L10N capabilities. The FastFormat.Format API is a replacement-based API (like the printf()-family, Boost.Format and Loki.SafeFormat), and supports the runtime specification of format strings which facilitates L10N · Simple syntax. There are no overloaded operators, no weird insertion operators/operations, and no need to prep your arguments. Just write simple, clear, transparent code, without sacrificing expressiveness for flexibility. · Atomic operation. It doesn't write out statement elements one at a time, like the IOStreams, so has no atomicity issues · Thread safety. Each statement operates independently from all others, and it works successfully in single and/or multithreaded scenarios · Highly portable. It will work with all good modern C++ compilers; it even works with Visual C++ 6! Requirements: · STLSoft What's New in This Release: · fixed defective assert when missing arguments are ignored · added scratch test program test.scratch.ignore_missing_arguments_scope · NOTE: bundles xTests 0.13.3 · NOTE: depends on STLSoft 1.9.85


FastFormat Related Software