| 179 | |
| 180 | template <typename octet_iterator> |
| 181 | utf_error get_sequence_2(octet_iterator& it, octet_iterator end, uint32_t& code_point) |
| 182 | { |
| 183 | if (it == end) |
| 184 | return NOT_ENOUGH_ROOM; |
| 185 | |
| 186 | code_point = utf8::internal::mask8(*it); |
| 187 | |
| 188 | UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(it, end) |
| 189 | |
| 190 | code_point = ((code_point << 6) & 0x7ff) + ((*it) & 0x3f); |
| 191 | |
| 192 | return UTF8_OK; |
| 193 | } |
| 194 | |
| 195 | template <typename octet_iterator> |
| 196 | utf_error get_sequence_3(octet_iterator& it, octet_iterator end, uint32_t& code_point) |
no test coverage detected