+ fix bug in regex insertion (string was inserted in wrong place)

This commit is contained in:
kelson42 2012-02-27 17:25:01 +00:00
parent bc8a400fd1
commit 8f89edf17c
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
*/
#include "regexTools.h"
#include <iostream>
std::map<std::string, RegexMatcher*> regexCache;
@ -61,7 +62,7 @@ void appendToFirstOccurence(std::string &content, const std::string regex, cons
if (matcher->find()) {
UErrorCode status = U_ZERO_ERROR;
content.insert(matcher->start(status), replacement);
content.insert(matcher->end(status), replacement);
}
}