Add utf8_iterator::advance(CharCount, utf8_iterator end)
This commit is contained in:
parent
4712765e8a
commit
5ff22d44be
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user