测试boost::algorithm::replace_all 方法
来源:互联网 发布:sql降序查询 编辑:程序博客网 时间:2024/06/07 03:13
测试boost::algorithm::replace_all 方法
#include <iostream>#include <map>#include <string>#include "boost/algorithm/string.hpp"using namespace std;map<string, int> emoji_map;static inline void replaceEmojiUnicodeToChar(std::string& str){ map<string, string> emoji_map; emoji_map.insert(map<string, string>::value_type("zzz", "500")); for(std::map<std::string, std::string>::iterator it = emoji_map.begin() ; it != emoji_map.end(); it++) { boost::algorithm::replace_all(str, it->first, it->second); }}int main(int argc, char *argv[]){ std::string str1 = "zzzss"; replaceEmojiUnicodeToChar(str1); cout<<"str1 === "<<str1<<endl;}
0 0
- 测试boost::algorithm::replace_all 方法
- boost::algorithm
- boost::algorithm
- boost::algorithm学习
- [zhuan]boost::algorithm学习
- boost::algorithm学习
- boost::algorithm学习
- boost::algorithm学习
- boost::algorithm简介
- boost::algorithm学习
- boost::algorithm学习
- boost::algorithm 字符串处理
- boost之algorithm/string
- boost.algorithm boost.assign boost.lambda
- 【Boost】boost::algorithm的几个简单例子
- boost::algorithm(字符串算法库)
- [boost]algorithm-erase_all_regex , split_regrex & regex_match
- C++ boost库无锁队列多线程并行测试与编译方法
- Android 开发环境下载地址 -- 百度网盘 adt-bundle android-studio sdk adt 下载
- SSL P1408【树】哈夫曼树(二)
- LINUX
- Oracle 的dataguard配置
- AJAX之XMLHttpRequest对象
- 测试boost::algorithm::replace_all 方法
- 趣味分析系列 | 文胸品牌知多少(一)
- 基础/Java基础/(3)面向对象的特征有哪些方面?
- hibernate和spring mongo对比
- Linux 使用wget 命令下载JDK的方法
- Android手机自定义一个文件并写入内容
- 《JAVA与模式》之单例模式
- java前端的重要框架---windowbuilder介绍
- 学习记录——数据链路层(2)