Warning, /include/clang/AST/CommentHTMLTagsProperties.inc is written in an unsupported language. File is not indexed.
0001 /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
0002 |* *|
0003 |* HTML tag properties *|
0004 |* *|
0005 |* Automatically generated file, do not edit! *|
0006 |* From: CommentHTMLTags.td *|
0007 |* *|
0008 \*===----------------------------------------------------------------------===*/
0009
0010 bool isHTMLEndTagOptional(StringRef Name) {
0011 switch (Name.size()) {
0012 default: break;
0013 case 1: // 1 string to match.
0014 if (Name[0] != 'p')
0015 break;
0016 return true; // "p"
0017 case 2: // 6 strings to match.
0018 switch (Name[0]) {
0019 default: break;
0020 case 'd': // 2 strings to match.
0021 switch (Name[1]) {
0022 default: break;
0023 case 'd': // 1 string to match.
0024 return true; // "dd"
0025 case 't': // 1 string to match.
0026 return true; // "dt"
0027 }
0028 break;
0029 case 'l': // 1 string to match.
0030 if (Name[1] != 'i')
0031 break;
0032 return true; // "li"
0033 case 't': // 3 strings to match.
0034 switch (Name[1]) {
0035 default: break;
0036 case 'd': // 1 string to match.
0037 return true; // "td"
0038 case 'h': // 1 string to match.
0039 return true; // "th"
0040 case 'r': // 1 string to match.
0041 return true; // "tr"
0042 }
0043 break;
0044 }
0045 break;
0046 case 5: // 3 strings to match.
0047 if (Name[0] != 't')
0048 break;
0049 switch (Name[1]) {
0050 default: break;
0051 case 'b': // 1 string to match.
0052 if (memcmp(Name.data()+2, "ody", 3) != 0)
0053 break;
0054 return true; // "tbody"
0055 case 'f': // 1 string to match.
0056 if (memcmp(Name.data()+2, "oot", 3) != 0)
0057 break;
0058 return true; // "tfoot"
0059 case 'h': // 1 string to match.
0060 if (memcmp(Name.data()+2, "ead", 3) != 0)
0061 break;
0062 return true; // "thead"
0063 }
0064 break;
0065 case 8: // 1 string to match.
0066 if (memcmp(Name.data()+0, "colgroup", 8) != 0)
0067 break;
0068 return true; // "colgroup"
0069 }
0070 return false;
0071 }
0072
0073 bool isHTMLEndTagForbidden(StringRef Name) {
0074 switch (Name.size()) {
0075 default: break;
0076 case 2: // 2 strings to match.
0077 switch (Name[0]) {
0078 default: break;
0079 case 'b': // 1 string to match.
0080 if (Name[1] != 'r')
0081 break;
0082 return true; // "br"
0083 case 'h': // 1 string to match.
0084 if (Name[1] != 'r')
0085 break;
0086 return true; // "hr"
0087 }
0088 break;
0089 case 3: // 2 strings to match.
0090 switch (Name[0]) {
0091 default: break;
0092 case 'c': // 1 string to match.
0093 if (memcmp(Name.data()+1, "ol", 2) != 0)
0094 break;
0095 return true; // "col"
0096 case 'i': // 1 string to match.
0097 if (memcmp(Name.data()+1, "mg", 2) != 0)
0098 break;
0099 return true; // "img"
0100 }
0101 break;
0102 }
0103 return false;
0104 }
0105