Changeset 9620 for trunk/gsdl/src/recpt/formattools.cpp
- Timestamp:
- 2005-04-11T11:32:00+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/formattools.cpp
r9401 r9620 110 110 } else return false; 111 111 } 112 here ++;112 ++here; 113 113 } 114 114 return false; … … 373 373 text_t::const_iterator end = link.end(); 374 374 375 here ++;375 ++here; 376 376 while (here != end) { 377 377 if (*here == '"') break; 378 378 href.push_back(*here); 379 here ++;379 ++here; 380 380 } 381 381 … … 436 436 text_tarray::const_iterator doc_data = relationdata.begin(); 437 437 text_t document_collection = *doc_data; 438 doc_data++; //increment to get next item in array (oid)438 ++doc_data; //increment to get next item in array (oid) 439 439 text_t document_OID = *doc_data; 440 440 … … 461 461 relation += " (" + document_collection + ")<br>"; 462 462 463 currDoc++;463 ++currDoc; 464 464 } 465 465 } … … 495 495 else if (inquotes) op.push_back (*here); 496 496 else com.push_back (*here); 497 here ++;497 ++here; 498 498 } 499 499 … … 530 530 else if (inquotes) op.push_back (*here); 531 531 else com.push_back (*here); 532 here ++;532 ++here; 533 533 } 534 534 … … 565 565 else if (inquotes) op.push_back (*here); 566 566 else com.push_back (*here); 567 here ++;567 ++here; 568 568 } 569 569 … … 694 694 695 695 if (*here == '\\') { 696 here ++;696 ++here; 697 697 if (here != end) text.push_back (*here); 698 698 … … 722 722 } 723 723 text_t meta; 724 here ++;724 ++here; 725 725 while (*here != ']') { 726 726 if (here == end) return false; 727 727 meta.push_back (*here); 728 here ++;728 ++here; 729 729 } 730 730 parse_meta (meta, formatlistptr, metadata, getParents); … … 735 735 text.push_back (*here); 736 736 737 if (here != end) here ++;737 if (here != end) ++here; 738 738 } 739 739 if (!text.empty()) { … … 757 757 here = findchar (it, end, '{'); 758 758 if (here == end) return false; 759 else here ++;759 else ++here; 760 760 761 761 if (com == "If" || com == "if" || com == "IF") formatlistptr->command = comIf; … … 838 838 text_t meta = substr (beginbracket+1, endbracket); 839 839 parse_meta (meta, formatlistptr->decision.meta, metadata, getParents); 840 commacount ++;840 ++commacount; 841 841 text.clear(); 842 842 } … … 855 855 formatlistptr->decision.command = dText; 856 856 formatlistptr->decision.text = text; 857 commacount ++;857 ++commacount; 858 858 text.clear(); 859 859 } … … 916 916 { 917 917 if (*here == '}') break; 918 commacount ++;918 ++commacount; 919 919 } 920 920 } … … 923 923 } else text.push_back(*here); 924 924 925 if (here != end) here ++;925 if (here != end) ++here; 926 926 } 927 927 … … 950 950 const int end_i = metainfo.values.size()-1; 951 951 952 for (int i=start_i; i<=end_i; i++) {952 for (int i=start_i; i<=end_i; ++i) { 953 953 if (!first) tmp += meta.functionoptions; 954 954 … … 1012 1012 else tmp += *here; 1013 1013 first = false; 1014 here ++;1014 ++here; 1015 1015 } 1016 1016 if (meta.metacommand & mCgiSafe) return cgi_safe (tmp); … … 1146 1146 break; 1147 1147 } 1148 pos++;1148 ++pos; 1149 1149 } 1150 1150 … … 1159 1159 break; 1160 1160 } 1161 pos--;1161 --pos; 1162 1162 } 1163 1163 … … 1172 1172 break; 1173 1173 } 1174 pos--;1174 --pos; 1175 1175 } 1176 1176 … … 1188 1188 break; 1189 1189 } 1190 pos--;1190 --pos; 1191 1191 } 1192 1192 … … 1200 1200 extracted_str.clear(); 1201 1201 1202 for (int pos=start_pos; pos<=end_pos; pos++) {1202 for (int pos=start_pos; pos<=end_pos; ++pos) { 1203 1203 extracted_str.push_back(outstring[pos]); 1204 1204 } … … 1277 1277 1278 1278 if ((potential_quote == '\'') || (potential_quote == '\"')) { 1279 rhs_end--;1279 --rhs_end; 1280 1280 rhs_start = rscan_for(outstring,rhs_end-1,potential_quote) +1; 1281 1281 quoted = true; … … 1431 1431 while (here != end) { 1432 1432 if (*here == '[') return true; 1433 here ++;1433 ++here; 1434 1434 } 1435 1435
Note:
See TracChangeset
for help on using the changeset viewer.