资源简介
最完整的tinyxml库文件 包括cpp,lib,test,头文件

代码片段和文件信息
/*
www.sourceforge.net/projects/tinyxml
Original file by Yves Berquin.
This software is provided ‘as-is‘ without any express or implied
warranty. In no event will the authors be held liable for any
damages arising from the use of this software.
Permission is granted to anyone to use this software for any
purpose including commercial applications and to alter it and
redistribute it freely subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must
not claim that you wrote the original software. If you use this
software in a product an acknowledgment in the product documentation
would be appreciated but is not required.
2. Altered source versions must be plainly marked as such and
must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
*/
/*
* THIS FILE WAS ALTERED BY Tyge L鴙set 7. April 2005.
*/
#include “stdafx.h“
#include “tinystr.h“
#ifndef TIxml_USE_STL
// Error value for find primitive
const TixmlString::size_type TixmlString::npos = static_cast< TixmlString::size_type >(-1);
// Null rep.
TixmlString::Rep TixmlString::nullrep_ = { 0 0 ‘\0‘ };
void TixmlString::reserve (size_type cap)
{
if (cap > capacity())
{
TixmlString tmp;
tmp.init(length() cap);
memcpy(tmp.start() data() length());
swap(tmp);
}
}
TixmlString& TixmlString::assign(const char* str size_type len)
{
size_type cap = capacity();
if (len > cap || cap > 3*(len + 8))
{
TixmlString tmp;
tmp.init(len);
memcpy(tmp.start() str len);
swap(tmp);
}
else
{
memmove(start() str len);
set_size(len);
}
return *this;
}
TixmlString& TixmlString::append(const char* str size_type len)
{
size_type newsize = length() + len;
if (newsize > capacity())
{
reserve (newsize + capacity());
}
memmove(finish() str len);
set_size(newsize);
return *this;
}
TixmlString operator + (const TixmlString & a const TixmlString & b)
{
TixmlString tmp;
tmp.reserve(a.length() + b.length());
tmp += a;
tmp += b;
return tmp;
}
TixmlString operator + (const TixmlString & a const char* b)
{
TixmlString tmp;
TixmlString::size_type b_len = static_castlString::size_type>( strlen(b) );
tmp.reserve(a.length() + b_len);
tmp += a;
tmp.append(b b_len);
return tmp;
}
TixmlString operator + (const char* a const TixmlString & b)
{
TixmlString tmp;
TixmlString::size_type a_len = static_castlString::size_type>( strlen(a) );
tmp.reserve(a_len + b.length());
tmp.append(a a_len);
tmp += b;
return tmp;
}
#endif // TIxml_USE_STL
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2708 2009-10-28 10:09 TINYxm
文件 4813 2009-10-27 12:20 TINYxm
文件 1413 2009-10-28 10:29 TINYxm
文件 403 2009-10-28 10:07 TINYxm
文件 468 2009-10-28 10:07 TINYxm
文件 385 2009-10-28 10:09 TINYxm
文件 56715 2009-10-28 10:09 TINYxm
文件 1048576 2009-10-28 10:07 TINYxm
文件 40670 2009-10-28 10:09 TINYxm
文件 66 2009-10-28 10:09 TINYxm
文件 10593 2009-10-28 10:07 TINYxm
文件 191488 2009-10-28 10:09 TINYxm
文件 274432 2009-10-28 10:09 TINYxm
目录 0 2009-10-28 10:09 TINYxm
文件 289 2009-10-27 09:59 TINYxm
文件 1270 2009-10-24 16:06 TINYxm
文件 288 2009-10-24 16:06 TINYxm
文件 376 2009-10-24 16:06 TINYxm
文件 420 2009-10-23 11:27 TINYxm
文件 8764 2006-04-19 12:51 TINYxm
文件 56020 2009-10-27 11:58 TINYxm
文件 37467 2006-09-19 19:04 TINYxm
目录 0 2009-10-28 10:09 TINYxm
文件 1649664 2009-10-28 10:29 TINYxm
文件 868 2009-10-24 16:06 TINYxm
..A..H. 27648 2009-10-28 10:29 TINYxm
文件 237568 2009-10-28 10:09 TINYxm
文件 682568 2009-10-28 10:09 TINYxm
文件 830464 2009-10-28 10:09 TINYxm
目录 0 2009-10-28 10:09 TINYxm
............此处省略18个文件信息
相关资源
-
开源tinyxm
l - 开源图像库leptonica头文件和库文件
- QT生成DLL库文件的方法和使用方法详解
- DOS下的TCP-IP协议库文件原代码.rar
- dll文件全集(473个).rar
- 最新整理 盘古分词 dct词库文件 7205
- STC库文件 STC.CDB
- ps2手柄arduino库文件
- hidapi进行USB通讯必备的库文件和头文
- DHT11 21 22库文件
- PrintShare破解版+打印机驱动、PDF库文件
- HMC5883L罗盘指南针模块库文件及中英文
- simsun.ttf、simheittf.ttf 字体库文件
- TMS320F28335系列头文件、库文件、cmd等
- F2833x TI官方库文件
- caffe图片资源转换数据库文件
- 基于web的二手交易系统的设计与实现
- 200SMART库文件
- 嘉立创元器件标准库文件
- GDI+头文件以及库文件
- 兼容TC1782库文件
- Arduino所有库.zip
- 2020版fortify的规则库文件
- 高校人事管理系统含源代码及设计文
- windows安装需要的Hadoop库文件
- Struts2 (登陆+增删改查+数据库文件
- vfp6运行库文件
- vue-2.5.17 js 源码库文件等
- CTK编译库文件
- 学生成绩管理系统项目源代码 和 数据
评论
共有 条评论