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

Function get_sequence_2

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

Source from the content-addressed store, hash-verified

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)

Callers 1

validate_nextFunction · 0.85

Calls 1

mask8Function · 0.85

Tested by

no test coverage detected