MCPcopy Create free account
hub / github.com/cinder/Cinder / get_sequence_2

Function get_sequence_2

include/utf8cpp/core.h:164–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

validate_nextFunction · 0.85

Calls 1

mask8Function · 0.85

Tested by

no test coverage detected