What are the tradeoffs between boost::locale and std::locale?

后端 未结 2 2012
忘掉有多难
忘掉有多难 2021-01-17 14:54

I am in the process of internationalizing a large legacy codebase in C++, and I am faced with a difficult decision: should I use boost::locale\'s or std c++ locales?

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-17 15:03

    Boost.Locale is based on std::locale framework but provides much more options in more linguistically correct way.

    Also if you want to use utf-8 on windows/MSVC, std::locale is no-go.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题