Converts a UTF‐8 string into a UTF‐16 string with native endianness.
Synopsis
Declared in <llvm/Support/ConvertUTF.h>
bool
convertUTF8ToUTF16String(
StringRef SrcUTF8,
SmallVectorImpl<UTF16>& DstUTF16);
Return Value
true on success
Parameters
Name |
Description |
SrcUTF8 |
UTF‐8 encoded input string. |
DstUTF16 [out] |
Converted UTF‐16 is stored here on success. |
Created with MrDocs