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

Function utf32_to_code_point

extlibs/sol3/include/sol/sol.hpp:11626–11637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11624
11625 template <typename It>
11626 inline decoded_result<It> utf32_to_code_point(It it, It last) {
11627 decoded_result<It> dr;
11628 if (it == last) {
11629 dr.next = it;
11630 dr.error = error_code::sequence_too_short;
11631 return dr;
11632 }
11633 dr.codepoint = static_cast<char32_t>(*it);
11634 dr.next = ++it;
11635 dr.error = error_code::ok;
11636 return dr;
11637 }
11638 }
11639}
11640// end of sol/unicode.hpp

Callers 2

convert_intoMethod · 0.85
pushMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected