资源简介
html tidy c++库,封装了html tidy的c++库,可以建立网页DOM模型。

代码片段和文件信息
/* access.c -- carry out accessibility checks
Copyright University of Toronto
Portions (c) 1998-2009 (W3C) MIT ERCIM Keio University
See tidy.h for the copyright notice.
CVS Info :
$Author: arnaud02 $
$Date: 2009/03/25 22:04:35 $
$Revision: 1.42 $
*/
/*********************************************************************
* AccessibilityChecks
*
* Carries out processes for all accessibility checks. Traverses
* through all the content within the tree and evaluates the tags for
* accessibility.
*
* To perform the following checks ‘AccessibilityChecks‘ must be
* called AFTER the tree structure has been formed.
*
* If in the command prompt there is no specification of which
* accessibility priorities to check no accessibility checks will be
* performed. (ie. ‘1‘ for priority 1 ‘2‘ for priorities 1 and 2
* and ‘3‘) for priorities 1 2 and 3.)
*
* Copyright University of Toronto
* Programmed by: Mike Lam and Chris Ridpath
* Modifications by : Terry Teague (TRT)
*
* Reference document: http://www.w3.org/TR/WAI-WEBCONTENT/
*********************************************************************/
#include “tidy-int.h“
#if SUPPORT_ACCESSIBILITY_CHECKS
#include “access.h“
#include “message.h“
#include “tags.h“
#include “attrs.h“
#include “tmbstr.h“
/*
The accessibility checks to perform depending on user‘s desire.
1. priority 1
2. priority 1 & 2
3. priority 1 2 & 3
*/
/* List of possible image types */
static const ctmbstr imageExtensions[] =
{“.jpg“ “.gif“ “.tif“ “.pct“ “.pic“ “.iff“ “.dib“
“.tga“ “.pcx“ “.png“ “.jpeg“ “.tiff“ “.bmp“};
#define N_IMAGE_EXTS (sizeof(imageExtensions)/sizeof(ctmbstr))
/* List of possible sound file types */
static const ctmbstr soundExtensions[] =
{“.wav“ “.au“ “.aiff“ “.snd“ “.ra“ “.rm“};
static const int soundExtErrCodes[] =
{
AUDIO_MISSING_TEXT_WAV
AUDIO_MISSING_TEXT_AU
AUDIO_MISSING_TEXT_AIFF
AUDIO_MISSING_TEXT_SND
AUDIO_MISSING_TEXT_RA
AUDIO_MISSING_TEXT_RM
};
#define N_AUDIO_EXTS (sizeof(soundExtensions)/sizeof(ctmbstr))
/* List of possible media extensions */
static const ctmbstr mediaExtensions[] =
{“.mpg“ “.mov“ “.asx“ “.avi“ “.ivf“ “.m1v“ “.mmm“ “.mp2v“
“.mpa“ “.mpe“ “.mpeg“ “.ram“ “.smi“ “.smil“ “.swf“
“.wm“ “.wma“ “.wmv“};
#define N_MEDIA_EXTS (sizeof(mediaExtensions)/sizeof(ctmbstr))
/* List of possible frame sources */
static const ctmbstr frameExtensions[] =
{“.htm“ “.html“ “.shtm“ “.shtml“ “.cfm“ “.cfml“
“.asp“ “.cgi“ “.pl“ “.smil“};
#define N_frame_EXTS (sizeof(frameExtensions)/sizeof(ctmbstr))
/* List of possible colour values */
static const int colorValues[][3] =
{
{ 0 0 0}
{128128128}
{192192192}
{255255255}
{192 0 0}
{255 0 0}
{128 0128}
{255 0255}
{ 0128 0}
{ 0255 0}
{128128 0}
{255255 0}
{ 0 0128}
{ 0 0255}
{ 0128128}
{ 0255255}
};
#defin
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 88370 2009-06-29 23:19 htmltidy\Debug\access.obj
文件 9370 2009-06-29 23:19 htmltidy\Debug\alloc.obj
文件 29579 2009-06-29 23:19 htmltidy\Debug\attrask.obj
文件 28387 2009-06-29 23:19 htmltidy\Debug\attrdict.obj
文件 30538 2009-06-29 23:19 htmltidy\Debug\attrget.obj
文件 104964 2009-06-29 23:19 htmltidy\Debug\attrs.obj
文件 19492 2009-06-29 23:19 htmltidy\Debug\buffio.obj
文件 172042 2009-06-29 23:19 htmltidy\Debug\charsets.obj
文件 92188 2009-06-29 23:19 htmltidy\Debug\clean.obj
文件 96702 2009-06-29 23:19 htmltidy\Debug\config.obj
文件 47929 2009-06-29 23:19 htmltidy\Debug\entities.obj
文件 7331 2009-06-29 23:19 htmltidy\Debug\fileio.obj
文件 2212 2009-06-29 23:19 htmltidy\Debug\iconvtc.obj
文件 14115 2009-06-29 23:19 htmltidy\Debug\istack.obj
文件 111699 2009-06-29 23:19 htmltidy\Debug\lexer.obj
文件 158638 2009-06-29 23:19 htmltidy\Debug\localize.obj
文件 19642 2009-06-29 23:19 htmltidy\Debug\mappedio.obj
文件 97194 2009-06-29 23:19 htmltidy\Debug\parser.obj
文件 80940 2009-06-29 23:19 htmltidy\Debug\pprint.obj
文件 48019 2009-06-29 23:19 htmltidy\Debug\streamio.obj
文件 51385 2009-06-29 23:19 htmltidy\Debug\tagask.obj
文件 72321 2009-06-29 23:19 htmltidy\Debug\tags.obj
文件 806968 2009-06-29 23:19 htmltidy\Debug\tidydll.dll
文件 39868 2009-06-29 23:19 htmltidy\Debug\tidydll.exp
文件 939872 2009-06-29 23:19 htmltidy\Debug\tidydll.ilk
文件 67588 2009-06-29 23:19 htmltidy\Debug\tidydll.lib
文件 310180 2009-06-29 23:19 htmltidy\Debug\tidydll.pch
文件 1328128 2009-06-29 23:19 htmltidy\Debug\tidydll.pdb
文件 39873 2009-07-02 14:03 htmltidy\Debug\tidydlld.exp
文件 67918 2009-07-02 14:03 htmltidy\Debug\tidydlld.lib
............此处省略143个文件信息
相关资源
- C++获取计算机的CPU ID,硬盘序列号等
- C++头文件转delphi工具 + 源码
- 国际象棋的qt源代码
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- C语言代码高亮html输出工具
- 利用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
评论
共有 条评论