| 194 | |
| 195 | template <typename octet_iterator> |
| 196 | utf_error get_sequence_3(octet_iterator& it, octet_iterator end, uint32_t& code_point) |
| 197 | { |
| 198 | if (it == end) |
| 199 | return NOT_ENOUGH_ROOM; |
| 200 | |
| 201 | code_point = utf8::internal::mask8(*it); |
| 202 | |
| 203 | UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(it, end) |
| 204 | |
| 205 | code_point = ((code_point << 12) & 0xffff) + ((utf8::internal::mask8(*it) << 6) & 0xfff); |
| 206 | |
| 207 | UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(it, end) |
| 208 | |
| 209 | code_point += (*it) & 0x3f; |
| 210 | |
| 211 | return UTF8_OK; |
| 212 | } |
| 213 | |
| 214 | template <typename octet_iterator> |
| 215 | utf_error get_sequence_4(octet_iterator& it, octet_iterator end, uint32_t& code_point) |
no test coverage detected