boost库学习随记五 Boost.Locale 之字符转换 gbk utf8 big5 string wstring等

std::string boost::locale::conv::between(char const * begin,  char const * end,  std::string const & to_encoding,  std::string const & from_en
摘要由CSDN通过智能技术生成


Boost.Locale是一个库,它提供高质量的本地化的设施在C + +的方式。它最初是设计的一部分CppCMS - C + +的Web框架的项目,然后促成了提升。

Boost.Locale提供强大的工具,跨平台的本地化软件开发 - 这会谈到用户在其语言的软件。

提供的功能

  • 正确的大小写转换,大小写和规范化。
  • 整理(排序),其中包括4 Unicode排序规则层面的支持。
  • 日期,时间,时区和日历操作,格式化和分析,包括对日历比公历其他透明的支持。
  • 边界分析字,词,句和换行符。
  • 数字格式,拼写和语法分析。
  • 货币格式和解析。
  • 强大的邮件格式(字符串翻译),包括多种格式,使用GNU目录的支持。
  • 字符集转换。
  • 8位字符透明支持集,如拉丁文
  • 支持的charwchar_t的
  • 对C + +0 x的实验性支持char16_tchar32_t字符串和数据流。

Boost.Locale提高和统一了标准库的API,它变得非常有用和方便开发跨平台的和“跨文化”软件的方式。

相关字符集转换函数功能摘要


std::string boost::locale::conv::between ( char const *  begin,
    char const *  end,
    std::string const &  to_encoding,
    std::string const &  from_encoding,
    method_type  how = default_method 
  )    

Convert a text in range [begin,end) to to_encoding from from_encoding

std::string boost::locale::conv::between ( char const *  text,
    std::string const &  to_encoding,
    std::string const &  from_encoding,
    method_type  how = default_method 
  )   [inline]

Convert a text to to_encoding from from_encoding

std::string boost::locale::conv::between ( std::string const &  text,
    std::string const &  to_encoding,
    std::string const &  from_encoding,
    method_type  how = default_method 
  )   [inline]

Convert a text to to_encoding from from_encoding

template<typename CharType >
std::string boost::locale::conv::from_utf ( CharType const *  begin,
    CharType const *  end,
    std::string const & 
  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值