将stl里的代码预处理后得到的代码贴出来,更容易读懂(我个人觉得),用到了bcb2010的一个预处理源码的功能。
std::u32string conversion to/from std::string and std::u16string
摘要:I need to convert between UTF-8, UTF-16 and UTF-32 for different API's/modules and since I know have the option to use C++11 am looking at the new str
阅读全文
posted @
2017-04-16 21:53
袁晓平
阅读(922)
推荐(0)
应用boost库serialize标准库里的map
摘要:需求,最近做ios程序,需要将用户密码和帐号保存到本地磁盘,而用用户不止一个,想到boost库里的serialization比较适合,用户就用标准库里的map来保存,也就是std::map<std::string, std::string>,代码如下:UserInfo.h://// UserInfo.h// app1//// Created by xp y on 12-8-23.// Copyright (c) 2012年 xp y. All rights reserved.//#ifndef __app1__UserInfo__#define __app1__UserInfo__
阅读全文
posted @
2012-08-23 21:45
袁晓平
阅读(1693)
推荐(0)