| 11 | { |
| 12 | |
| 13 | void unichar_to_surrogate_pair(unichar input, unichar &first, unichar &second) |
| 14 | { |
| 15 | using namespace unicode_helpers; |
| 16 | first = ((input - SMP_TOP) >> VALID_BITS) | SURROGATE_FIRST_TOP; |
| 17 | second = (input & SURROGATE_CLEARING_MASK) | SURROGATE_SECOND_TOP; |
| 18 | } |
| 19 | |
| 20 | template <int N> struct ustring2wstr |
| 21 | { |
no outgoing calls
no test coverage detected