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

Function next

include/utf8cpp/checked.h:137–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135
136 template <typename octet_iterator>
137 uint32_t next(octet_iterator& it, octet_iterator end)
138 {
139 uint32_t cp = 0;
140 internal::utf_error err_code = utf8::internal::validate_next(it, end, cp);
141 switch (err_code) {
142 case internal::UTF8_OK :
143 break;
144 case internal::NOT_ENOUGH_ROOM :
145 throw not_enough_room();
146 case internal::INVALID_LEAD :
147 case internal::INCOMPLETE_SEQUENCE :
148 case internal::OVERLONG_SEQUENCE :
149 throw invalid_utf8(*it);
150 case internal::INVALID_CODE_POINT :
151 throw invalid_code_point(cp);
152 }
153 return cp;
154 }
155
156 template <typename octet_iterator>
157 uint32_t peek_next(octet_iterator it, octet_iterator end)

Callers 15

peek_nextFunction · 0.70
previousFunction · 0.70
advanceFunction · 0.70
distanceFunction · 0.70
utf8to16Function · 0.70
utf8to32Function · 0.70
operator *Method · 0.70
iteratorClass · 0.70
operator ++Method · 0.70
jackknifeFunction · 0.50

Calls 4

validate_nextFunction · 0.85
not_enough_roomClass · 0.85
invalid_utf8Class · 0.85
invalid_code_pointClass · 0.85

Tested by

no test coverage detected