@jabiertxof and @ede123 - I converted my rebase_hrefs Python prototype to C++. What do you think?
rebase_hrefs