| 162 | |
| 163 | template <typename octet_iterator> |
| 164 | utf_error get_sequence_2(octet_iterator& it, octet_iterator end, uint32_t& code_point) |
| 165 | { |
| 166 | if (it == end) |
| 167 | return NOT_ENOUGH_ROOM; |
| 168 | |
| 169 | code_point = utf8::internal::mask8(*it); |
| 170 | |
| 171 | UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(it, end) |
| 172 | |
| 173 | code_point = ((code_point << 6) & 0x7ff) + ((*it) & 0x3f); |
| 174 | |
| 175 | return UTF8_OK; |
| 176 | } |
| 177 | |
| 178 | template <typename octet_iterator> |
| 179 | utf_error get_sequence_3(octet_iterator& it, octet_iterator end, uint32_t& code_point) |
no test coverage detected