资源简介
c++ xml处理 dom,sax
c++ xml处理 dom,sax
c++ xml处理 dom,sax
代码片段和文件信息
/*
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.
*/
#ifndef TIxml_USE_STL
#include “tinystr.h“
// 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 13546 2007-05-06 15:41 tinyxm
文件 3549 2007-05-06 15:41 tinyxm
文件 8119 2007-05-06 15:41 tinyxm
文件 15288 2007-05-06 15:41 tinyxm
文件 375 2007-05-06 15:41 tinyxm
文件 3723 2007-05-06 15:41 tinyxm
文件 15476 2007-05-06 15:41 tinyxm
文件 1445 2007-05-06 15:41 tinyxm
文件 19057 2007-05-06 15:41 tinyxm
文件 7531 2007-05-06 15:41 tinyxm
文件 467 2007-05-06 15:41 tinyxm
文件 20266 2007-05-06 15:41 tinyxm
文件 10633 2007-05-06 15:41 tinyxm
文件 503 2007-05-06 15:41 tinyxm
文件 23807 2007-05-06 15:41 tinyxm
文件 28678 2007-05-06 15:41 tinyxm
文件 480 2007-05-06 15:41 tinyxm
文件 23005 2007-05-06 15:41 tinyxm
文件 27523 2007-05-06 15:41 tinyxm
文件 468 2007-05-06 15:41 tinyxm
文件 5520 2007-05-06 15:41 tinyxm
文件 23561 2007-05-06 15:41 tinyxm
文件 18542 2007-05-06 15:41 tinyxm
文件 60201 2007-05-06 15:41 tinyxm
文件 1302 2007-05-06 15:41 tinyxm
文件 5342 2007-05-06 15:41 tinyxm
文件 14312 2007-05-06 15:41 tinyxm
文件 358 2007-05-06 15:41 tinyxm
文件 19478 2007-05-06 15:41 tinyxm
文件 10191 2007-05-06 15:41 tinyxm
............此处省略55个文件信息
- 上一篇:数据结构十字链表C++
- 下一篇:hmm算法库.rar
相关资源
- C++获取计算机的CPU ID,硬盘序列号等
- C++头文件转delphi工具 + 源码
- 国际象棋的qt源代码
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- mfc 调用redis
- FTP客户端源码(c++)
川公网安备 51152502000135号
评论
共有 条评论