lamuguo / re2

Automatically exported from code.google.com/p/re2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

feature: Replace and GlobalReplace with callback #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please implement a Replace and GlobalReplace version that takes a function as 
argument to compute the replacement.

Like the idea below:

void UnescapeHtmlEntity(const StringPiece& match, string* rewrite) {
  *rewrite = ...;
}

RE2::GlobalReplace(&html_text, "&#[0-9]+;", &UnescapeHtmlEntity);

Original issue reported on code.google.com by nilton.v...@gmail.com on 7 Sep 2010 at 4:08

GoogleCodeExporter commented 9 years ago

Original comment by rsc@golang.org on 10 Jan 2014 at 3:17

GoogleCodeExporter commented 9 years ago
RE2 has moved to GitHub. I have not moved the issues over. If this issue is 
still important to you, please file a new one at 
https://github.com/google/re2/issues. Thank you.

Original comment by rsc@golang.org on 11 Dec 2014 at 4:45