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

Function previous

include/utf8cpp/checked.h:179–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 /// Deprecated in versions that include "prior"
178 template <typename octet_iterator>
179 uint32_t previous(octet_iterator& it, octet_iterator pass_start)
180 {
181 octet_iterator end = it;
182 while (utf8::internal::is_trail(*(--it)))
183 if (it == pass_start)
184 throw invalid_utf8(*it); // error - no lead byte in the sequence
185 octet_iterator temp = it;
186 return utf8::next(temp, end);
187 }
188
189 template <typename octet_iterator, typename distance_type>
190 void advance (octet_iterator& it, distance_type n, octet_iterator end)

Callers

nothing calls this directly

Calls 3

is_trailFunction · 0.85
invalid_utf8Class · 0.85
nextFunction · 0.70

Tested by

no test coverage detected