Changeset 9620


Ignore:
Timestamp:
2005-04-11T11:32:00+12:00 (19 years ago)
Author:
kjdon
Message:

added some x++ -> ++x changes submitted by Emanuel Dejanu

Location:
trunk/gsdl/src
Files:
53 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/browsefilter.cpp

    r2212 r9620  
    133133    }
    134134
    135     options_here++;
     135    ++options_here;
    136136  }
    137137
     
    169169    } else tmptext.push_back(*contains_here);
    170170   
    171     contains_here++;
     171    ++contains_here;
    172172      }
    173173      // insert the last result in the set
     
    204204            }
    205205         
    206           offset_here++;
     206          ++offset_here;
    207207        }
    208208          // insert the last result in the set
     
    223223          while (result_here != result_end) {
    224224        offset_resultset.push_back("0");
    225         result_here++;
     225        ++result_here;
    226226          }
    227227        }
     
    243243          intersect_offset_resultset.push_back (*offset_resultset_here);
    244244        }
    245           resultset_here ++;
    246           offset_resultset_here ++;
     245          ++resultset_here;
     246          ++offset_resultset_here;
    247247        }
    248248        resultset = intersect_resultset;
     
    262262      while (result_here != result_end) {
    263263        offset_resultset.push_back("0");
    264         result_here++;
     264        ++result_here;
    265265      }
    266266    }
     
    287287    }
    288288
    289     resultnum++;
    290     result_here++;
    291     if (!md_type.empty()) offset_result_here++;
     289    ++resultnum;
     290    ++result_here;
     291    if (!md_type.empty()) ++offset_result_here;
    292292      }
    293293    }
  • trunk/gsdl/src/colservr/collectserver.cpp

    r8453 r9620  
    4343    if ((*source_here).s != NULL)
    4444      delete (*source_here).s;
    45     source_here++;
     45    ++source_here;
    4646  }
    4747  sources.clear();
     
    5353    if ((*filter_here).second.f != NULL)
    5454      delete (*filter_here).second.f;
    55     filter_here++;
     55    ++filter_here;
    5656  }
    5757  filters.clear();
     
    154154
    155155        collectinfo.public_documents[*begin] = *begin;
    156         begin++;
     156        ++begin;
    157157         }
    158158       }
     
    170170       
    171171        collectinfo.private_documents[*begin] = *begin;
    172         begin++;
     172        ++begin;
    173173         }
    174174       }
     
    183183      (*filter_here).second.f->configure(key, cfgline);
    184184
    185     filter_here++;
     185    ++filter_here;
    186186  }
    187187
     
    194194      (*source_here).s->configure(key, cfgline);
    195195   
    196     source_here++;
     196    ++source_here;
    197197  }
    198198}
     
    234234    !(*filter_here).second.f->init(logout)) return false;
    235235   
    236     filter_here++;
     236    ++filter_here;
    237237  }
    238238
     
    245245    !(*source_here).s->init(logout)) return false;
    246246   
    247     source_here++;
     247    ++source_here;
    248248  }
    249249
     
    310310      break;
    311311    }
    312     source_here++;
     312    ++source_here;
    313313      }
    314314      translatedOIDs.push_back (translatedOID);
     
    316316      translatedOIDs.push_back (*doc_here);
    317317    }
    318     doc_here ++;
     318    ++doc_here;
    319319  }
    320320  request.docSet = translatedOIDs;
     
    347347        break;
    348348      }
    349       source_here++;
     349      ++source_here;
    350350    }
    351351    if (!processed) {
     
    353353      return;
    354354    }
    355     resultdoc_here++;
     355    ++resultdoc_here;
    356356      }
    357357    }
     
    380380      break;
    381381    }
    382     source_here++;
     382    ++source_here;
    383383  }
    384384}
     
    396396      break;
    397397    }
    398     source_here++;
     398    ++source_here;
    399399  }
    400400}
  • trunk/gsdl/src/colservr/collectset.cpp

    r9030 r9620  
    6464      // ignore the modelcol
    6565      if (*thiscol == "modelcol") {
    66         thiscol ++;
     66        ++thiscol;
    6767        continue;
    6868      }
     
    163163      cservers.addcollectserver (cserver);
    164164
    165       thiscol ++;
     165      ++thiscol;
    166166    }
    167167      }
     
    178178      delete (*here).second.c;
    179179    }
    180     here ++;
     180    ++here;
    181181  }
    182182  cservers.clear();
     
    204204           << configinfo.collection << "\", gsdlhome=\""
    205205           << configinfo.gsdlhome << "\"\n";
    206     here ++;
     206    ++here;
    207207    continue;
    208208      }
     
    215215           << configinfo.collection << "\", gsdlhome=\""
    216216           << configinfo.gsdlhome << "\"\n";
    217     here ++;
     217    ++here;
    218218    continue;
    219219      }
     
    224224      (*here).second.c->configure("httpprefix",httpprefix);
    225225    }
    226     here++;
     226    ++here;
    227227  }
    228228
     
    248248      // ignore the modelcol
    249249      if (*thiscol == "modelcol") {
    250     thiscol ++;
     250    ++thiscol;
    251251    continue;
    252252      }
     
    255255      this->add_collection (*thiscol, gsdlhome);
    256256   
    257       thiscol ++;
     257      ++thiscol;
    258258    }
    259259  }
     
    275275      break;
    276276    }
    277     here ++;
     277    ++here;
    278278  }
    279279     
     
    395395      delete (*here).second.c;
    396396    }
    397     here ++;
     397    ++here;
    398398  }
    399399  cservers.clear();
     
    426426      return;
    427427    }
    428     here ++;
     428    ++here;
    429429  }
    430430  outconvertclass text_t2ascii;
     
    453453    }
    454454
    455     here++;
     455    ++here;
    456456  }
    457457}
     
    468468      collist.push_back ((*here).second.c->get_collection_name());
    469469    }
    470     here++;
     470    ++here;
    471471  }
    472472}
     
    485485    recpt.configure("collectinfo", colinfo);
    486486
    487     here++;
    488   }
    489 }
     487    ++here;
     488  }
     489}
  • trunk/gsdl/src/colservr/expat_resultset.cpp

    r9406 r9620  
    6969      queryresult_ptr->docs.docset[doc.docnum] = doc;
    7070      queryresult_ptr->docs.docorder.push_back(doc.docnum);
    71       qrpack_ptr->match_count++;
     71      ++qrpack_ptr->match_count;
    7272
    7373      free(id);
  • trunk/gsdl/src/colservr/filter.cpp

    r5906 r9620  
    6767    (*filteroption_here).second.check_defaultValue ();
    6868   
    69     filteroption_here++;
     69    ++filteroption_here;
    7070  }
    7171
     
    111111      response.docInfo.push_back(resultdoc);
    112112
    113       here++;
     113      ++here;
    114114    }
    115115  }
     
    174174  while ((t1_here != t1_end) && (t2_here != t2_end)) {
    175175    if (*t1_here != *t2_here) return 0; // unrelated
    176     t1_here++;
    177     t2_here++;
     176    ++t1_here;
     177    ++t2_here;
    178178  }
    179179
     
    205205      // equal
    206206      resultset.insert (*set1_here);
    207       set1_here++;
    208       set2_here++;
     207      ++set1_here;
     208      ++set2_here;
    209209
    210210    } else if ((childcomp=child_compare(*set1_here, *set2_here)) != 0) {
     
    212212    // set1_here is child
    213213    resultset.insert (*set1_here);
    214     set1_here++;
     214    ++set1_here;
    215215      } else {
    216216    // set2_here is child
    217217    resultset.insert (*set2_here);
    218     set2_here++;
     218    ++set2_here;
    219219      }
    220220
    221221    } else if (*set1_here < *set2_here) {
    222222      // set1 is less
    223       set1_here++;
     223      ++set1_here;
    224224
    225225    } else {
    226226      // set2 is less
    227       set2_here++;
     227      ++set2_here;
    228228    }
    229229  }
     
    241241    if (in_set (set2, *set1_here))
    242242      resultset.push_back (*set1_here);
    243     set1_here ++;
     243    ++set1_here;
    244244  }
    245245  set1 = resultset;
     
    255255    if (in_set (set2, *set1_here))
    256256      resultset.push_back (*set1_here);
    257     set1_here ++;
     257    ++set1_here;
    258258  }
    259259  set1 = resultset;
     
    303303    while (h != e) {
    304304      if (*h == tryel) return true;
    305       h++;
     305      ++h;
    306306    }
    307307  } while (here != end);
  • trunk/gsdl/src/colservr/gdbmsource.cpp

    r9345 r9620  
    205205
    206206    info_array.push_back(info);
    207     this_OID ++;
     207    ++this_OID;
    208208  }
    209209
     
    216216      if ((*t_info).first != "contains")
    217217    tfields.insert ((*t_info).first);
    218       t_info ++;
     218      ++t_info;
    219219    }
    220220    tfields.insert ("hasnext");
     
    270270        else hasprevious = true;
    271271       
    272         parentcontents_here++;
     272        ++parentcontents_here;
    273273       
    274274        if (parentcontents_here == parentcontents.end()) hasnext = false;
     
    278278          } 
    279279         
    280           parentcontents_here ++;
     280          ++parentcontents_here;
    281281        }
    282282     
     
    297297    tmetaptr->values.push_back("");
    298298
    299       this_info ++;
     299      ++this_info;
    300300      if (this_info != end_info) {
    301301    tmetaptr->parent = new MetadataInfo_t();
     
    304304    }
    305305    metadata[*fields_here] = this_metadata;
    306     fields_here++;
     306    ++fields_here;
    307307  }
    308308  return true;
  • trunk/gsdl/src/colservr/lucenequeryfilter.cpp

    r9110 r9620  
    9090    }
    9191      }
    92       here++;
     92      ++here;
    9393    }
    9494  } else if (key == "indexlevels") {
     
    105105    filterOptions["Level"].validValues.push_back(*here);
    106106      }
    107       here ++;
     107      ++here;
    108108    }
    109109  } else if (key == "textlevel") {
     
    200200      }
    201201     
    202       resultnum++;
     202      ++resultnum;
    203203    }
    204204      } // else
    205205     
    206       docorder_here++;
     206      ++docorder_here;
    207207    }
    208208  } // if need matching docs
     
    229229    while (termvariants_here != termvariants_end) {
    230230      terminfo.matchTerms.push_back (*termvariants_here);
    231       termvariants_here++;
     231      ++termvariants_here;
    232232    }
    233233      }
     
    236236      response.termInfo.push_back (terminfo);
    237237
    238       terms_here++;
     238      ++terms_here;
    239239    }
    240240  }
     
    291291    response.termInfo.push_back (terminfo);
    292292
    293     terms_here++;
     293    ++terms_here;
    294294  }
    295295 
     
    365365      while (termvar_here != termvar_end) {
    366366    multiresults.termvariants.insert(*termvar_here);
    367     termvar_here++;
     367    ++termvar_here;
    368368      }
    369369    }
    370370   
    371     query_here++;
     371    ++query_here;
    372372  }
    373373
  • trunk/gsdl/src/colservr/lucenesearch.cpp

    r9218 r9620  
    213213
    214214  docresultclass doc;
    215   for (int i=0; i<(int)queryResult.docs.size(); i++) {
     215  for (int i=0; i<(int)queryResult.docs.size(); ++i) {
    216216    doc.clear();
    217217    doc.docnum = (int)queryResult.levels[i];
     
    224224  // term info
    225225  termfreqclass term;
    226   for (int k=0; k<(int)queryResult.termFreqs.size(); k++) {
     226  for (int k=0; k<(int)queryResult.termFreqs.size(); ++k) {
    227227    term.clear();
    228228    char* termfreq_cstr=GetCStr(queryResult.termFreqs[k].term);
     
    235235    queryresult.orgterms.push_back(term); // should this change??
    236236   
    237     for (int j=0; j<(int)queryResult.termFreqs[k].equivTerms.size(); j++) {
     237    for (int j=0; j<(int)queryResult.termFreqs[k].equivTerms.size(); ++j) {
    238238      char* equivterm_cstr=GetCStr(queryResult.termFreqs[k].equivTerms[j]);
    239239      queryresult.termvariants.insert(to_uni(equivterm_cstr));
     
    288288  // load results into term info
    289289  termfreqclass term;
    290   for (int i=0; i<(int)browseResult.termFreqs.size(); i++) {
     290  for (int i=0; i<(int)browseResult.termFreqs.size(); ++i) {
    291291    term.clear();
    292292    char* term_cstr = GetCStr(browseResult.termFreqs[i].term);
  • trunk/gsdl/src/colservr/maptools.cpp

    r1285 r9620  
    4545    fromorder.push_back (from);
    4646    mapfrom[from] = to;
    47     here++;
     47    ++here;
    4848  }
    4949}
     
    6464    }
    6565
    66     here++;
     66    ++here;
    6767  }
    6868}
     
    8484      toarray.push_back((*toptr).second);
    8585    }
    86     here++;
     86    ++here;
    8787  }
    8888}
     
    100100    toptr = mapfrom.find (*here);
    101101    if (toptr != mapfrom.end() && (*toptr).second == to) return true;
    102     here++;
     102    ++here;
    103103  }
    104104 
     
    129129      return true;
    130130    }
    131     here++;
     131    ++here;
    132132  }
    133133 
     
    149149  while (here != end) {
    150150    if (*here == '-') {
    151       here++;
     151      ++here;
    152152      if (here != end && *here == '>') {
    153     here++;
     153    ++here;
    154154    break; // found "->"
    155155      }
     
    160160    } else {
    161161      from.push_back(*here);
    162       here++;
     162      ++here;
    163163    }
    164164  }
     
    167167  while (here != end) {
    168168    to.push_back(*here);
    169     here++;
     169    ++here;
    170170  }
    171171}
  • trunk/gsdl/src/colservr/mgppqueryfilter.cpp

    r8483 r9620  
    9090    }
    9191      }
    92       here++;
     92      ++here;
    9393    }
    9494   
     
    107107    filterOptions["Level"].validValues.push_back(*here);
    108108      }
    109       here ++;
     109      ++here;
    110110    }
    111111  } else if (key == "textlevel") {
     
    203203      }
    204204     
    205       resultnum++;
     205      ++resultnum;
    206206    }
    207207      } // else
    208208     
    209       docorder_here++;
     209      ++docorder_here;
    210210    }
    211211  } // if need matching docs
     
    232232    while (termvariants_here != termvariants_end) {
    233233      terminfo.matchTerms.push_back (*termvariants_here);
    234       termvariants_here++;
     234      ++termvariants_here;
    235235    }
    236236      }
     
    239239      response.termInfo.push_back (terminfo);
    240240
    241       terms_here++;
     241      ++terms_here;
    242242    }
    243243  }
     
    294294    response.termInfo.push_back (terminfo);
    295295
    296     terms_here++;
     296    ++terms_here;
    297297  }
    298298 
     
    368368      while (termvar_here != termvar_end) {
    369369    multiresults.termvariants.insert(*termvar_here);
    370     termvar_here++;
     370    ++termvar_here;
    371371      }
    372372    }
    373373   
    374     query_here++;
     374    ++query_here;
    375375  }
    376376
  • trunk/gsdl/src/colservr/mgppsearch.cpp

    r4823 r9620  
    167167
    168168  docresultclass doc;
    169   for (int i=0; i<(int)queryResult.docs.size(); i++) {
     169  for (int i=0; i<(int)queryResult.docs.size(); ++i) {
    170170    doc.clear();
    171171    doc.docnum = (int)queryResult.levels[i];
     
    178178  // term info
    179179  termfreqclass term;
    180   for (int k=0; k<(int)queryResult.termFreqs.size(); k++) {
     180  for (int k=0; k<(int)queryResult.termFreqs.size(); ++k) {
    181181    term.clear();
    182182    char* termfreq_cstr=GetCStr(queryResult.termFreqs[k].term);
     
    189189    queryresult.orgterms.push_back(term); // should this change??
    190190   
    191     for (int j=0; j<(int)queryResult.termFreqs[k].equivTerms.size(); j++) {
     191    for (int j=0; j<(int)queryResult.termFreqs[k].equivTerms.size(); ++j) {
    192192      char* equivterm_cstr=GetCStr(queryResult.termFreqs[k].equivTerms[j]);
    193193      queryresult.termvariants.insert(to_uni(equivterm_cstr));
     
    246246  // load results into term info
    247247  termfreqclass term;
    248   for (int i=0; i<(int)browseResult.termFreqs.size(); i++) {
     248  for (int i=0; i<(int)browseResult.termFreqs.size(); ++i) {
    249249    term.clear();
    250250    char* term_cstr = GetCStr(browseResult.termFreqs[i].term);
  • trunk/gsdl/src/colservr/mgqueryfilter.cpp

    r8026 r9620  
    114114    if (!foundbreak && !start) {
    115115      tmpterms.push_back (orgterms[termcount]);
    116       termcount ++;
     116      ++termcount;
    117117    }
    118118    if (tmpterms.size() > 1) {
     
    128128    if (foundquote)
    129129      tmpterms.push_back (orgterms[termcount]);
    130     termcount ++;
     130    ++termcount;
    131131      }
    132132      foundbreak = true;
     
    135135      foundbreak = false;
    136136    }     
    137     here++;
     137    ++here;
    138138  }
    139139}
     
    170170                 longindex, queryparams.collection, *this_phrase,
    171171                 (*docs_here).second.docnum)) {
    172         (*docs_here).second.num_phrase_match++;
     172        ++docs_here->second.num_phrase_match;
    173173      }
    174174   
    175       docs_here++;
    176     }
    177     this_phrase++;
     175      ++docs_here;
     176    }
     177    ++this_phrase;
    178178      }
    179179    }
     
    251251      while (termvar_here != termvar_end) {
    252252    multiresults.termvariants.insert(*termvar_here);
    253     termvar_here++;
     253    ++termvar_here;
    254254      }
    255255    }
    256256   
    257     query_here++;
     257    ++query_here;
    258258  }
    259259
     
    369369      break;
    370370    }
    371     numdocs ++;
    372     docorder_here ++;
     371    ++numdocs;
     372    ++docorder_here;
    373373      }
    374374    }
     
    405405      }
    406406     
    407       resultnum++;
     407      ++resultnum;
    408408    }
    409409      }
    410410     
    411       docorder_here++;
     411      ++docorder_here;
    412412    }
    413413  }
     
    431431    while (termvariants_here != termvariants_end) {
    432432      terminfo.matchTerms.push_back (*termvariants_here);
    433       termvariants_here++;
     433      ++termvariants_here;
    434434    }
    435435      }
     
    438438      response.termInfo.push_back (terminfo);
    439439
    440       terms_here++;
     440      ++terms_here;
    441441    }
    442442  }
     
    518518          new_querystring.push_back (*here);
    519519        }
    520         here ++;
     520        ++here;
    521521      }
    522522      (*query_here).querystring = new_querystring;
    523523    }
    524524#endif
    525     query_here ++;
     525    ++query_here;
    526526  }
    527527}
  • trunk/gsdl/src/colservr/mgsearch.cpp

    r4193 r9620  
    8686  while (len < maxstemlen && here != end) {
    8787    word_stem[len+1] = (unsigned char)(*here);
    88     len++; here++;
     88    ++len; ++here;
    8989  }
    9090  word_stem[len+1] = '\0';
     
    155155  while (len < maxstemlen && here != end) {
    156156    word_stem[len+1] = (unsigned char)(*here);
    157     len++; here++;
     157    ++len; ++here;
    158158  }
    159159  word_stem[len+1] = '\0';
     
    470470    (*ithere != '&') && (*ithere != '|') && (*ithere != '(') &&
    471471    (*ithere != ')')) (*ithere) = ' ';
    472     ithere++;
     472    ++ithere;
    473473  }
    474474}
     
    501501  while (mgdoc_here < mgdoc_end) {
    502502    if (*mgdoc_here == '\x3') *mgdoc_here = ' ';
    503     mgdoc_here++;
     503    ++mgdoc_here;
    504504  }
    505505
  • trunk/gsdl/src/colservr/phrasequeryfilter.cpp

    r8025 r9620  
    5151                 longindex, queryparams.collection, queryresults.orgterms,
    5252                 (*docs_here).second.docnum)) {
    53     (*docs_here).second.num_phrase_match++;
    54     docs_here++;
     53    ++docs_here->second.num_phrase_match;
     54    ++docs_here;
    5555
    5656      } else {
    5757    docresultmap::iterator this_doc_here = docs_here;
    58     docs_here++;
     58    ++docs_here;
    5959    if (queryparams.match_mode == 1) {
    6060      // need to delete this element, there was no exact match
  • trunk/gsdl/src/colservr/phrasesearch.cpp

    r5141 r9620  
    5555    // this is in a word
    5656    word.push_back(*here);
    57     here++; c_len--;
     57    ++here; --c_len;
    5858      }
    5959      break;
     
    7171    while (c_len > 0) {
    7272      word.push_back(*here);
    73       here++; c_len--;
     73      ++here; --c_len;
    7474    }
    7575  }
     
    9999      tmptext.clear();
    100100    } else tmptext.push_back(*contains_here);
    101     contains_here++;
     101    ++contains_here;
    102102  }
    103103  if (!tmptext.empty()) contains.push_back (tmptext);
     
    107107  while (here != end) {
    108108    get_all_docnums (gdbm, *here, docnum_list);
    109     here ++;
     109    ++here;
    110110  }
    111111}
     
    147147      (*phrase_here).utf8equivterms.end()) break;
    148148
    149       phrase_here++;
     149      ++phrase_here;
    150150    } while (doc_here <= doc_end && phrase_here != phrase_end);
    151151
     
    209209      fulldoc.appendcstr (doc);
    210210    }
    211     this_docnum ++;
     211    ++this_docnum;
    212212      }
    213213      doc = fulldoc.getcstr();
     
    251251   
    252252    if (result) return true;
    253     subvalue_here++;
    254       }
    255     }
    256     keyhere ++;
     253    ++subvalue_here;
     254      }
     255    }
     256    ++keyhere;
    257257  }
    258258  return result;
  • trunk/gsdl/src/colservr/querycache.cpp

    r1285 r9620  
    5959  int i;
    6060
    61   for (i=0; i < maxcachesize; i++)
     61  for (i=0; i < maxcachesize; ++i)
    6262    {
    6363      if (resultcache[i].queryparameters == queryparams)
     
    9393  int minaccessi = 0;
    9494 
    95   for (i=0; i < maxcachesize; i++)
     95  for (i=0; i < maxcachesize; ++i)
    9696    {
    9797      if (resultcache[i].accessnum < minaccessnum) {
  • trunk/gsdl/src/colservr/queryfilter.cpp

    r8024 r9620  
    153153    }
    154154
    155     options_here++;
     155    ++options_here;
    156156  }
    157157
  • trunk/gsdl/src/colservr/queryinfo.cpp

    r4217 r9620  
    248248  while (here != end) {
    249249    docorder.push_back ((*here).first);
    250     here++;
     250    ++here;
    251251  }
    252252}
     
    267267      tempresults[(*found).first] = (*found).second;
    268268    }
    269     d_here++;
     269    ++d_here;
    270270  }
    271271
     
    287287      docset[(*d_here).first] = (*d_here).second;
    288288    }
    289     d_here++;
     289    ++d_here;
    290290  }
    291291}
     
    300300   found = docset.find((*d_here).first);
    301301   if (found != docset.end()) docset.erase (found);
    302    d_here++;
     302   ++d_here;
    303303 }
    304304}
     
    361361      seenterms.insert((*here).termstr);
    362362    }
    363     here++;
     363    ++here;
    364364  }
    365365
     
    378378  while (docshere != docsend) {
    379379    outs << (*docshere).second;
    380     docshere++;
     380    ++docshere;
    381381  }
    382382
     
    386386  while (orgtermshere != orgtermsend) {
    387387    outs << (*orgtermshere);
    388     orgtermshere++;
     388    ++orgtermshere;
    389389  }
    390390
     
    394394  while (termshere != termsend) {
    395395    outs << (*termshere);
    396     termshere++;
     396    ++termshere;
    397397  }
    398398
  • trunk/gsdl/src/recpt/OIDtools.cpp

    r7414 r9620  
    239239    OID.pop_back();
    240240    if (*here == '.') break;
    241     here --;
     241    --here;
    242242  }
    243243  return OID;
  • trunk/gsdl/src/recpt/argdb.cpp

    r7424 r9620  
    4949      info.setinfo((*here).first, (*here).second);
    5050    }
    51     here ++;
     51    ++here;
    5252  }
    5353
     
    6969  while (here != end) {
    7070    argmap[(*here).first] = info[(*here).first];
    71     here ++;
     71    ++here;
    7272  }
    7373  argdb.closedatabase();
  • trunk/gsdl/src/recpt/authenaction.cpp

    r7432 r9620  
    332332    "\" value=\"_cgiarg" + (*args_here).first + "_\">\n";
    333333    }
    334     args_here++;
     334    ++args_here;
    335335  }
    336336
  • trunk/gsdl/src/recpt/browseactiontools.cpp

    r7427 r9620  
    4444    if(!isspace(*here)){
    4545      formatted.push_back(*here);
    46       here++;
     46      ++here;
    4747    }
    4848    //else, if seeing spaces, check that there is following text and add
    4949    //the ncessary conjugation if there is.
    5050    else if(isspace(*here)){
    51       while(isspace(*here) && here!=end) here++;
     51      while(isspace(*here) && here!=end) ++here;
    5252      if(here!=end) formatted += conj;
    5353    }
     
    116116    else {
    117117     
    118       check ++;
     118      ++check;
    119119     
    120120    }
  • trunk/gsdl/src/recpt/browsetools.cpp

    r8555 r9620  
    7979      buttons.push_back ("_document:imageexpandtext_");
    8080      }
    81       here ++;
     81      ++here;
    8282    }
    8383   
     
    8888      if ((count != 0) && ((count % 2) == 0)) textout<< outconvert << "<br>\n";
    8989      textout << outconvert << disp << *here;
    90       count ++;
    91       here ++;
     90      ++count;
     91      ++here;
    9292    }
    9393  }
     
    231231            formatlistptr, formatlistmap, formatinfo, browsermap,
    232232            tabcount, collectproto, disp, outconvert, textout, logout);
    233       thisdoc ++;
     233      ++thisdoc;
    234234    }
    235235  }
     
    343343  while (here != end) {
    344344    delete (*here).second;
    345     here ++;
     345    ++here;
    346346  }
    347347}
     
    396396      cache.insert (childtype);
    397397    }
    398     thisdoc ++;
     398    ++thisdoc;
    399399  }
    400400}
     
    445445                        disp, outconvert, textout, logout);
    446446    first = false;
    447     thisparent ++;
     447    ++thisparent;
    448448  }
    449449}
     
    509509    while (here != end) {
    510510      delete (*here).second;
    511       here ++;
     511      ++here;
    512512    }
    513513  }
     
    756756            }
    757757
    758             thissibling ++;
     758            ++thissibling;
    759759        }
    760760    }
  • trunk/gsdl/src/recpt/cgiargs.cpp

    r7429 r9620  
    122122    outs << text_t2utf8 << " \"" << (*here).first << "\"=\"" <<
    123123      (*here).second.value << "\"\n";
    124     here++;
     124    ++here;
    125125  }
    126126  outs << "\n";
     
    258258  while (here != end) {
    259259    if (!addarginfo (logout, (*here).second)) return false;
    260     here++;
     260    ++here;
    261261  }
    262262 
     
    294294      (*logout) << ("Invalid argument for cgiarg for " + argshortname + " (" + thisInfo->first + ")\n");
    295295    }
    296     thisInfo++;
     296    ++thisInfo;
    297297  }
    298298  return true;
     
    305305  while (thisArg != endArg) {
    306306    if (!addarginfo(logout, thisArg->first, thisArg->second)) return false;
    307     thisArg++;
     307    ++thisArg;
    308308  }
    309309  return true;
  • trunk/gsdl/src/recpt/cgiutils.cpp

    r7432 r9620  
    8989      text_t utf8=to_utf8(uni);
    9090      int last_byte=utf8.size()-1;
    91       for (int i=0;i<last_byte;i++)
     91      for (int i=0;i<last_byte;++i)
    9292        *out++ = utf8[i];
    9393      c=utf8[last_byte];
     
    103103    } else *out = *in;
    104104   
    105     if (in != end) in++;
    106     out++;
     105    if (in != end) ++in;
     106    ++out;
    107107  }
    108108 
     
    163163    if (*here == ',') outtext += "%2C";
    164164    else outtext.push_back (*here);
    165     here ++;
     165    ++here;
    166166  }
    167167  return outtext;
     
    182182     
    183183    }else outtext.push_back (*here);
    184     here ++;
     184    ++here;
    185185  }
    186186  return outtext;
     
    197197    if (*here == '-') outtext += "Zz-";
    198198    else outtext.push_back (*here);
    199     here ++;
     199    ++here;
    200200  }
    201201  outtext = cgi_safe (outtext);
     
    244244    }
    245245   
    246     here++;
     246    ++here;
    247247  }
    248248 
     
    319319    }
    320320
    321     argsinfohere++;
     321    ++argsinfohere;
    322322  }
    323323 
     
    347347    }
    348348
    349     argsinfohere++;
     349    ++argsinfohere;
    350350  }
    351351 
     
    407407          if (!((*sav == 'Z') && (*(sav+1) == 'z') && (*(sav+2) == '-')) &&
    408408          !((*(sav-1) == 'Z') && (*sav == 'z') && (*(sav+1) == '-'))) argvalue.push_back (*sav);
    409           sav ++;
     409          ++sav;
    410410        }
    411411        first = false;
     
    416416    } else {
    417417      args.setdefaultcarg (argname,*arg_ehere, cgiarg_t::compressed_arg);
    418       arg_ehere++;
     418      ++arg_ehere;
    419419    }
    420420      }
     
    439439              (*argsinfohere).second.argdefault, cgiarg_t::default_arg);
    440440    }
    441     argsinfohere++;
     441    ++argsinfohere;
    442442  }
    443443}
     
    532532    }
    533533   
    534     here++;
     534    ++here;
    535535  }
    536536}
  • trunk/gsdl/src/recpt/cgiwrapper.cpp

    r7438 r9620  
    7979  if (other_ostream != NULL) {
    8080    char *thepbase=pbase();
    81     for (int i=0;i<out_waiting();i++) (*other_ostream).put(thepbase[i]);
     81    for (int i=0;i<out_waiting();++i) (*other_ostream).put(thepbase[i]);
    8282  }
    8383 
     
    336336    if (spaces < 2) spaces = 2;
    337337    text_t outspaces;
    338     for (int i = 0; i < spaces; i++) outspaces.push_back (' ');
     338    for (int i = 0; i < spaces; ++i) outspaces.push_back (' ');
    339339    cout << text_t2ascii << outspaces;
    340340
     
    361361      cout << text_t2ascii << "NOT FOUND\n";
    362362
    363     this_mfile ++;
     363    ++this_mfile;
    364364  }
    365365
     
    403403    if (spaces < 2) spaces = 2;
    404404    text_t outspaces;
    405     for (int i = 0; i < spaces; i++) outspaces.push_back (' ');
     405    for (int i = 0; i < spaces; ++i) outspaces.push_back (' ');
    406406    cout << text_t2ascii << outspaces;
    407407   
     
    421421      cout << "\n";
    422422
    423       collist_here ++;
     423      ++collist_here;
    424424      }
    425425    }
    426426    is_z3950=false;
    427     rprotolist_here ++;
     427    ++rprotolist_here;
    428428  } // end of while loop
    429429
     
    479479      if (cin.eof()) break;
    480480      argstr.push_back (c);
    481       content_length--;
     481      --content_length;
    482482    } while (content_length > 0);
    483483      }
     
    586586        if (c < 0) break;
    587587        argstr.push_back (c);
    588         content_length--;
     588        --content_length;
    589589      } while (content_length > 0);
    590590    }
     
    616616#ifdef USE_FASTCGI
    617617    if (isfastcgi) {
    618       for(; *fcgienvp != NULL; fcgienvp++) {
     618      for(; *fcgienvp != NULL; ++fcgienvp) {
    619619    text_t fvalue = *fcgienvp;
    620620    text_t::const_iterator begin = fvalue.begin();
     
    697697#endif
    698698
    699     numrequests++;
     699    ++numrequests;
    700700  }
    701701
  • trunk/gsdl/src/recpt/collectoraction.cpp

    r7430 r9620  
    361361    (*here).second = args[(*here).first];
    362362      }
    363       here++;
     363      ++here;
    364364    }
    365365
     
    384384    args[(*here).first] = (*here).second;
    385385      }
    386       here ++;
     386      ++here;
    387387    }
    388388  }
     
    453453        file_copy (filename_cat(clone_etc, *here), filename_cat(new_etc, *here));
    454454      }
    455       here ++;
     455      ++here;
    456456    }
    457457      } else {
     
    612612    while (this_line != end_line) {
    613613      write_cfg_line (fd, *this_line);
    614       this_line ++;
     614      ++this_line;
    615615    }
    616616    GSDL_UNLOCK_FILE (fd);
     
    788788      comerror_t err = noError;
    789789      if ((*rprotolist_here).p->get_protocol_name (err) == "z3950proto") {
    790     rprotolist_here ++;
     790    ++rprotolist_here;
    791791    continue;
    792792      }
     
    822822          selected_index = index;       
    823823        }
    824         index ++;
     824        ++index;
    825825      }
    826       collist_here ++;
     826      ++collist_here;
    827827    }
    828828      }
    829829    }
    830     rprotolist_here ++;
     830    ++rprotolist_here;
    831831  }
    832832
     
    841841    fullnamemenu += "_collector:textdefaultstructure_\n";
    842842  }
    843   for (int i = 0; i < index; i ++) {
     843  for (int i = 0; i < index; ++i) {
    844844    // don't want write protected collections in list on "change existing
    845845    // collection" page
     
    849849    (is_selected && i == selected_index)) {
    850850      fullnamemenu += " selected";
    851       selected_index++;
     851      ++selected_index;
    852852      is_selected = false;
    853853    }
     
    904904    text_tarray::iterator b = inputvalues.begin();
    905905    while ((*l).empty() && l >= b) {
    906       l--;
     906      --l;
    907907    }
    908908    inputvalues.erase(l+1, inputvalues.end());
     
    917917  text_t last = "file://";
    918918  text_t rv;
    919   for (int i = 0; i < numboxes; i++) {
     919  for (int i = 0; i < numboxes; ++i) {
    920920    rv += "<nobr><select name=\"bc1inputtype\">\n";
    921921    rv += "<option value=\"file://\"";
     
    11971197      if (*here == '\n') faillog += "<br>";
    11981198      faillog.push_back (*here);
    1199       here ++;
     1199      ++here;
    12001200    }
    12011201    disp.setmacro ("faillog", "collector", dm_safe(faillog));
     
    14561456    if (sw == 0) {
    14571457      if (*here == '\n') {
    1458     if ((here+1) != end && *(here+1) == '\r') here ++;
     1458    if ((here+1) != end && *(here+1) == '\r') ++here;
    14591459    outtext += "\\n";
    14601460      } else if (*here == '\r') {
    1461     if ((here+1) != end && *(here+1) == '\n') here ++;
     1461    if ((here+1) != end && *(here+1) == '\n') ++here;
    14621462    outtext += "\\n";
    14631463      } else {
     
    14661466    } else if (*here == '\\' && (here+1) != end && *(here+1) == 'n') {
    14671467      outtext.push_back ('\n');
    1468       here ++;
     1468      ++here;
    14691469    } else {
    14701470      outtext.push_back (*here);
    14711471    }
    1472     here ++;
     1472    ++here;
    14731473  }
    14741474  return outtext;
     
    14931493    if (*here >= 'A' && *here <= 'Z') shortname.push_back (*here+32);
    14941494    else if (*here == ' ') {
    1495       while ((*(here+1)) == ' ') here ++;
     1495      while ((*(here+1)) == ' ') ++here;
    14961496      shortname.push_back (*here);
    14971497    } else shortname.push_back (*here);
    14981498      }
    1499       here ++;
     1499      ++here;
    15001500    }
    15011501
     
    15131513      unsigned int substr_len = 6 / use_words;
    15141514     
    1515       for (int i = 0; i < use_words; i++) {
     1515      for (int i = 0; i < use_words; ++i) {
    15161516    if (words[i].size() < substr_len) shortname += words[i];
    15171517    else shortname += substr (words[i].begin(), words[i].begin()+substr_len);
     
    15261526    text_t newname;
    15271527    do {
    1528       version ++;
     1528      ++version;
    15291529      newname = shortname;
    15301530      newname.push_back ('v');
     
    15551555  text_t tmpname = "tbuild";
    15561556  while (directory_exists (filename_cat (gsdlhome, "tmp", tmpname + text_t(i)))) {
    1557     i++;
     1557    ++i;
    15581558  }
    15591559  tmpname.appendint (i);
     
    17031703  int numvalues = inputvalues.size();
    17041704  int numtypes = inputtypes.size();
    1705   for (int i = 0; i < numvalues; i++) {
     1705  for (int i = 0; i < numvalues; ++i) {
    17061706    if (!inputvalues[i].empty()) {
    17071707      text_t type = "file://"; // default
     
    18111811        found = true;
    18121812      }
    1813       hp ++;
     1813      ++hp;
    18141814    }
    18151815    text_tset::const_iterator it = pluginset.find (pluginname);
     
    18171817    pluginname.clear();
    18181818      }
    1819       here ++;
     1819      ++here;
    18201820    }
    18211821  }
     
    18471847      }
    18481848    }
    1849     rprotolist_here ++;
     1849    ++rprotolist_here;
    18501850  }
    18511851
     
    18691869      }
    18701870    }
    1871     rprotolist_here ++;
     1871    ++rprotolist_here;
    18721872  }
    18731873
     
    19171917  int numtypes = inputtypes.size();
    19181918
    1919   for (int i = 0; i < numvalues; i++) {
     1919  for (int i = 0; i < numvalues; ++i) {
    19201920    text_t value = format_url(decode_commas(inputvalues[i]));
    19211921    text_t type = "file://"; // default
  • trunk/gsdl/src/recpt/comtypes.cpp

    r7422 r9620  
    108108    while (here != end) {
    109109      if (*here == defaultValue) return;
    110       here++;
     110      ++here;
    111111    }
    112112   
  • trunk/gsdl/src/recpt/configaction.cpp

    r7441 r9620  
    124124      }
    125125    }
    126     rprotolist_here ++;
     126    ++rprotolist_here;
    127127  }
    128128
     
    146146      }
    147147    }
    148     rprotolist_here ++;
     148    ++rprotolist_here;
    149149  }
    150150
  • trunk/gsdl/src/recpt/datelistbrowserclass.cpp

    r7433 r9620  
    102102
    103103    // bail on this document if it has no date
    104     if (date.empty()) { thissection++; continue; }
     104    if (date.empty()) { ++thissection; continue; }
    105105
    106106    text_t::const_iterator datebegin = date.begin();
    107107    int datesize = date.size();
    108108   
    109     if (datesize < 4) { thissection++; continue; }
     109    if (datesize < 4) { ++thissection; continue; }
    110110    text_t thisyear = substr (datebegin, datebegin+4);
    111111    text_t thismonth = "00";
     
    159159    textout << outconvert << "</tr>\n";
    160160   
    161     thissection ++;
     161    ++thissection;
    162162  }
    163163
  • trunk/gsdl/src/recpt/documentaction.cpp

    r8715 r9620  
    342342      disp.expandstring ("document", "_defaultwidth_", width);
    343343    iwidth += width.getint();
    344     dochere ++;
     344    ++dochere;
    345345  }
    346346  if ((twidth - iwidth) < numc) swidth = 2;
     
    425425        }
    426426     }
    427      dochere ++;
     427     ++dochere;
    428428     first = false;
    429429      }
     
    467467     }
    468468     navigationbar += ">" + title + "</option>\n";
    469      dochere++;
     469     ++dochere;
    470470      }
    471471
     
    627627     
    628628      // don't need to check current collection again
    629       if (*col_here == args["c"]) {col_here ++; continue;}
     629      if (*col_here == args["c"]) {++col_here; continue;}
    630630     
    631631      collectproto = protos->getrecptproto (*col_here, logout);
     
    638638    }
    639639      }
    640       col_here ++;
     640      ++col_here;
    641641    }
    642642  }
     
    684684      formatinfo.formatstrings[(*format_here).first] = (*format_here).second;
    685685   
    686     format_here ++;
     686    ++format_here;
    687687  }
    688688
     
    890890      while (a != b) {
    891891        if (*a == 46) collage = false;
    892         a++;
     892        ++a;
    893893      }
    894894
     
    11661166    while (sechere != secend) {
    11671167      int shastxt = (*sechere).metadata["hastxt"].values[0].getint();
    1168       if (shastxt == 1) seccount ++;
     1168      if (shastxt == 1) ++seccount;
    11691169      if (seccount > 10) break;
    1170       sechere ++;
     1170      ++sechere;
    11711171    }
    11721172    if (seccount > 10) {
     
    11951195               (*sechere).OID, highlight, shastxt, wanttext, collection,
    11961196               collectproto, browsers, disp, outconvert, textout, logout, args);
    1197       count ++;
    1198       sechere ++;
     1197      ++count;
     1198      ++sechere;
    11991199    }
    12001200      }
     
    12611261    break;
    12621262      }
    1263       this_sibling++;
     1263      ++this_sibling;
    12641264      first = false;
    12651265    }
    12661266    thisoid = get_parent(thisoid);
    1267     parentcount--;
     1267    --parentcount;
    12681268  }
    12691269
     
    12811281    break;
    12821282      }
    1283       h++;
     1283      ++h;
    12841284    }
    12851285  }
  • trunk/gsdl/src/recpt/extlinkaction.cpp

    r7408 r9620  
    159159     
    160160      // don't need to check current collection again
    161       if (*col_here == thiscollection) {col_here ++; continue;}
     161      if (*col_here == thiscollection) {++col_here; continue;}
    162162     
    163163      recptproto *collectproto = protos->getrecptproto (*col_here, logout);
    164       if (collectproto == NULL) {col_here ++; continue;}
     164      if (collectproto == NULL) {++col_here; continue;}
    165165
    166166      if (get_info (arg_href, *col_here, args["l"], metadata, false, collectproto, response, logout)) {
     
    171171        }
    172172      }
    173       col_here ++;
     173      ++col_here;
    174174    }
    175175      }
     
    214214   
    215215    // don't need to check current collection
    216     if (*col_here == args["c"]) {col_here ++; continue;}
     216    if (*col_here == args["c"]) {++col_here; continue;}
    217217   
    218218    recptproto *collectproto = protos->getrecptproto (*col_here, logout);
     
    235235      }
    236236    }
    237     col_here ++;
     237    ++col_here;
    238238      }
    239239    }
  • trunk/gsdl/src/recpt/formattools.cpp

    r9401 r9620  
    110110      } else return false;
    111111    }
    112     here ++;
     112    ++here;
    113113  }
    114114  return false;
     
    373373  text_t::const_iterator end = link.end();
    374374 
    375   here ++;
     375  ++here;
    376376  while (here != end) {
    377377    if (*here == '"') break;
    378378    href.push_back(*here);
    379     here ++;
     379    ++here;
    380380  }
    381381
     
    436436    text_tarray::const_iterator doc_data = relationdata.begin();
    437437    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)
    439439    text_t document_OID = *doc_data;
    440440   
     
    461461    relation += "  (" + document_collection + ")<br>";
    462462   
    463     currDoc++;
     463    ++currDoc;
    464464      }
    465465    }
     
    495495    else if (inquotes) op.push_back (*here);
    496496    else com.push_back (*here);
    497     here ++;
     497    ++here;
    498498  }
    499499
     
    530530    else if (inquotes) op.push_back (*here);
    531531    else com.push_back (*here);
    532     here ++;
     532    ++here;
    533533  }
    534534
     
    565565    else if (inquotes) op.push_back (*here);
    566566    else com.push_back (*here);
    567     here ++;
     567    ++here;
    568568  }
    569569
     
    694694
    695695    if (*here == '\\') {
    696       here ++;
     696      ++here;
    697697      if (here != end) text.push_back (*here);
    698698
     
    722722      }
    723723      text_t meta;
    724       here ++;
     724      ++here;
    725725      while (*here != ']') {
    726726    if (here == end) return false;
    727727    meta.push_back (*here);
    728     here ++;
     728    ++here;
    729729      }
    730730      parse_meta (meta, formatlistptr, metadata, getParents);
     
    735735      text.push_back (*here);
    736736
    737     if (here != end) here ++;
     737    if (here != end) ++here;
    738738  }
    739739  if (!text.empty()) {
     
    757757  here = findchar (it, end, '{');
    758758  if (here == end) return false;
    759   else here ++;
     759  else ++here;
    760760
    761761  if (com == "If" || com == "if" || com == "IF") formatlistptr->command = comIf;
     
    838838        text_t meta = substr (beginbracket+1, endbracket);
    839839        parse_meta (meta, formatlistptr->decision.meta, metadata, getParents);
    840         commacount ++;
     840        ++commacount;
    841841        text.clear();
    842842      }
     
    855855        formatlistptr->decision.command = dText;
    856856        formatlistptr->decision.text = text;
    857         commacount ++;
     857        ++commacount;
    858858        text.clear();
    859859      }
     
    916916        {
    917917          if (*here == '}') break;
    918           commacount ++;
     918          ++commacount;
    919919        }
    920920    }
     
    923923    } else text.push_back(*here);
    924924   
    925     if (here != end) here ++;
     925    if (here != end) ++here;
    926926  }
    927927
     
    950950  const int end_i = metainfo.values.size()-1;
    951951   
    952   for (int i=start_i; i<=end_i; i++) {
     952  for (int i=start_i; i<=end_i; ++i) {
    953953    if (!first) tmp += meta.functionoptions;
    954954     
     
    10121012    else tmp += *here;
    10131013    first = false;
    1014     here ++;
     1014    ++here;
    10151015      }
    10161016      if (meta.metacommand & mCgiSafe) return cgi_safe (tmp);
     
    11461146      break;
    11471147    }
    1148     pos++;
     1148    ++pos;
    11491149  }
    11501150
     
    11591159      break;
    11601160    }
    1161     pos--;
     1161    --pos;
    11621162  }
    11631163
     
    11721172      break;
    11731173    }
    1174     pos--;
     1174    --pos;
    11751175  }
    11761176
     
    11881188      break;
    11891189    }
    1190     pos--;
     1190    --pos;
    11911191  }
    11921192
     
    12001200  extracted_str.clear();
    12011201
    1202   for (int pos=start_pos; pos<=end_pos; pos++) {
     1202  for (int pos=start_pos; pos<=end_pos; ++pos) {
    12031203    extracted_str.push_back(outstring[pos]);
    12041204  }
     
    12771277
    12781278  if ((potential_quote == '\'') || (potential_quote == '\"')) {
    1279     rhs_end--;
     1279    --rhs_end;
    12801280    rhs_start = rscan_for(outstring,rhs_end-1,potential_quote) +1;
    12811281    quoted = true;
     
    14311431  while (here != end) {
    14321432    if (*here == '[') return true;
    1433     here ++;
     1433    ++here;
    14341434  }
    14351435
  • trunk/gsdl/src/recpt/highlighttext.cpp

    r7433 r9620  
    9393    while (this_var != last_var) {
    9494      allterms[*this_var] = 1;
    95       this_var ++;
    96     }
    97     this_term ++;
     95      ++this_var;
     96    }
     97    ++this_term;
    9898  }
    9999
     
    106106      // not word boundary
    107107      word.push_back(*here);
    108       here++;
     108      ++here;
    109109
    110110    } else {
     
    124124    while ((here != end) && (*here != '>')) {
    125125      buffer.push_back(*here);
    126       here++;
     126      ++here;
    127127    }
    128128      }
    129129
    130130      buffer.push_back(*here);
    131       here++;
     131      ++here;
    132132
    133133      if (buffer.size() > 1024) {
     
    159159    while (this_var != last_var) {
    160160      allterms[*this_var] = 1;
    161       this_var ++;
     161      ++this_var;
    162162    }
    163163    first = false;
    164     this_term ++;
     164    ++this_term;
    165165  }
    166166
     
    174174      // not word boundary
    175175      word.push_back(*here);
    176       here++;
     176      ++here;
    177177
    178178    } else {
     
    193193          buffer.clear();
    194194        }
    195         phrasecount ++;
     195        ++phrasecount;
    196196      } else {
    197197        phrasecount = 0;
     
    215215    while ((here != end) && (*here != '>')) {
    216216      buffer.push_back(*here);
    217       here++;
     217      ++here;
    218218    }
    219219      }
    220220
    221221      buffer.push_back(*here);
    222       here++;
     222      ++here;
    223223
    224224      if (buffer.size() > 1024 && phrasecount == 0) {
     
    252252      }
    253253    }
    254     here++;
     254    ++here;
    255255  }
    256256
     
    278278      altered_string.push_back(*here);
    279279    }
    280     here++;
     280    ++here;
    281281  }
    282282
  • trunk/gsdl/src/recpt/historydb.cpp

    r7432 r9620  
    109109  newhistoryresult += history;
    110110  newhistoryresult += "\n";
    111   for (int i=0; i<numentries;i++) {
     111  for (int i=0; i<numentries;++i) {
    112112    newhistoryresult +=  entries[i]+"\n";
    113113  }
     
    156156      }
    157157    }
    158     here++;
     158    ++here;
    159159  }// while
    160160}
     
    186186      info[key]=value;
    187187    }
    188     start++;
     188    ++start;
    189189  }
    190190}
     
    198198  while (*begin >='0'&& *begin <='9') { // get the digits for numdocs
    199199    numdocs.push_back(*begin);
    200     begin++;
     200    ++begin;
    201201  }         
    202202                 
    203203  if (*begin == '+') {  // get the + if there
    204204    numdocs.push_back(*begin);
    205     begin++;
     205    ++begin;
    206206  }
    207207  if (*begin == ':') { // have the old format - previous bit was record number
    208208    numdocs.clear();
    209     begin++;
     209    ++begin;
    210210
    211211    while(*begin >='0' && *begin <='9') { // get the digits
    212212      numdocs.push_back(*begin);
    213       begin++;
     213      ++begin;
    214214    }
    215215    if (*begin == '+') { // get the + if there
    216216      numdocs.push_back(*begin);
    217       begin++;
     217      ++begin;
    218218    }
    219219  }
  • trunk/gsdl/src/recpt/hlistbrowserclass.cpp

    r7433 r9620  
    166166    while (tmp_str<end_str) {
    167167      if (*tmp_str=='<') {    // for html tags
    168     while (*tmp_str!='>') tmp_str++;
     168    while (*tmp_str!='>') ++tmp_str;
    169169      } else if (*tmp_str=='&') { // for html entities
    170     while (*tmp_str!=';') tmp_str++;
    171     num_chars++;
    172       } else num_chars++;
    173       tmp_str++;
     170    while (*tmp_str!=';') ++tmp_str;
     171    ++num_chars;
     172      } else ++num_chars;
     173      ++tmp_str;
    174174    }
    175175
     
    180180
    181181    textout << outconvert << "<td>" << disp << fmt_str << "</td>\n";
    182     tsibling ++;
     182    ++tsibling;
    183183  }
    184184
  • trunk/gsdl/src/recpt/htmlutils.cpp

    r7388 r9620  
    3838    else if (*here == '#') outstring += "&#35;";
    3939    else outstring.push_back(*here);
    40     here ++;
     40    ++here;
    4141  }
    4242  return outstring;
     
    5353    else if (*here == '\'') outstring += "\\'";
    5454    else outstring.push_back(*here);
    55     here ++;
     55    ++here;
    5656  }
    5757  return outstring;
  • trunk/gsdl/src/recpt/infodbclass.cpp

    r7434 r9620  
    159159    gdbmfile = gdbm_open (namebuffer, block_size, mode, 00664, NULL);
    160160#endif
    161     num_retrys--;
     161    --num_retrys;
    162162  } while (num_retrys>0 && gdbmfile==NULL &&
    163163       (gdbm_errno==GDBM_CANT_BE_READER || gdbm_errno==GDBM_CANT_BE_WRITER));
  • trunk/gsdl/src/recpt/langaction.cpp

    r8102 r9620  
    189189
    190190  // Case fold both language codes, just in case
    191   for (int i = 0; i < strlen(sourceabbr.getcstr()); i++) {
     191  for (int i = 0; i < strlen(sourceabbr.getcstr()); ++i) {
    192192    sourceabbr[i] = tolower(sourceabbr[i]);
    193193  }
    194   for (int i = 0; i < strlen(targetabbr.getcstr()); i++) {
     194  for (int i = 0; i < strlen(targetabbr.getcstr()); ++i) {
    195195    targetabbr[i] = tolower(targetabbr[i]);
    196196  }
  • trunk/gsdl/src/recpt/pageaction.cpp

    r8030 r9620  
    203203              search_types |= 1;
    204204            }
    205             type_here ++;
     205            ++type_here;
    206206          }
    207207          coll_type += search_types;
     
    258258        }
    259259
    260         collist_here ++;
     260        ++collist_here;
    261261        }
    262262       
    263263      }
    264264      }
    265     rprotolist_here ++;
     265    ++rprotolist_here;
    266266    }
    267267   
     
    333333              search_types |= 1;
    334334            }
    335             type_here ++;
     335            ++type_here;
    336336          }
    337337          coll_type += search_types;
     
    432432          homeextra += "<td>" + link + collectionname + "</a></td>\n";
    433433         
    434           count ++;
     434          ++count;
    435435          first = false;
    436436        }
    437437      }
    438       collist_here ++;
     438      ++collist_here;
    439439    }
    440440
    441     for (; count%configinfo.HomePageCols != 0; count ++) homeextra += "<td></td>\n";
     441    for (; count%configinfo.HomePageCols != 0; ++count) homeextra += "<td></td>\n";
    442442      }
    443443    }
    444444    homeextra += "</td></tr>\n<tr>\n";
    445     rprotolist_here ++;
     445    ++rprotolist_here;
    446446  }
    447447
     
    477477        if (cinfo->isPublic && (cinfo->buildDate > 0)) {
    478478
    479           count ++;
     479          ++count;
    480480
    481481          text_t coll_type = "&ct=";
     
    506506              search_types |= 0x01;
    507507            }
    508             type_here ++;
     508            ++type_here;
    509509          }
    510510          coll_type += search_types;
     
    547547        }
    548548      }
    549       collist_here ++;
     549      ++collist_here;
    550550    }
    551551      }
    552552    }
    553     rprotolist_here ++;
     553    ++rprotolist_here;
    554554  }
    555555
     
    640640  while (thislang != endlang) {
    641641    languages[(*thislang).second.longname] = (*thislang).first;
    642     thislang++;
     642    ++thislang;
    643643  }
    644644  text_tmap::iterator tlang = languages.begin();
     
    661661        languageoption += ">" + (*tlang).first + "</option>\n";
    662662      }
    663       tlang ++;
     663      ++tlang;
    664664    }
    665665      }
     
    672672      if ((*tlang).second == arg_l) languageoption += " selected";
    673673      languageoption += ">" + (*tlang).first + "</option>\n";
    674       tlang ++;
     674      ++tlang;
    675675    }
    676676  }
     
    693693      if ((*thisenc).second == arg_w) encodingoption += " selected";
    694694      encodingoption += ">" + (*thisenc).first + "</option>\n";
    695       thisenc ++;
     695      ++thisenc;
    696696    }
    697697
     
    873873    } else {
    874874      ColInfoResponse_t *this_cinfo = recpt->get_collectinfo_ptr (collectproto, *col_here, logout);
    875       if (this_cinfo == NULL) {col_here ++; continue;}
     875      if (this_cinfo == NULL) {++col_here; continue;}
    876876      colname = this_cinfo->collectionmeta["collectionname"];
    877877    }
    878878
    879     count ++;
     879    ++count;
    880880    collectionoption += "<input type=checkbox name=\"cc\" value=\"" +
    881881      *col_here + "\" onClick=\"updatecc(\'" + *col_here + "\');\"> " +
    882882      colname + "<br>\n";
    883     col_here ++;
     883    ++col_here;
    884884      }
    885885     
     
    946946    while (here != end) {
    947947     
    948       classifiernumber++;
     948      ++classifiernumber;
    949949      text_t childtype = (*here).metadata["childtype"].values[0];
    950950      if (childtype == "Collage" && arg_p == "about") {
     
    954954    collage = true;
    955955      }
    956       here ++;
     956      ++here;
    957957    }
    958958    if (! collage)
     
    977977      }
    978978
    979       here ++;
     979      ++here;
    980980    }
    981981    shorttext += "</ul>\n";
     
    998998      } else {
    999999        ColInfoResponse_t *this_cinfo = recpt->get_collectinfo_ptr (collectproto, *here, logout);
    1000         if (this_cinfo == NULL) {here ++; continue;}
     1000        if (this_cinfo == NULL) {++here; continue;}
    10011001        if (!first) textsubcollections += "<br>";
    10021002        textsubcollections += "\n" + this_cinfo->collectionmeta["collectionname"] + "\n";
    10031003      }
    1004       count ++;
     1004      ++count;
    10051005      first = false;
    1006       here ++;
     1006      ++here;
    10071007    }
    10081008    textsubcollections += "_textsubcols2_";
  • trunk/gsdl/src/recpt/pagedbrowserclass.cpp

    r7618 r9620  
    7777        break;
    7878      }
    79       dochere ++;
     79      ++dochere;
    8080    }
    8181
     
    158158      break;
    159159    }
    160     thissection ++;
     160    ++thissection;
    161161  }
    162162
  • trunk/gsdl/src/recpt/phindaction.cpp

    r7734 r9620  
    580580  // Get the word
    581581  word.clear();
    582   for (; *next != ':'; next++) {
     582  for (; *next != ':'; ++next) {
    583583    word.push_back(*next);
    584584  }
     
    586586  // Get total frequency
    587587  tf = 0;
    588   for (next++; *next != ':'; next++) {
     588  for (++next; *next != ':'; ++next) {
    589589    tf *= 10;
    590590    tf += (*next - '0');
     
    593593  // Get expansion frequency
    594594  ef = 0;
    595   for (next++; *next != ':'; next++) {
     595  for (++next; *next != ':'; ++next) {
    596596    ef *= 10;
    597597    ef += (*next - '0');
     
    600600  // Get document frequency
    601601  df = 0;
    602   for (next++; *next != ':'; next++) {
     602  for (++next; *next != ':'; ++next) {
    603603    df *= 10;
    604604    df += (*next - '0');
     
    608608  el.clear();
    609609  unsigned long e = 0;
    610   for (next++; *next != ':'; next++) {
     610  for (++next; *next != ':'; ++next) {
    611611    if (*next == ',') {
    612612      el.push_back(e);
     
    623623  bool readnum = false;
    624624  unsigned long d = 0;
    625   for (next++; *next != ':'; next++) {
     625  for (++next; *next != ':'; ++next) {
    626626    if (*next == ',') {
    627627      docnum.push_back(d);
     
    649649  // link frequency
    650650  lf = 0;
    651   for (next++; *next != ':'; next++) {
     651  for (++next; *next != ':'; ++next) {
    652652    lf *= 10;
    653653    lf += (*next - '0');
     
    662662  bool typedone = false;
    663663  unsigned long l = 0;
    664   for (next++; *next != ':'; next++) {
     664  for (++next; *next != ':'; ++next) {
    665665   
    666666    if (!typedone) {
     
    703703  UCArray type, text;
    704704 
    705   for (unsigned long l = first; l < last; l++) {
     705  for (unsigned long l = first; l < last; ++l) {
    706706
    707707    // get the phrase data
     
    769769  // Get the word
    770770  word.clear();
    771   for (; *next != ':'; next++) {
     771  for (; *next != ':'; ++next) {
    772772    word.push_back(*next);
    773773  }
     
    775775  // Get total frequency
    776776  tf = 0;
    777   for (next++; *next != ':'; next++) {
     777  for (++next; *next != ':'; ++next) {
    778778    tf *= 10;
    779779    tf += (*next - '0');
     
    782782  // Get expansion frequency
    783783  ef = 0;
    784   for (next++; *next != ':'; next++) {
     784  for (++next; *next != ':'; ++next) {
    785785    ef *= 10;
    786786    ef += (*next - '0');
     
    789789  // Get document frequency
    790790  df = 0;
    791   for (next++; *next != ':'; next++) {
     791  for (++next; *next != ':'; ++next) {
    792792    df *= 10;
    793793    df += (*next - '0');
     
    816816  toUCArray(body, ucbody);
    817817
    818   for (unsigned long e = first; e < last; e++) {
     818  for (unsigned long e = first; e < last; ++e) {
    819819
    820820    phrase = elist[e];
     
    952952  unsigned long freq, doc;
    953953
    954   for (unsigned long d = first; d < last; d++) {
     954  for (unsigned long d = first; d < last; ++d) {
    955955    doc = docNums[d];
    956956    freq = docFreq[d];
     
    10121012  // Get the document OID (hash)
    10131013  hash.clear();
    1014   for (; *next != '\t'; next++) {
     1014  for (; *next != '\t'; ++next) {
    10151015    hash.push_back(*next);
    10161016  }
     
    10191019  text.push_back('\n');
    10201020  title.clear();
    1021   for (next++; *next != '\n'; next++) {
     1021  for (++next; *next != '\n'; ++next) {
    10221022    title.push_back(*next);
    10231023  }
  • trunk/gsdl/src/recpt/queryaction.cpp

    r8357 r9620  
    653653      macrovalue += " selected";
    654654    macrovalue += ">_" + *thisvalue + "_\n";
    655     thisvalue ++;
     655    ++thisvalue;
    656656  }
    657657  macrovalue += "</select>\n";
     
    749749      break;
    750750    }
    751     thisvalue++;
     751    ++thisvalue;
    752752  }
    753753  if (!has_paras) return; // there is no difference between the form selection and the normal one
     
    777777      macrovalue += ">_" + *thisvalue + "_\n";
    778778    }
    779     thisvalue ++;
     779    ++thisvalue;
    780780  }
    781781  macrovalue += "</select>\n";
     
    798798  if (args["qf"] == "1") { // advanced form
    799799    form += "<tr>_firstadvformelement_</tr>\n";
    800     for (int i=1; i<argfqn; i++) {     
     800    for (int i=1; i<argfqn; ++i) {     
    801801    form += "<tr>_advformelement_</tr>\n";
    802802    }
     
    804804  }
    805805  else { // simple form
    806     for (int i=0; i<argfqn; i++) {
     806    for (int i=0; i<argfqn; ++i) {
    807807      form += "<tr>_regformelement_</tr>\n";
    808808    }
     
    839839      historylist += "<form name=\"HistoryForm\"><table width=537>\n";
    840840
    841       for (int i=0; i<numrecords;i++) {
     841      for (int i=0; i<numrecords;++i) {
    842842    text_t query;
    843843    text_t numdocs;
     
    938938          if (!index.empty()) {
    939939        it = fresponse.filterOptions.find ("Index");
    940         if (it == end) {collist_here ++; continue;}
     940        if (it == end) {++collist_here; continue;}
    941941        text_tarray::const_iterator there = (*it).second.validValues.begin();
    942942        text_tarray::const_iterator tend = (*it).second.validValues.end();
    943943        while (there != tend) {
    944944          if (*there == index) break;
    945           there ++;
     945          ++there;
    946946        }
    947         if (there == tend) {collist_here++; continue;}
     947        if (there == tend) {++collist_here; continue;}
    948948          }
    949949          if (!subcollection.empty()) {
    950950        it = fresponse.filterOptions.find ("Subcollection");
    951         if (it == end) {collist_here++; continue;}
     951        if (it == end) {++collist_here; continue;}
    952952        text_tarray::const_iterator there = (*it).second.validValues.begin();
    953953        text_tarray::const_iterator tend = (*it).second.validValues.end();
    954954        while (there != tend) {
    955955          if (*there == subcollection) break;
    956           there ++;
     956          ++there;
    957957        }
    958         if (there == tend) {collist_here++; continue;}
     958        if (there == tend) {++collist_here; continue;}
    959959          }
    960960          if (!language.empty()) {
    961961        it = fresponse.filterOptions.find ("Language");
    962         if (it == end) {collist_here++; continue;}
     962        if (it == end) {++collist_here; continue;}
    963963        text_tarray::const_iterator there = (*it).second.validValues.begin();
    964964        text_tarray::const_iterator tend = (*it).second.validValues.end();
    965965        while (there != tend) {
    966966          if (*there == language) break;
    967           there ++;
     967          ++there;
    968968        }
    969         if (there == tend) {collist_here++; continue;}
     969        if (there == tend) {++collist_here; continue;}
    970970          }
    971971       
     
    988988        }
    989989      }
    990       collist_here ++;
     990      ++collist_here;
    991991    }
    992992      }
    993993    }
    994     rprotolist_here ++;
     994    ++rprotolist_here;
    995995  }
    996996  textout << outconvert << disp
     
    11171117      logout << outconvert << "queryaction::search_multiple_collections: " << *col_here
    11181118         << " collection has a NULL collectproto, ignoring\n";
    1119       col_here ++;
     1119      ++col_here;
    11201120      continue;
    11211121    }
     
    11231123    if (cinfo == NULL) {
    11241124      logout << "ERROR (query_action::search_multiple_collections): get_collectinfo_ptr returned NULL\n";
    1125       col_here ++;
     1125      ++col_here;
    11261126      continue;
    11271127    }
     
    11751175    if ((this_term+1) != end_term) freqmsg += ", ";
    11761176      }
    1177       this_term ++;
     1177      ++this_term;
    11781178    }
    11791179   
     
    11881188    thisresult.doc = *doc_here;
    11891189    results.insert (thisresult);
    1190     doc_here ++;
     1190    ++doc_here;
    11911191      }
    11921192    }
    1193     col_here ++;
     1193    ++col_here;
    11941194  } // for each coll
    11951195
     
    12231223    // output results
    12241224    while (res_here != res_end) {
    1225       if (count < firstdoc) {count ++; res_here ++; continue;}
     1225      if (count < firstdoc) {++count; ++res_here; continue;}
    12261226      if (count > thislast) break;
    12271227      formatlistptr = colinfomap[(*res_here).collection].formatlistptr;
     
    12341234    logout << outconvert << "queryaction::search_multiple_collections: " << (*res_here).collection
    12351235           << " collection has a NULL collectproto, ignoring results\n";
    1236     res_here ++;
     1236    ++res_here;
    12371237    continue;
    12381238      }
     
    12421242                    collectproto, disp, outconvert, textout, logout);
    12431243      //    textout << outconvert << "(ranking: " << (*res_here).doc.ranking << ")\n";
    1244       res_here ++;
    1245       count ++;
     1244      ++res_here;
     1245      ++count;
    12461246    }
    12471247  }
     
    12531253  while (here != end) {
    12541254    delete ((*here).second.formatlistptr);
    1255     here ++;
     1255    ++here;
    12561256  }
    12571257  return true;
     
    15151515      quotedquery += "\"" + *phere + "\"";
    15161516      first = false;
    1517       phere ++;
     1517      ++phere;
    15181518    }
    15191519    if (args.getintarg("s") && !quotedquery.empty()) quotedquery += "_textstemon_";
     
    15431543      if ((this_term + 1) != end_term)
    15441544    freqmsg += ", ";
    1545       this_term ++;
     1545      ++this_term;
    15461546    }
    15471547  }
  • trunk/gsdl/src/recpt/querytools.cpp

    r8715 r9620  
    192192      formattedstring.push_back (*here);
    193193    }
    194     here ++;
     194    ++here;
    195195  }
    196196  querystring = formattedstring;
     
    214214      }
    215215      else
    216         here++;
     216        ++here;
    217217    }
    218218      //converting BCE dates
     
    254254           }
    255255         }
    256          nextdate++;
     256         ++nextdate;
    257257       }
    258258     querystring.appendcstr(" )");
     
    284284      if (foundquote) tmptext.push_back (*here);
    285285    }
    286     here ++;
     286    ++here;
    287287      }
    288288    }
     
    307307    }
    308308
    309     here++;
     309    ++here;
    310310  }
    311311  return escquery;
     
    343343
    344344
    345   for (int i=0; i< values.size(); i++) {
     345  for (int i=0; i< values.size(); ++i) {
    346346    if (!values[i].empty()) {
    347347      if (ct == 1) {
     
    395395  splitchar(comb.begin(), comb.end(), ',', combs);
    396396 
    397   for(int i=0; i< values.size(); i++) {
     397  for(int i=0; i< values.size(); ++i) {
    398398    if (!values[i].empty()) {
    399399      if (i!=0) {
     
    429429      // not word boundary
    430430      word.push_back(*here);
    431       here++;   
     431      ++here;   
    432432    }
    433433    else {
     
    450450    outtext.push_back(*here);
    451451      }
    452       here++;
     452      ++here;
    453453    }
    454454  }
     
    651651      // not word boundary
    652652      word.push_back(*here);
    653       here++;   
     653      ++here;   
    654654    }
    655655    else {
     
    662662      // everything else, we add into the query string
    663663      outtext.push_back(*here);
    664       here++;
     664      ++here;
    665665    }
    666666  }
  • trunk/gsdl/src/recpt/recptproto.cpp

    r4774 r9620  
    168168    }
    169169   
    170     here++;
     170    ++here;
    171171  }
    172172 
  • trunk/gsdl/src/recpt/statusaction.cpp

    r7381 r9620  
    119119
    120120      textout << "</tr>\n";
    121       collist_here ++;
     121      ++collist_here;
    122122    }
    123123      }
    124124    }
    125     rprotolist_here ++;
     125    ++rprotolist_here;
    126126  }
    127127
     
    162162    macrofirst = false;
    163163    textout << outconvert << "\"" << *macrohere << "\"";
    164     macrohere++;
     164    ++macrohere;
    165165  }
    166166  textout << outconvert << "</td></tr>\n";
     
    193193        << (*params_here).second << "\"";
    194194   
    195     params_here++;
     195    ++params_here;
    196196  }
    197197  textout << outconvert << "</td></tr>\n";
     
    213213      argsinfofirst = false;
    214214      textout << outconvert << "\"" << (*argsinfohere).second.shortname << "\"";
    215       argsinfohere++;
     215      ++argsinfohere;
    216216    }
    217217   
     
    234234    textout << outconvert << "\"" << (*actionshere).second.a->get_action_name() << "\"";
    235235      }
    236       actionshere++;
     236      ++actionshere;
    237237    }
    238238   
     
    255255    textout << outconvert << "\"" << (*browsershere).second.b->get_browser_name() << "\"";
    256256      }
    257       browsershere++;
     257      ++browsershere;
    258258    }
    259259   
     
    276276    textout << outconvert << "\"" << (*protohere).p->get_protocol_name(err) << "\"";
    277277      }
    278       protohere++;
     278      ++protohere;
    279279    }
    280280   
     
    294294      convertfirst = false;
    295295      textout << outconvert << "\"" << (*converthere).second.name << "\"";
    296       converthere++;
     296      ++converthere;
    297297    }
    298298   
     
    354354    else textout << outconvert << "<td>\"" << *arg_value << "\"</td></tr>\n";
    355355   
    356     argsinfohere ++;
     356    ++argsinfohere;
    357357  }
    358358 
     
    393393      aifirst = false;
    394394      textout << outconvert << (*argsinfohere).second.shortname;
    395       argsinfohere++;
     395      ++argsinfohere;
    396396    }
    397397   
    398398    textout << outconvert << "</td></tr>\n";
    399399      }
    400       actionshere++;
     400      ++actionshere;
    401401    }
    402402  }
     
    431431        << "</td></tr>\n";
    432432      }
    433       browsershere++;
     433      ++browsershere;
    434434    }
    435435  }
     
    491491      }
    492492
    493       collist_here++;
     493      ++collist_here;
    494494    }
    495495
     
    503503    }
    504504
    505     rprotolist_here++;
     505    ++rprotolist_here;
    506506  }
    507507
     
    542542      if (err == noError && hascollection) break;
    543543    }
    544     rprotolist_here++;
     544    ++rprotolist_here;
    545545  }
    546546 
     
    590590    languages_first = false;
    591591    textout << outconvert << "\"" << *languages_here << "\"";
    592     languages_here++;
     592    ++languages_here;
    593593      }
    594594
     
    599599    textout << outconvert << "<tr><td>" << (*meta_here).first
    600600        << "</td><td>" << (*meta_here).second << "</td></tr>\n";
    601     meta_here ++;
     601    ++meta_here;
    602602      }
    603603      textout << "</table></td></tr>\n";
     
    609609    textout << outconvert << "<tr><td>" << (*format_here).first
    610610        << "</td><td>" << html_safe((*format_here).second) << "</td></tr>\n";
    611     format_here ++;
     611    ++format_here;
    612612      }
    613613      textout << "</table></td></tr>\n";
     
    619619    textout << outconvert << "<tr><td>" << (*building_here).first
    620620        << "</td><td>" << (*building_here).second << "</td></tr>\n";
    621     building_here ++;
     621    ++building_here;
    622622      }
    623623      textout << "</table></td></tr>\n";
     
    722722          valid_first = false;
    723723          textout << outconvert << "\"" << *valid_here << "\"";
    724           valid_here++;
     724          ++valid_here;
    725725        }
    726726        textout << outconvert
    727727            << "</td></tr>\n";
    728728
    729         filteropt_here++;
     729        ++filteropt_here;
    730730      }
    731731
     
    738738    }
    739739
    740     filternames_here++;
     740    ++filternames_here;
    741741      }
    742742
     
    10891089  while (macrohere != macroend) {
    10901090    if (*macrohere == "status.dm") break;
    1091     macrohere++;
     1091    ++macrohere;
    10921092  }
    10931093  if (macrohere == macroend) {
  • trunk/gsdl/src/recpt/string_pool.cpp

    r7348 r9620  
    3434  while (here != end) {
    3535    delete(*here);
    36     here ++;
     36    ++here;
    3737  }
    3838}
  • trunk/gsdl/src/recpt/summarise.cpp

    r2971 r9620  
    106106  // consider only non-empty terms
    107107  for(text_tarray::iterator term = allterms.begin();
    108       term < allterms.end(); term++) {
     108      term < allterms.end(); ++term) {
    109109    if(!(*term).empty())
    110110      terms.push_back(*term);
     
    125125    // answersSize[0] is the combined size of sentences with 1 keyword, etc.
    126126  for(vector<int>::iterator size = answersSize.begin();
    127       size<answersSize.end(); size++)
     127      size<answersSize.end(); ++size)
    128128    *size = 0; // initialise sentence size
    129129
     
    140140                       *terms_current);
    141141      if(word!=sentence.end())
    142     {        nFound++; totfound++; }
    143       terms_current++;
     142    {        ++nFound; ++totfound; }
     143      ++terms_current;
    144144    }
    145145
     
    152152  text_t answer;
    153153  for(vector<text_tarray>::iterator sentarray = answers.end()-1;
    154       sentarray>=answers.begin(); sentarray--)
     154      sentarray>=answers.begin(); --sentarray)
    155155    for(text_tarray::iterator sentence = (*sentarray).begin();
    156         sentence < (*sentarray).end(); sentence++) {
     156        sentence < (*sentarray).end(); ++sentence) {
    157157      answer.append(*sentence);
    158158      if(answer.size()>=summaryLength)
     
    182182        foundPunctuation = true;
    183183      while ((start<end) && (*start!='>'))
    184     start++;
    185       if(start<end) start++;
     184    ++start;
     185      if(start<end) ++start;
    186186      break;
    187187    case '.':
     
    189189    case '?':
    190190      sentence.push_back(*start);
    191       start++;
     191      ++start;
    192192      if(start>=end ||
    193193         (is_unicode_space(*start) && (*(start-2)<'A' || *(start-2)>'Z'))) {
     
    197197    default:
    198198      sentence.push_back(*start);
    199       start++;
     199      ++start;
    200200      break;
    201201    }
     
    219219    case '>': // skip over rest of html tag
    220220      while ((start>end) && (*start!='<')) // backtrack to beginning of tag
    221     start--;
     221    --start;
    222222      if(start>end) {
    223223        if(paragraph_tag(start) && has_unicode_letdig(sentence))
    224224          found2ndPunctuation = true;
    225         start--;
     225        --start;
    226226      }
    227227      break;
     
    235235        sentence.text_as_usvector().insert(sentence.text_as_usvector().begin(),
    236236          start,start+1);
    237         start--;
     237        --start;
    238238      } else
    239239        if(has_unicode_letdig(sentence) || found1stPunctuation)
     
    242242          sentence.text_as_usvector().insert(
    243243              sentence.text_as_usvector().begin(),start,start+1);
    244           start--;
     244          --start;
    245245          found1stPunctuation = true;
    246246        }
     
    249249      sentence.text_as_usvector().insert(
    250250        sentence.text_as_usvector().begin(),start,start+1);
    251       start--;
     251      --start;
    252252      break;
    253253    }
     
    260260bool paragraph_tag(text_t::iterator start) {
    261261  if(*start=='<') {
    262     start++;
     262    ++start;
    263263    if(*start=='p' || *start=='P') {
    264       start++;
     264      ++start;
    265265      if(is_unicode_space(*start) || *start=='>')
    266266        return true;
  • trunk/gsdl/src/recpt/userdb.cpp

    r7381 r9620  
    7777      // ok
    7878    } else return false;
    79     here++;
     79    ++here;
    8080  }
    8181
     
    9595      // ok
    9696    } else return false;
    97     here++;
     97    ++here;
    9898  }
    9999
     
    243243      new_groups.push_back(*here);
    244244    }
    245     here++;
     245    ++here;
    246246  }
    247247  return new_groups;
     
    369369  while (keys_here != keys_end) {
    370370    keydb.deletekey(*keys_here);
    371     keys_here++;
     371    ++keys_here;
    372372  }
    373373 
  • trunk/gsdl/src/recpt/usersaction.cpp

    r7381 r9620  
    255255    }
    256256   
    257     users_here++;
     257    ++users_here;
    258258  }
    259259
  • trunk/gsdl/src/recpt/vlistbrowserclass.cpp

    r7433 r9620  
    165165
    166166  while (thissection != endsection) {
    167     item++;
     167    ++item;
    168168    get_link_icon (*thissection, args, collink, link, icon);
    169169    bool highlight = false;
     
    191191    }
    192192    textout << outconvert << "\n";
    193     thissection ++;
     193    ++thissection;
    194194  }
    195195
  • trunk/gsdl/src/recpt/z3950proto.cpp

    r7607 r9620  
    5757
    5858  // append the new server
    59   zserver_count++;
     59  ++zserver_count;
    6060  zservers.push_back(&zserver);
    6161}
     
    192192  while (here != end) {
    193193    collist.push_back((*here)->getName());
    194     here++;
     194    ++here;
    195195  }
    196196}
     
    205205      return;
    206206    }
    207     here++;
     207    ++here;
    208208  }
    209209  hascollection=false;
     
    230230      break;
    231231    }
    232     here++;
     232    ++here;
    233233  }
    234234
     
    327327      break;
    328328    }
    329     zserver++;
     329    ++zserver;
    330330  }
    331331  // now have collection in zserver.
     
    376376    maxdocs=ov_here->value.getint();
    377377      }
    378       ov_here++;
     378      ++ov_here;
    379379    }
    380380    err=noError;
     
    409409    docInfo->OID=counter+opt_start-1;
    410410    response.docInfo.push_back(*docInfo);
    411     counter++;
    412     titles_here++;
     411    ++counter;
     412    ++titles_here;
    413413      }
    414414    }
     
    502502        }
    503503          }
    504           opthere++;
     504          ++opthere;
    505505        }
    506506        (*zserver)->getfullrecord(query, querytype, field, i, doctitle, doctext, err);
     
    510510        docs_here->metadata[*fields_here].values.push_back(g_EmptyText);
    511511      }
    512       fields_here++;
     512      ++fields_here;
    513513    } // end of inner while loop
    514     docs_here++;
     514    ++docs_here;
    515515      } // end of outer while loop
    516516    } // end of if (!request.fields.empty())
     
    523523    response.docInfo[0].metadata[(*colmeta_here).first].
    524524      values.push_back((*colmeta_here).second);
    525     colmeta_here++;
     525    ++colmeta_here;
    526526      }
    527527
     
    570570      break;
    571571    }
    572     zserver++;
     572    ++zserver;
    573573  }
    574574  // now have collection in zserver.
  • trunk/gsdl/src/recpt/z3950server.cpp

    r7381 r9620  
    130130
    131131
    132   for (int i=0;i<strlength;i++) {
     132  for (int i=0;i<strlength;++i) {
    133133    if (*(ptr+i)=='"') { // convert " to SPACE...
    134134      *(ptr+i)=' ';
     
    137137      if (inword==false) {
    138138    inword=true;
    139     num_terms++;
     139    ++num_terms;
    140140      }
    141141    }
     
    170170    char *q_type;
    171171    if (querytype==1) q_type=or_str; else q_type=and_str;
    172     for (int i=1;i<num_terms;i++)
     172    for (int i=1;i<num_terms;++i)
    173173      parsed_query+=q_type;
    174174    // append the actual query
     
    253253  }
    254254  last=(int)c_str_titles[0];
    255   for (i=1;i<=last;i++) {
     255  for (i=1;i<=last;++i) {
    256256    titles->push_back(c_str_titles[i]);
    257257    free(c_str_titles[i]);
Note: See TracChangeset for help on using the changeset viewer.