From: Sean Parent (sparent_at_[hidden])
Date: 2006-07-06 01:31:44


On Jul 5, 2006, at 10:15 PM, boost-request_at_[hidden] wrote:

> std::string s = get_some_utf_8_xml_data();
>
> utf_range r = boost::find(utf_range(s), UL0x0000FEFF);
>
> assert(*r.begin().base() == U0xEF);

Not sure why find would return a range - but so long as I can also
use it with standard algorithms, and it generates efficient code I'm
happy.

Sean