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