資源簡介
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個文件信息
評論
共有 條評論