?? htatom.h
字號:
/* W3C Sample Code Library libwww Atom Class! The Atom Class!*//*** (c) COPYRIGHT MIT 1995.** Please first read the full copyright statement in the file COPYRIGH.*//*The Atom Class defines strings which are given representativepointer values so that they can be stored more efficiently, and comparisonsfor equality done more efficiently. The list of atoms is storedin a hash table, so when asking for a new atom you might in fact get back anexisting one.Note: There are a whole bunch ofMIME-types defined asatoms, so please use them!This module is implemented by HTAtom.c, and it isa part of the W3C Sample CodeLibrary.*/#ifndef HTATOM_H#define HTATOM_H#include "HTList.h"typedef struct _HTAtom HTAtom;struct _HTAtom { HTAtom * next; char * name;}; /* struct _HTAtom *//*( Get an Atom)This function returns a representative value (an atom) suchthat it will always (within one run of the program) return the same valuefor the same given string. The former is case sensitive, the latter is caseinsensitive.*/extern HTAtom * HTAtom_for (const char * string);extern HTAtom * HTAtom_caseFor (const char * string);/*( Get Content of an Atom)*/#define HTAtom_name(a) ((a) ? (a)->name : NULL)/*This macro returns the string pointed to by the atom.( Search For Atoms)Returns a list of atoms which matches the template given. Itis especially made for MIME-types so that for example a template liketext<slash><star> returns a list of all MIME-typesof type text.*/extern HTList * HTAtom_templateMatches (const char * templ);/*( Cleanup Memory)In order to cleanup memory, call this function. This is done automaticlyfrom the HTLibTerminate function.*/extern void HTAtom_deleteAll (void);#endif/* @(#) $Id: HTAtom.html,v 2.27 2000/07/04 15:23:24 kahan Exp $*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -