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

Function increase_safely

include/utf8cpp/core.h:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 /// Helper for get_sequence_x
137 template <typename octet_iterator>
138 utf_error increase_safely(octet_iterator& it, octet_iterator end)
139 {
140 if (++it == end)
141 return NOT_ENOUGH_ROOM;
142
143 if (!utf8::internal::is_trail(*it))
144 return INCOMPLETE_SEQUENCE;
145
146 return UTF8_OK;
147 }
148
149 #define UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(IT, END) {utf_error ret = increase_safely(IT, END); if (ret != UTF8_OK) return ret;}
150

Callers

nothing calls this directly

Calls 1

is_trailFunction · 0.85

Tested by

no test coverage detected