| 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 |
no outgoing calls
no test coverage detected