MCPcopy Create free account
hub / github.com/boostorg/parser / transcode_to_8

Function transcode_to_8

include/boost/parser/detail/text/transcode_algorithm.hpp:158–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156
157 template<bool UseN, typename Iter, typename Sentinel, typename OutIter>
158 transcode_result<Iter, OutIter> transcode_to_8(
159 tag_t<format::utf8>,
160 Iter first,
161 Sentinel last,
162 std::ptrdiff_t n,
163 OutIter out)
164 {
165 for (; first != last && (!UseN || n); ++first, ++out) {
166 *out = *first;
167 --n;
168 }
169 return {first, out};
170 }
171
172 template<bool UseN, typename Iter, typename Sentinel, typename OutIter>
173 transcode_result<Iter, OutIter> transcode_to_16(

Callers

nothing calls this directly

Calls 3

surrogateFunction · 0.85
read_into_utf8_iterFunction · 0.85
low_surrogateFunction · 0.85

Tested by

no test coverage detected