MCPcopy Create free account
hub / github.com/Icinga/icinga2 / get_sequence_3

Function get_sequence_3

third-party/utf8cpp/source/utf8/core.h:196–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

validate_nextFunction · 0.85

Calls 1

mask8Function · 0.85

Tested by

no test coverage detected