Switch to unified view

a/src/query/plaintorich.cpp b/src/query/plaintorich.cpp
...
...
91
    // Accept word and its position. If word is search term, add
91
    // Accept word and its position. If word is search term, add
92
    // highlight zone definition. If word is part of search group
92
    // highlight zone definition. If word is part of search group
93
    // (phrase or near), update positions list.
93
    // (phrase or near), update positions list.
94
    virtual bool takeword(const std::string& term, int pos, int bts, int bte) {
94
    virtual bool takeword(const std::string& term, int pos, int bts, int bte) {
95
    string dumb = term;
95
    string dumb = term;
96
#ifndef RCL_INDEX_STRIPCHARS
97
    if (o_index_stripchars) {
96
    if (o_index_stripchars) {
98
#endif
99
        if (!unacmaybefold(term, dumb, "UTF-8", UNACOP_UNACFOLD)) {
97
        if (!unacmaybefold(term, dumb, "UTF-8", UNACOP_UNACFOLD)) {
100
        LOGINFO(("PlainToRich::takeword: unac failed for [%s]\n",
98
        LOGINFO(("PlainToRich::takeword: unac failed for [%s]\n",
101
             term.c_str()));
99
             term.c_str()));
102
        return true;
100
        return true;
103
        }
101
        }
104
#ifndef RCL_INDEX_STRIPCHARS
105
    }
102
    }
106
#endif
107
103
108
    //LOGDEB2(("Input dumbbed term: '%s' %d %d %d\n", dumb.c_str(), 
104
    //LOGDEB2(("Input dumbbed term: '%s' %d %d %d\n", dumb.c_str(), 
109
    // pos, bts, bte));
105
    // pos, bts, bte));
110
106
111
    // If this word is a search term, remember its byte-offset span. 
107
    // If this word is a search term, remember its byte-offset span.