Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsHTMLTags.cpp File Reference
#include "nsHTMLTags.h"
#include "nsCRT.h"
#include "nsReadableUtils.h"
#include "plhash.h"
#include "nsString.h"
#include "nsStaticAtom.h"
#include "nsHTMLTagList.h"

Go to the source code of this file.

Defines

#define HTML_TAG(_tag, _classname)   sHTMLTagUnicodeName_##_tag,
#define HTML_OTHER(_tag)
#define HTML_TAG(_tag, _classname)   { #_tag, &kTagAtomTable[eHTMLTag_##_tag - 1] },
#define NS_HTMLTAG_NAME_MAX_LENGTH   10

Functions

 HTMLTagsHashCodeUCPtr (const void *key)
 HTMLTagsKeyCompareUCPtr (const void *key1, const void *key2)

Variables

static const PRUnichar sHTMLTagUnicodeName_a []
static const PRUnichar sHTMLTagUnicodeName_abbr []
static const PRUnichar sHTMLTagUnicodeName_acronym []
static const PRUnichar sHTMLTagUnicodeName_address []
static const PRUnichar sHTMLTagUnicodeName_applet []
static const PRUnichar sHTMLTagUnicodeName_area []
static const PRUnichar sHTMLTagUnicodeName_b []
static const PRUnichar sHTMLTagUnicodeName_base []
static const PRUnichar sHTMLTagUnicodeName_basefont []
static const PRUnichar sHTMLTagUnicodeName_bdo []
static const PRUnichar sHTMLTagUnicodeName_bgsound []
static const PRUnichar sHTMLTagUnicodeName_big []
static const PRUnichar sHTMLTagUnicodeName_blink []
static const PRUnichar sHTMLTagUnicodeName_blockquote []
static const PRUnichar sHTMLTagUnicodeName_body []
static const PRUnichar sHTMLTagUnicodeName_br []
static const PRUnichar sHTMLTagUnicodeName_button []
static const PRUnichar sHTMLTagUnicodeName_canvas []
static const PRUnichar sHTMLTagUnicodeName_caption []
static const PRUnichar sHTMLTagUnicodeName_center []
static const PRUnichar sHTMLTagUnicodeName_cite []
static const PRUnichar sHTMLTagUnicodeName_code []
static const PRUnichar sHTMLTagUnicodeName_col []
static const PRUnichar sHTMLTagUnicodeName_colgroup []
static const PRUnichar sHTMLTagUnicodeName_counter []
static const PRUnichar sHTMLTagUnicodeName_dd []
static const PRUnichar sHTMLTagUnicodeName_del []
static const PRUnichar sHTMLTagUnicodeName_dfn []
static const PRUnichar sHTMLTagUnicodeName_dir []
static const PRUnichar sHTMLTagUnicodeName_div []
static const PRUnichar sHTMLTagUnicodeName_dl []
static const PRUnichar sHTMLTagUnicodeName_dt []
static const PRUnichar sHTMLTagUnicodeName_em []
static const PRUnichar sHTMLTagUnicodeName_embed []
static const PRUnichar sHTMLTagUnicodeName_fieldset []
static const PRUnichar sHTMLTagUnicodeName_font []
static const PRUnichar sHTMLTagUnicodeName_form []
static const PRUnichar sHTMLTagUnicodeName_frame []
static const PRUnichar sHTMLTagUnicodeName_frameset []
static const PRUnichar sHTMLTagUnicodeName_h1 []
static const PRUnichar sHTMLTagUnicodeName_h2 []
static const PRUnichar sHTMLTagUnicodeName_h3 []
static const PRUnichar sHTMLTagUnicodeName_h4 []
static const PRUnichar sHTMLTagUnicodeName_h5 []
static const PRUnichar sHTMLTagUnicodeName_h6 []
static const PRUnichar sHTMLTagUnicodeName_head []
static const PRUnichar sHTMLTagUnicodeName_hr []
static const PRUnichar sHTMLTagUnicodeName_html []
static const PRUnichar sHTMLTagUnicodeName_i []
static const PRUnichar sHTMLTagUnicodeName_iframe []
static const PRUnichar sHTMLTagUnicodeName_image []
static const PRUnichar sHTMLTagUnicodeName_img []
static const PRUnichar sHTMLTagUnicodeName_input []
static const PRUnichar sHTMLTagUnicodeName_ins []
static const PRUnichar sHTMLTagUnicodeName_isindex []
static const PRUnichar sHTMLTagUnicodeName_kbd []
static const PRUnichar sHTMLTagUnicodeName_keygen []
static const PRUnichar sHTMLTagUnicodeName_label []
static const PRUnichar sHTMLTagUnicodeName_legend []
static const PRUnichar sHTMLTagUnicodeName_li []
static const PRUnichar sHTMLTagUnicodeName_link []
static const PRUnichar sHTMLTagUnicodeName_listing []
static const PRUnichar sHTMLTagUnicodeName_map []
static const PRUnichar sHTMLTagUnicodeName_marquee []
static const PRUnichar sHTMLTagUnicodeName_menu []
static const PRUnichar sHTMLTagUnicodeName_meta []
static const PRUnichar sHTMLTagUnicodeName_multicol []
static const PRUnichar sHTMLTagUnicodeName_nobr []
static const PRUnichar sHTMLTagUnicodeName_noembed []
static const PRUnichar sHTMLTagUnicodeName_noframes []
static const PRUnichar sHTMLTagUnicodeName_noscript []
static const PRUnichar sHTMLTagUnicodeName_object []
static const PRUnichar sHTMLTagUnicodeName_ol []
static const PRUnichar sHTMLTagUnicodeName_optgroup []
static const PRUnichar sHTMLTagUnicodeName_option []
static const PRUnichar sHTMLTagUnicodeName_p []
static const PRUnichar sHTMLTagUnicodeName_param []
static const PRUnichar sHTMLTagUnicodeName_plaintext []
static const PRUnichar sHTMLTagUnicodeName_pre []
static const PRUnichar sHTMLTagUnicodeName_q []
static const PRUnichar sHTMLTagUnicodeName_s []
static const PRUnichar sHTMLTagUnicodeName_samp []
static const PRUnichar sHTMLTagUnicodeName_script []
static const PRUnichar sHTMLTagUnicodeName_select []
static const PRUnichar sHTMLTagUnicodeName_server []
static const PRUnichar sHTMLTagUnicodeName_small []
static const PRUnichar sHTMLTagUnicodeName_sound []
static const PRUnichar sHTMLTagUnicodeName_spacer []
static const PRUnichar sHTMLTagUnicodeName_span []
static const PRUnichar sHTMLTagUnicodeName_strike []
static const PRUnichar sHTMLTagUnicodeName_strong []
static const PRUnichar sHTMLTagUnicodeName_style []
static const PRUnichar sHTMLTagUnicodeName_sub []
static const PRUnichar sHTMLTagUnicodeName_sup []
static const PRUnichar sHTMLTagUnicodeName_table []
static const PRUnichar sHTMLTagUnicodeName_tbody []
static const PRUnichar sHTMLTagUnicodeName_td []
static const PRUnichar sHTMLTagUnicodeName_textarea []
static const PRUnichar sHTMLTagUnicodeName_tfoot []
static const PRUnichar sHTMLTagUnicodeName_th []
static const PRUnichar sHTMLTagUnicodeName_thead []
static const PRUnichar sHTMLTagUnicodeName_title []
static const PRUnichar sHTMLTagUnicodeName_tr []
static const PRUnichar sHTMLTagUnicodeName_tt []
static const PRUnichar sHTMLTagUnicodeName_u []
static const PRUnichar sHTMLTagUnicodeName_ul []
static const PRUnichar sHTMLTagUnicodeName_var []
static const PRUnichar sHTMLTagUnicodeName_wbr []
static const PRUnichar sHTMLTagUnicodeName_xmp []
static const PRUnichar *const kTagUnicodeTable []
static nsIAtomkTagAtomTable [eHTMLTag_userdefined-1]
static const nsStaticAtom kTagAtoms_info []
static PRInt32 gTableRefCount
static PLHashTablegTagTable
static PRUint32 sMaxTagNameLength

Define Documentation

#define HTML_OTHER (   _tag)

Definition at line 269 of file nsHTMLTags.cpp.

#define HTML_TAG (   _tag,
  _classname 
)    sHTMLTagUnicodeName_##_tag,

Definition at line 279 of file nsHTMLTags.cpp.

#define HTML_TAG (   _tag,
  _classname 
)    { #_tag, &kTagAtomTable[eHTMLTag_##_tag - 1] },

Definition at line 279 of file nsHTMLTags.cpp.

Definition at line 309 of file nsHTMLTags.cpp.


Function Documentation

Definition at line 291 of file nsHTMLTags.cpp.

{
  const PRUnichar *str = (const PRUnichar *)key;

  return nsCRT::HashCode(str);
}

Here is the caller graph for this function:

HTMLTagsKeyCompareUCPtr ( const void key1,
const void key2 
)

Definition at line 299 of file nsHTMLTags.cpp.

{
  const PRUnichar *str1 = (const PRUnichar *)key1;
  const PRUnichar *str2 = (const PRUnichar *)key2;

  return nsCRT::strcmp(str1, str2) == 0;
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 286 of file nsHTMLTags.cpp.

Definition at line 287 of file nsHTMLTags.cpp.

Initial value:
 {

}

Definition at line 280 of file nsHTMLTags.cpp.

Definition at line 276 of file nsHTMLTags.cpp.

Initial value:
 {

}

Definition at line 270 of file nsHTMLTags.cpp.

Initial value:
  {'a', '\0'}

Definition at line 48 of file nsHTMLTags.cpp.

Initial value:
  {'a', 'b', 'b', 'r', '\0'}

Definition at line 50 of file nsHTMLTags.cpp.

Initial value:
  {'a', 'c', 'r', 'o', 'n', 'y', 'm', '\0'}

Definition at line 52 of file nsHTMLTags.cpp.

Initial value:
  {'a', 'd', 'd', 'r', 'e', 's', 's', '\0'}

Definition at line 54 of file nsHTMLTags.cpp.

Initial value:
  {'a', 'p', 'p', 'l', 'e', 't', '\0'}

Definition at line 56 of file nsHTMLTags.cpp.

Initial value:
  {'a', 'r', 'e', 'a', '\0'}

Definition at line 58 of file nsHTMLTags.cpp.

Initial value:
  {'b', '\0'}

Definition at line 60 of file nsHTMLTags.cpp.

Initial value:
  {'b', 'a', 's', 'e', '\0'}

Definition at line 62 of file nsHTMLTags.cpp.

Initial value:
  {'b', 'a', 's', 'e', 'f', 'o', 'n', 't', '\0'}

Definition at line 64 of file nsHTMLTags.cpp.

Initial value:
  {'b', 'd', 'o', '\0'}

Definition at line 66 of file nsHTMLTags.cpp.

Initial value:
  {'b', 'g', 's', 'o', 'u', 'n', 'd', '\0'}

Definition at line 68 of file nsHTMLTags.cpp.

Initial value:
  {'b', 'i', 'g', '\0'}

Definition at line 70 of file nsHTMLTags.cpp.

Initial value:
  {'b', 'l', 'i', 'n', 'k', '\0'}

Definition at line 72 of file nsHTMLTags.cpp.

Initial value:
  {'b', 'l', 'o', 'c', 'k', 'q', 'u', 'o', 't', 'e', '\0'}

Definition at line 74 of file nsHTMLTags.cpp.

Initial value:
  {'b', 'o', 'd', 'y', '\0'}

Definition at line 76 of file nsHTMLTags.cpp.

Initial value:
  {'b', 'r', '\0'}

Definition at line 78 of file nsHTMLTags.cpp.

Initial value:
  {'b', 'u', 't', 't', 'o', 'n', '\0'}

Definition at line 80 of file nsHTMLTags.cpp.

Initial value:
  {'c', 'a', 'n', 'v', 'a', 's', '\0'}

Definition at line 82 of file nsHTMLTags.cpp.

Initial value:
  {'c', 'a', 'p', 't', 'i', 'o', 'n', '\0'}

Definition at line 84 of file nsHTMLTags.cpp.

Initial value:
  {'c', 'e', 'n', 't', 'e', 'r', '\0'}

Definition at line 86 of file nsHTMLTags.cpp.

Initial value:
  {'c', 'i', 't', 'e', '\0'}

Definition at line 88 of file nsHTMLTags.cpp.

Initial value:
  {'c', 'o', 'd', 'e', '\0'}

Definition at line 90 of file nsHTMLTags.cpp.

Initial value:
  {'c', 'o', 'l', '\0'}

Definition at line 92 of file nsHTMLTags.cpp.

Initial value:
  {'c', 'o', 'l', 'g', 'r', 'o', 'u', 'p', '\0'}

Definition at line 94 of file nsHTMLTags.cpp.

Initial value:
  {'c', 'o', 'u', 'n', 't', 'e', 'r', '\0'}

Definition at line 96 of file nsHTMLTags.cpp.

Initial value:
  {'d', 'd', '\0'}

Definition at line 98 of file nsHTMLTags.cpp.

Initial value:
  {'d', 'e', 'l', '\0'}

Definition at line 100 of file nsHTMLTags.cpp.

Initial value:
  {'d', 'f', 'n', '\0'}

Definition at line 102 of file nsHTMLTags.cpp.

Initial value:
  {'d', 'i', 'r', '\0'}

Definition at line 104 of file nsHTMLTags.cpp.

Initial value:
  {'d', 'i', 'v', '\0'}

Definition at line 106 of file nsHTMLTags.cpp.

Initial value:
  {'d', 'l', '\0'}

Definition at line 108 of file nsHTMLTags.cpp.

Initial value:
  {'d', 't', '\0'}

Definition at line 110 of file nsHTMLTags.cpp.

Initial value:
  {'e', 'm', '\0'}

Definition at line 112 of file nsHTMLTags.cpp.

Initial value:
  {'e', 'm', 'b', 'e', 'd', '\0'}

Definition at line 114 of file nsHTMLTags.cpp.

Initial value:
  {'f', 'i', 'e', 'l', 'd', 's', 'e', 't', '\0'}

Definition at line 116 of file nsHTMLTags.cpp.

Initial value:
  {'f', 'o', 'n', 't', '\0'}

Definition at line 118 of file nsHTMLTags.cpp.

Initial value:
  {'f', 'o', 'r', 'm', '\0'}

Definition at line 120 of file nsHTMLTags.cpp.

Initial value:
  {'f', 'r', 'a', 'm', 'e', '\0'}

Definition at line 122 of file nsHTMLTags.cpp.

Initial value:
  {'f', 'r', 'a', 'm', 'e', 's', 'e', 't', '\0'}

Definition at line 124 of file nsHTMLTags.cpp.

Initial value:
  {'h', '1', '\0'}

Definition at line 126 of file nsHTMLTags.cpp.

Initial value:
  {'h', '2', '\0'}

Definition at line 128 of file nsHTMLTags.cpp.

Initial value:
  {'h', '3', '\0'}

Definition at line 130 of file nsHTMLTags.cpp.

Initial value:
  {'h', '4', '\0'}

Definition at line 132 of file nsHTMLTags.cpp.

Initial value:
  {'h', '5', '\0'}

Definition at line 134 of file nsHTMLTags.cpp.

Initial value:
  {'h', '6', '\0'}

Definition at line 136 of file nsHTMLTags.cpp.

Initial value:
  {'h', 'e', 'a', 'd', '\0'}

Definition at line 138 of file nsHTMLTags.cpp.

Initial value:
  {'h', 'r', '\0'}

Definition at line 140 of file nsHTMLTags.cpp.

Initial value:
  {'h', 't', 'm', 'l', '\0'}

Definition at line 142 of file nsHTMLTags.cpp.

Initial value:
  {'i', '\0'}

Definition at line 144 of file nsHTMLTags.cpp.

Initial value:
  {'i', 'f', 'r', 'a', 'm', 'e', '\0'}

Definition at line 146 of file nsHTMLTags.cpp.

Initial value:
  {'i', 'm', 'a', 'g', 'e', '\0'}

Definition at line 148 of file nsHTMLTags.cpp.

Initial value:
  {'i', 'm', 'g', '\0'}

Definition at line 150 of file nsHTMLTags.cpp.

Initial value:
  {'i', 'n', 'p', 'u', 't', '\0'}

Definition at line 152 of file nsHTMLTags.cpp.

Initial value:
  {'i', 'n', 's', '\0'}

Definition at line 154 of file nsHTMLTags.cpp.

Initial value:
  {'i', 's', 'i', 'n', 'd', 'e', 'x', '\0'}

Definition at line 156 of file nsHTMLTags.cpp.

Initial value:
  {'k', 'b', 'd', '\0'}

Definition at line 158 of file nsHTMLTags.cpp.

Initial value:
  {'k', 'e', 'y', 'g', 'e', 'n', '\0'}

Definition at line 160 of file nsHTMLTags.cpp.

Initial value:
  {'l', 'a', 'b', 'e', 'l', '\0'}

Definition at line 162 of file nsHTMLTags.cpp.

Initial value:
  {'l', 'e', 'g', 'e', 'n', 'd', '\0'}

Definition at line 164 of file nsHTMLTags.cpp.

Initial value:
  {'l', 'i', '\0'}

Definition at line 166 of file nsHTMLTags.cpp.

Initial value:
  {'l', 'i', 'n', 'k', '\0'}

Definition at line 168 of file nsHTMLTags.cpp.

Initial value:
  {'l', 'i', 's', 't', 'i', 'n', 'g', '\0'}

Definition at line 170 of file nsHTMLTags.cpp.

Initial value:
  {'m', 'a', 'p', '\0'}

Definition at line 172 of file nsHTMLTags.cpp.

Initial value:
  {'m', 'a', 'r', 'q', 'u', 'e', 'e', '\0'}

Definition at line 174 of file nsHTMLTags.cpp.

Initial value:
  {'m', 'e', 'n', 'u', '\0'}

Definition at line 176 of file nsHTMLTags.cpp.

Initial value:
  {'m', 'e', 't', 'a', '\0'}

Definition at line 178 of file nsHTMLTags.cpp.

Initial value:
  {'m', 'u', 'l', 't', 'i', 'c', 'o', 'l', '\0'}

Definition at line 180 of file nsHTMLTags.cpp.

Initial value:
  {'n', 'o', 'b', 'r', '\0'}

Definition at line 182 of file nsHTMLTags.cpp.

Initial value:
  {'n', 'o', 'e', 'm', 'b', 'e', 'd', '\0'}

Definition at line 184 of file nsHTMLTags.cpp.

Initial value:
  {'n', 'o', 'f', 'r', 'a', 'm', 'e', 's', '\0'}

Definition at line 186 of file nsHTMLTags.cpp.

Initial value:
  {'n', 'o', 's', 'c', 'r', 'i', 'p', 't', '\0'}

Definition at line 188 of file nsHTMLTags.cpp.

Initial value:
  {'o', 'b', 'j', 'e', 'c', 't', '\0'}

Definition at line 190 of file nsHTMLTags.cpp.

Initial value:
  {'o', 'l', '\0'}

Definition at line 192 of file nsHTMLTags.cpp.

Initial value:
  {'o', 'p', 't', 'g', 'r', 'o', 'u', 'p', '\0'}

Definition at line 194 of file nsHTMLTags.cpp.

Initial value:
  {'o', 'p', 't', 'i', 'o', 'n', '\0'}

Definition at line 196 of file nsHTMLTags.cpp.

Initial value:
  {'p', '\0'}

Definition at line 198 of file nsHTMLTags.cpp.

Initial value:
  {'p', 'a', 'r', 'a', 'm', '\0'}

Definition at line 200 of file nsHTMLTags.cpp.

Initial value:
  {'p', 'l', 'a', 'i', 'n', 't', 'e', 'x', 't', '\0'}

Definition at line 202 of file nsHTMLTags.cpp.

Initial value:
  {'p', 'r', 'e', '\0'}

Definition at line 204 of file nsHTMLTags.cpp.

Initial value:
  {'q', '\0'}

Definition at line 206 of file nsHTMLTags.cpp.

Initial value:
  {'s', '\0'}

Definition at line 208 of file nsHTMLTags.cpp.

Initial value:
  {'s', 'a', 'm', 'p', '\0'}

Definition at line 210 of file nsHTMLTags.cpp.

Initial value:
  {'s', 'c', 'r', 'i', 'p', 't', '\0'}

Definition at line 212 of file nsHTMLTags.cpp.

Initial value:
  {'s', 'e', 'l', 'e', 'c', 't', '\0'}

Definition at line 214 of file nsHTMLTags.cpp.

Initial value:
  {'s', 'e', 'r', 'v', 'e', 'r', '\0'}

Definition at line 216 of file nsHTMLTags.cpp.

Initial value:
  {'s', 'm', 'a', 'l', 'l', '\0'}

Definition at line 218 of file nsHTMLTags.cpp.

Initial value:
  {'s', 'o', 'u', 'n', 'd', '\0'}

Definition at line 220 of file nsHTMLTags.cpp.

Initial value:
  {'s', 'p', 'a', 'c', 'e', 'r', '\0'}

Definition at line 222 of file nsHTMLTags.cpp.

Initial value:
  {'s', 'p', 'a', 'n', '\0'}

Definition at line 224 of file nsHTMLTags.cpp.

Initial value:
  {'s', 't', 'r', 'i', 'k', 'e', '\0'}

Definition at line 226 of file nsHTMLTags.cpp.

Initial value:
  {'s', 't', 'r', 'o', 'n', 'g', '\0'}

Definition at line 228 of file nsHTMLTags.cpp.

Initial value:
  {'s', 't', 'y', 'l', 'e', '\0'}

Definition at line 230 of file nsHTMLTags.cpp.

Initial value:
  {'s', 'u', 'b', '\0'}

Definition at line 232 of file nsHTMLTags.cpp.

Initial value:
  {'s', 'u', 'p', '\0'}

Definition at line 234 of file nsHTMLTags.cpp.

Initial value:
  {'t', 'a', 'b', 'l', 'e', '\0'}

Definition at line 236 of file nsHTMLTags.cpp.

Initial value:
  {'t', 'b', 'o', 'd', 'y', '\0'}

Definition at line 238 of file nsHTMLTags.cpp.

Initial value:
  {'t', 'd', '\0'}

Definition at line 240 of file nsHTMLTags.cpp.

Initial value:
  {'t', 'e', 'x', 't', 'a', 'r', 'e', 'a', '\0'}

Definition at line 242 of file nsHTMLTags.cpp.

Initial value:
  {'t', 'f', 'o', 'o', 't', '\0'}

Definition at line 244 of file nsHTMLTags.cpp.

Initial value:
  {'t', 'h', '\0'}

Definition at line 246 of file nsHTMLTags.cpp.

Initial value:
  {'t', 'h', 'e', 'a', 'd', '\0'}

Definition at line 248 of file nsHTMLTags.cpp.

Initial value:
  {'t', 'i', 't', 'l', 'e', '\0'}

Definition at line 250 of file nsHTMLTags.cpp.

Initial value:
  {'t', 'r', '\0'}

Definition at line 252 of file nsHTMLTags.cpp.

Initial value:
  {'t', 't', '\0'}

Definition at line 254 of file nsHTMLTags.cpp.

Initial value:
  {'u', '\0'}

Definition at line 256 of file nsHTMLTags.cpp.

Initial value:
  {'u', 'l', '\0'}

Definition at line 258 of file nsHTMLTags.cpp.

Initial value:
  {'v', 'a', 'r', '\0'}

Definition at line 260 of file nsHTMLTags.cpp.

Initial value:
  {'w', 'b', 'r', '\0'}

Definition at line 262 of file nsHTMLTags.cpp.

Initial value:
  {'x', 'm', 'p', '\0'}

Definition at line 264 of file nsHTMLTags.cpp.

Definition at line 308 of file nsHTMLTags.cpp.