mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-22 19:53:22 -04:00
+ remove useless comment
This commit is contained in:
parent
72e62fab6b
commit
fb1d0893e3
@ -63,18 +63,5 @@ void appendToFirstOccurence(std::string &content, const std::string regex, cons
|
|||||||
UErrorCode status = U_ZERO_ERROR;
|
UErrorCode status = U_ZERO_ERROR;
|
||||||
content.insert(matcher->start(status), replacement);
|
content.insert(matcher->start(status), replacement);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
regmatch_t matchs[1];
|
|
||||||
regex_t regexp;
|
|
||||||
|
|
||||||
regcomp(®exp, regex.data(), REG_ICASE);
|
|
||||||
if (!regexec(®exp, content.data(), 1, matchs, 0)) {
|
|
||||||
if (matchs[0].rm_so > 0)
|
|
||||||
content.insert(matchs[0].rm_eo, replacement);
|
|
||||||
}
|
|
||||||
|
|
||||||
regfree(®exp);
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user