Changeset 749 for trunk/gsdl/src/recpt/formattools.cpp
- Timestamp:
- 1999-10-31T11:23:11+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/formattools.cpp
r670 r749 28 28 /* 29 29 $Log$ 30 Revision 1.14 1999/10/30 22:23:11 sjboddie 31 moved table functions from browsetools 32 30 33 Revision 1.13 1999/10/14 23:01:24 sjboddie 31 34 changes for new browsing support … … 93 96 parentcommand = pNone; 94 97 parentoptions.clear(); 95 } ;98 } 96 99 97 100 void decision_t::clear() { 98 101 command = dMeta; 99 102 meta.clear(); 100 } ;103 } 101 104 102 105 void format_t::clear() { … … 109 112 elseptr = NULL; 110 113 orptr = NULL; 111 } ;114 } 112 115 113 116 void formatinfo_t::clear() { … … 126 129 } 127 130 131 // simply checks to see if formatstring begins with a <td> tag 132 bool is_table_content (const text_t &formatstring) { 133 text_t::const_iterator here = formatstring.begin(); 134 text_t::const_iterator end = formatstring.end(); 135 136 while (here != end) { 137 if (*here != ' ') { 138 if (*here == '<') { 139 if ((*(here+1) == 't' || *(here+1) == 'T') && 140 (*(here+2) == 'd' || *(here+2) == 'D') && 141 (*(here+3) == '>' || *(here+3) == ' ')) 142 return true; 143 } else return false; 144 } 145 here ++; 146 } 147 return false; 148 } 149 150 bool is_table_content (const format_t *formatlistptr) { 151 152 if (formatlistptr == NULL) return false; 153 154 if (formatlistptr->command == comText) 155 return is_table_content (formatlistptr->text); 156 157 return false; 158 } 159 128 160 // returns false if key isn't in formatstringmap 129 161 bool get_formatstring (const text_t &key, const text_tmap &formatstringmap, … … 136 168 return true; 137 169 } 170 138 171 // tries to find "key1key2" then "key1" then "key2" 139 172 bool get_formatstring (const text_t &key1, const text_t &key2,
Note:
See TracChangeset
for help on using the changeset viewer.