diff include/llvm/Support/ConvertUTF.h @ 83:60c9769439b8 LLVM3.7

LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 18 Feb 2015 14:55:36 +0900
parents 54457678186b
children 1172e4bd9c6f
line wrap: on
line diff
--- a/include/llvm/Support/ConvertUTF.h	Mon Sep 08 22:07:30 2014 +0900
+++ b/include/llvm/Support/ConvertUTF.h	Wed Feb 18 14:55:36 2015 +0900
@@ -251,6 +251,14 @@
  */
 bool convertUTF16ToUTF8String(ArrayRef<char> SrcBytes, std::string &Out);
 
+/**
+ * Converts a UTF-8 string into a UTF-16 string with native endianness.
+ *
+ * \returns true on success
+ */
+bool convertUTF8ToUTF16String(StringRef SrcUTF8,
+                              SmallVectorImpl<UTF16> &DstUTF16);
+
 } /* end namespace llvm */
 
 #endif