| 25 | // one OS or the other. |
| 26 | template <typename T> |
| 27 | auto select(const std::basic_string<T>& string16, const std::basic_string<T>& string32) |
| 28 | { |
| 29 | assert(string16 != string32 && "Invalid to select between identical inputs"); |
| 30 | if constexpr (sizeof(wchar_t) == 2) |
| 31 | return string16; |
| 32 | else |
| 33 | return string32; |
| 34 | } |
| 35 | |
| 36 | auto toHex(const char32_t character) |
| 37 | { |