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

Function get_sequence_1

include/utf8cpp/core.h:153–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 /// get_sequence_x functions decode utf-8 sequences of the length x
152 template <typename octet_iterator>
153 utf_error get_sequence_1(octet_iterator& it, octet_iterator end, uint32_t& code_point)
154 {
155 if (it == end)
156 return NOT_ENOUGH_ROOM;
157
158 code_point = utf8::internal::mask8(*it);
159
160 return UTF8_OK;
161 }
162
163 template <typename octet_iterator>
164 utf_error get_sequence_2(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