Skip to content

inserting text into strings with placeholders (bit like printf or boost::format)

License

Notifications You must be signed in to change notification settings

roever/formatting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

formatting

A simple library to format values into strings with placeholders, a bit like printf or boost::format, but with greater emphasis on internationalisation and not the goal of actually formatting text.

  • placeholders are numbered
  • placeholders require no type information, this is all taken directly from the values to add
  • nearly as fast as printf (half as fast for simple strings) boost::format is only a tenth as fast as printf
  • I implemented only a basic form of alignment as proper formatting is quite complicated

documentation

Have a look at the example.cpp file for a detailed example with a lot of explanations. As there is not much more functionality there is no more documentation.

About

inserting text into strings with placeholders (bit like printf or boost::format)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages