comparison 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
comparison
equal deleted inserted replaced
78:af83660cff7b 83:60c9769439b8
249 * \param [out] Out Converted UTF-8 is stored here on success. 249 * \param [out] Out Converted UTF-8 is stored here on success.
250 * \returns true on success 250 * \returns true on success
251 */ 251 */
252 bool convertUTF16ToUTF8String(ArrayRef<char> SrcBytes, std::string &Out); 252 bool convertUTF16ToUTF8String(ArrayRef<char> SrcBytes, std::string &Out);
253 253
254 /**
255 * Converts a UTF-8 string into a UTF-16 string with native endianness.
256 *
257 * \returns true on success
258 */
259 bool convertUTF8ToUTF16String(StringRef SrcUTF8,
260 SmallVectorImpl<UTF16> &DstUTF16);
261
254 } /* end namespace llvm */ 262 } /* end namespace llvm */
255 263
256 #endif 264 #endif
257 265
258 /* --------------------------------------------------------------------- */ 266 /* --------------------------------------------------------------------- */