Changeset 9620 for trunk/gsdl/src/recpt/phindaction.cpp
- Timestamp:
- 2005-04-11T11:32:00+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/phindaction.cpp
r7734 r9620 580 580 // Get the word 581 581 word.clear(); 582 for (; *next != ':'; next++) {582 for (; *next != ':'; ++next) { 583 583 word.push_back(*next); 584 584 } … … 586 586 // Get total frequency 587 587 tf = 0; 588 for ( next++; *next != ':'; next++) {588 for (++next; *next != ':'; ++next) { 589 589 tf *= 10; 590 590 tf += (*next - '0'); … … 593 593 // Get expansion frequency 594 594 ef = 0; 595 for ( next++; *next != ':'; next++) {595 for (++next; *next != ':'; ++next) { 596 596 ef *= 10; 597 597 ef += (*next - '0'); … … 600 600 // Get document frequency 601 601 df = 0; 602 for ( next++; *next != ':'; next++) {602 for (++next; *next != ':'; ++next) { 603 603 df *= 10; 604 604 df += (*next - '0'); … … 608 608 el.clear(); 609 609 unsigned long e = 0; 610 for ( next++; *next != ':'; next++) {610 for (++next; *next != ':'; ++next) { 611 611 if (*next == ',') { 612 612 el.push_back(e); … … 623 623 bool readnum = false; 624 624 unsigned long d = 0; 625 for ( next++; *next != ':'; next++) {625 for (++next; *next != ':'; ++next) { 626 626 if (*next == ',') { 627 627 docnum.push_back(d); … … 649 649 // link frequency 650 650 lf = 0; 651 for ( next++; *next != ':'; next++) {651 for (++next; *next != ':'; ++next) { 652 652 lf *= 10; 653 653 lf += (*next - '0'); … … 662 662 bool typedone = false; 663 663 unsigned long l = 0; 664 for ( next++; *next != ':'; next++) {664 for (++next; *next != ':'; ++next) { 665 665 666 666 if (!typedone) { … … 703 703 UCArray type, text; 704 704 705 for (unsigned long l = first; l < last; l++) {705 for (unsigned long l = first; l < last; ++l) { 706 706 707 707 // get the phrase data … … 769 769 // Get the word 770 770 word.clear(); 771 for (; *next != ':'; next++) {771 for (; *next != ':'; ++next) { 772 772 word.push_back(*next); 773 773 } … … 775 775 // Get total frequency 776 776 tf = 0; 777 for ( next++; *next != ':'; next++) {777 for (++next; *next != ':'; ++next) { 778 778 tf *= 10; 779 779 tf += (*next - '0'); … … 782 782 // Get expansion frequency 783 783 ef = 0; 784 for ( next++; *next != ':'; next++) {784 for (++next; *next != ':'; ++next) { 785 785 ef *= 10; 786 786 ef += (*next - '0'); … … 789 789 // Get document frequency 790 790 df = 0; 791 for ( next++; *next != ':'; next++) {791 for (++next; *next != ':'; ++next) { 792 792 df *= 10; 793 793 df += (*next - '0'); … … 816 816 toUCArray(body, ucbody); 817 817 818 for (unsigned long e = first; e < last; e++) {818 for (unsigned long e = first; e < last; ++e) { 819 819 820 820 phrase = elist[e]; … … 952 952 unsigned long freq, doc; 953 953 954 for (unsigned long d = first; d < last; d++) {954 for (unsigned long d = first; d < last; ++d) { 955 955 doc = docNums[d]; 956 956 freq = docFreq[d]; … … 1012 1012 // Get the document OID (hash) 1013 1013 hash.clear(); 1014 for (; *next != '\t'; next++) {1014 for (; *next != '\t'; ++next) { 1015 1015 hash.push_back(*next); 1016 1016 } … … 1019 1019 text.push_back('\n'); 1020 1020 title.clear(); 1021 for ( next++; *next != '\n'; next++) {1021 for (++next; *next != '\n'; ++next) { 1022 1022 title.push_back(*next); 1023 1023 }
Note:
See TracChangeset
for help on using the changeset viewer.