Switch to unified view

a/src/rcldb/rclabstract.cpp b/src/rcldb/rclabstract.cpp
...
...
17
#include "autoconfig.h"
17
#include "autoconfig.h"
18
18
19
#include <math.h>
19
#include <math.h>
20
20
21
#include <map>
21
#include <map>
22
#include <tr1/unordered_set>
22
#include "unordered_defs.h"
23
using std::tr1::unordered_set;
24
23
25
using namespace std;
24
using namespace std;
26
25
27
#include "debuglog.h"
26
#include "debuglog.h"
28
#include "rcldb.h"
27
#include "rcldb.h"
...
...
360
    // The terms 'array' that we partially populate with the document
359
    // The terms 'array' that we partially populate with the document
361
    // terms, at their positions around the search terms positions:
360
    // terms, at their positions around the search terms positions:
362
    map<unsigned int, string> sparseDoc;
361
    map<unsigned int, string> sparseDoc;
363
    // Also remember apart the search term positions so that we can list
362
    // Also remember apart the search term positions so that we can list
364
    // them with their snippets.
363
    // them with their snippets.
365
    unordered_set<unsigned int> searchTermPositions;
364
    STD_UNORDERED_SET<unsigned int> searchTermPositions;
366
365
367
    // Remember max position. Used to stop walking positions lists while 
366
    // Remember max position. Used to stop walking positions lists while 
368
    // populating the adjacent slots.
367
    // populating the adjacent slots.
369
    unsigned int maxpos = 0;
368
    unsigned int maxpos = 0;
370
369