ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/Search/trunk/Ranker.hpp
(Generate patch)

Comparing trunk/Search/Ranker.h (file contents):
Revision 1 by douglas, 2002-12-04T20:22:59-08:00 vs.
Revision 28 by douglas, 2003-01-02T19:42:33-08:00

# Line 1 | Line 1
1   /* ============================================================================
2   * Douglas Thrift's Search Engine License
3   *
4 < * Copyright (C) 2002, Douglas Thrift. All Rights Reserved.
4 > * Copyright (C) 2002-2003, Douglas Thrift. All Rights Reserved.
5   * Redistribution and use in source and binary forms, with or without
6   * modification, are permitted provided that the following conditions are met:
7   *
# Line 79 | Line 79 | private:
79          void checkRequired();
80          void checkExcluded();
81          void checkEitherOr();
82 <        unsigned find(string& word, string& where);
83 <        unsigned find(string& word, string& where, map<unsigned, unsigned>&
82 >        unsigned find(string word, const string& where);
83 >        unsigned find(string word, const string& where, map<unsigned, unsigned>&
84                  occurrences);
85 <        unsigned phrase(string& phrase, string& where);
86 <        unsigned phrase(string& phrase, string& where, map<unsigned, unsigned>&
85 >        unsigned phrase(const string& phrase, const string& where);
86 >        unsigned phrase(const string& phrase, const string& where, map<unsigned,
87 >                unsigned>& occurrences);
88 >        unsigned phrase(const vector<string>& words, unsigned word, unsigned&
89 >                begin, bool start, const string& where);
90 >        unsigned phrase(const vector<string>& words, unsigned word, unsigned&
91 >                begin, bool start, const string& where, map<unsigned, unsigned>&
92                  occurrences);
88        unsigned phrase(vector<string>& words, unsigned word, unsigned& begin, bool
89                start, string& where);
90        unsigned phrase(vector<string>& words, unsigned word, unsigned& begin, bool
91                start, string& where, map<unsigned, unsigned>& occurrences);
93          unsigned evaluate(vector<unsigned>& ins);
94          void decrap(string& crap);
95   public:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines