C++ string template library

后端 未结 10 1120
清酒与你
清酒与你 2020-12-16 01:23

I want simple C++ string based template library to replace strings at runtime.

For example, I will use

string template = \"My name is {{name}}\";
         


        
10条回答
  •  旧时难觅i
    2020-12-16 01:55

    It might be overkill, but you can also take a look at boost::spirit, and more specifically, the 'karma' part which is a text generator.

提交回复
热议问题