mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-26 04:52:53 +03:00
add utf8::make_iterator helper function
This commit is contained in:
parent
245e68e26e
commit
43ff1909fb
@ -140,8 +140,13 @@ private:
|
||||
mutable Codepoint m_value = -1;
|
||||
};
|
||||
|
||||
template<typename InvalidPolicy = InvalidBytePolicy::Assert, typename Iterator>
|
||||
utf8_iterator<Iterator, InvalidPolicy> make_iterator(Iterator it)
|
||||
{
|
||||
return utf8_iterator<Iterator, InvalidPolicy>{std::move(it)};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
#endif // utf8_iterator_hh_INCLUDED
|
||||
|
Loading…
Reference in New Issue
Block a user