Add utf8_iterator::advance(CharCount, utf8_iterator end)

This commit is contained in:
Maxime Coste 2013-03-06 19:03:43 +01:00
parent 4712765e8a
commit 5ff22d44be

View File

@ -33,6 +33,12 @@ public:
return save;
}
void advance(CharCount count, const utf8_iterator& end)
{
while (*this != end and count-- > 0)
++*this;
}
utf8_iterator& operator--()
{
m_it = utf8::previous(m_it);