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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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  }
Note: See TracChangeset for help on using the changeset viewer.