Changeset 2704 for trunk/gsdl/src
- Timestamp:
- 2001-08-19T10:37:04+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/phind/generate/phrase.cpp
r2694 r2704 744 744 745 745 int Phrase::expandWhileUniqueSuffixExtension() { 746 assert(forward);747 746 ensureSuffixFound(); 748 747 749 748 // if the phrase occurs only once, do nothing 750 if (suffixFrequency < 2) {749 if (suffixFrequency < 2) 751 750 return 0; 752 } 751 752 // if we already know there's no unique suffix extension, do nothing 753 if (uniqueSuffixExtension == 0) 754 return 0; 753 755 754 756 // count the length over which the cells are the same … … 785 787 786 788 int Phrase::expandWhileUniquePrefixExtension() { 787 assert(forward);788 789 ensurePrefixFound(); 789 790 790 791 // if the phrase occurs only once, do nothing 791 if (prefixFrequency < 2) {792 if (prefixFrequency < 2) 792 793 return 0; 793 } 794 795 // if we already know there's no unique extension, do nothing 796 if (uniquePrefixExtension == 0) 797 return 0; 794 798 795 799 // count the length over which the cells are the same
Note:
See TracChangeset
for help on using the changeset viewer.