|
Boost Users : |
Subject: Re: [Boost-users] using iterator_range with wchar_t
From: Jeff Flinn (jeffrey.flinn_at_[hidden])
Date: 2014-01-13 11:42:14
On 1/13/14 11:22 AM, Sean Farrow wrote:
> Hi All,
>
> Im sorry if this has already been covered.
>
> Im trying to use iterator_range with a wchar_t.
>
> My code is as follows:
>
> std::wstringbuttonName
> =L"jar:file:/C:/Program%20Files/diseMP/4.5.6/O2-LIVE/lib/client/ClientResources.jar!/branding/default/buttons/FindButtonActive.png";
>
> boolisGraphical =false;
>
> isGraphical =boost::algorithm::starts_with(buttonName,
> L"jar:file:/") && boost::algorithm::ends_with(buttonName, L".png");
>
> boost::iterator_range<wchar_t> range
> =boost::algorithm::find_last(buttonName, L"/");
try declaring the range type as:
boost::iterator_range<std::wstring::iterator>
or
boost::iterator_range<wchar_t*>
or
auto
HTH, Jeff
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net