Appends the given UTF-32 character to the given 32-bit string. Returns the number of 32-bit values written.
| 72 | // Appends the given UTF-32 character to the given 32-bit string. Returns the |
| 73 | // number of 32-bit values written. |
| 74 | inline size_t WriteUnicodeCharacter(uint32_t code_point, std::wstring* output) { |
| 75 | // This is the easy case, just append the character. |
| 76 | output->push_back(code_point); |
| 77 | return 1; |
| 78 | } |
| 79 | #endif // defined(WCHAR_T_IS_UTF32) |
| 80 | |
| 81 | // Generalized Unicode converter ----------------------------------------------- |
no test coverage detected