MCPcopy Create free account
hub / github.com/Segs/Segs / utf32_to_code_point

Function utf32_to_code_point

3rd_party/lua_sol2/include/sol.hpp:9143–9154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9141
9142 template <typename It>
9143 inline decoded_result<It> utf32_to_code_point(It it, It last) {
9144 decoded_result<It> dr;
9145 if (it == last) {
9146 dr.next = it;
9147 dr.error = error_code::sequence_too_short;
9148 return dr;
9149 }
9150 dr.codepoint = static_cast<char32_t>(*it);
9151 dr.next = ++it;
9152 dr.error = error_code::ok;
9153 return dr;
9154 }
9155 }
9156}
9157// end of sol/unicode.hpp

Callers 2

convert_intoMethod · 0.85
pushMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected