Project

General

Profile

Bug #1210 ยป fix_regex_tmp.patch

Zulan Zulan, 19 Aug 2016 14:20

View differences:

src/version.cpp (working copy)
183 183
    for( exv_grep_keys_t::const_iterator g = greps.begin();
184 184
      !bPrint && g != greps.end() ; ++g
185 185
    ) {
186
        std::string Key(key);
186 187
#if __cplusplus >= CPLUSPLUS11
187 188
        std::smatch m;
188
        bPrint = std::regex_search(std::string(key),m,*g) || std::regex_search(value,m,*g);
189
        bPrint = std::regex_search(Key,m,*g) || std::regex_search(value,m,*g);
189 190
#else
190 191
#if EXV_HAVE_REGEX
191 192
        bPrint = (  0 == regexec( &(*g), key          , 0, NULL, 0)
......
193 194
                 );
194 195
#else
195 196
            std::string Pattern(g->pattern_);
196
            std::string Key(key);
197 197
            std::string Value(value);
198 198
            if ( g->bIgnoreCase_ ) {
199 199
                // https://notfaq.wordpress.com/2007/08/04/cc-convert-string-to-upperlower-case/
    (1-1/1)