libxml2常用函数集锦之三
来源:互联网 发布:知乎白云先生最新文章 编辑:程序博客网 时间:2024/05/16 12:45
libxml自定义了一个字符类型xmlChar,其本质是 unsigned char.
另外,libxml提供了一个宏来将char*转换成xmlChar*, 名字很有趣,叫 BAD_CAST 它的本质其实是 unsigned char*.
为了方便对xmlChar类型字符串的操作,libxml提供了自己的函数,它们的定义于标准c函数库中的字符串函数很像.
xmlChar* xmlStrcat (xmlChar *cur, const xmlChar * add)
const xmlChar *xmlStrchr(const xmlChar * str, xmlChar val)
int xmlStrcmp (const xmlChar * str1, const xmlChar * str2)
int xmlStrlen (const xmlChar * str)
xmlChar *xmlStrncat (xmlChar * cur, const xmlChar * add, int len)
int xmlStrncmp (const xmlChar * str1, const xmlChar * str2, int len)
const xmlChar *xmlStrstr (const xmlChar * str, const xmlChar * val)
相信这些函数大家都看得眼熟,这里就不一一解释了.
更多函数大家可以参考
http://xmlsoft.org/html/libxml-xmlstring.html
- libxml2常用函数集锦之三
- libxml2常用函数集锦之三
- libxml2常用函数集锦之二
- libxml2常用函数集锦之二
- libxml2常用函数集锦
- libxml2常用函数集锦之一
- libxml2常用函数集锦之一
- libxml2常用函数集锦之一
- libxml2常用函数
- libxml2常用函数
- libxml2常用函数
- mysql之常用函数集锦
- libxml2 中常用函数总结
- libxml2 中常用函数总结 .
- Libxml2常用概述及常用函数
- C#常用函数集锦
- oracle常用函数集锦
- C#常用函数集锦
- Linux下搭建Telnet和Ftp配置
- rake abort! Rails mysql2 error: “rake aborted! Please install the mysql2 adapter…”解决方案
- windows消息机制
- [翻]Why call it Apps and not Oracle ERP ?
- 最大公约数 下
- libxml2常用函数集锦之三
- lucene 3.4 contrib/facet 切面搜索
- 数据库区分大小写,数据表区分大小写
- 优化网站性能的14条准则
- IEEE 802.11 saturated and non-saturated
- 手机停机照样可以免费无限量上网
- 将数据转换成JSON
- android ndk 调用第三方so
- jQuery基础教程之强大的选择器(过滤选择器-基本过滤选择器)