| 720 | |
| 721 | template<typename Iter> |
| 722 | constexpr detail::enable_utf8_cp_t<Iter, bool> |
| 723 | starts_encoded(Iter first, Iter last) |
| 724 | { |
| 725 | if (first == last) |
| 726 | return true; |
| 727 | |
| 728 | int const cp_bytes = boost::parser::detail::text::utf8_code_units(*first); |
| 729 | if (cp_bytes == -1 || last - first < cp_bytes) |
| 730 | return false; |
| 731 | |
| 732 | return !detail::end_of_invalid_utf8(first); |
| 733 | } |
| 734 | |
| 735 | template<typename Iter> |
| 736 | constexpr detail::enable_utf16_cp_t<Iter, bool> |
no test coverage detected