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

Function distance

include/utf8cpp/unchecked.h:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119 template <typename octet_iterator>
120 typename std::iterator_traits<octet_iterator>::difference_type
121 distance (octet_iterator first, octet_iterator last)
122 {
123 typename std::iterator_traits<octet_iterator>::difference_type dist;
124 for (dist = 0; first < last; ++dist)
125 utf8::unchecked::next(first);
126 return dist;
127 }
128
129 template <typename u16bit_iterator, typename octet_iterator>
130 octet_iterator utf16to8 (u16bit_iterator start, u16bit_iterator end, octet_iterator result)

Callers

nothing calls this directly

Calls 1

nextFunction · 0.70

Tested by

no test coverage detected