[PATCH] D17549: More UTF string conversion wrappers

Cameron via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 23 12:00:54 PST 2016


cameron314 created this revision.
cameron314 added a reviewer: zturner.
cameron314 added a subscriber: llvm-commits.

(And a missing string conversion for getenv on Win32, too.)

These new string conversion wrappers convert between std::string (of UTF-8 bytes) and std::wstring, which is particularly useful for Win32 interop.

The motivation behind this is to support a patch I'm preparing for LLDB (the first version of which is at D17107) that makes heavy use of these helper functions for better Unicode support on Windows.

http://reviews.llvm.org/D17549

Files:
  llvm/trunk/include/llvm/Support/ConvertUTF.h
  llvm/trunk/lib/Support/CommandLine.cpp
  llvm/trunk/lib/Support/ConvertUTFWrapper.cpp
  llvm/trunk/unittests/Support/ConvertUTFTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17549.48840.patch
Type: text/x-patch
Size: 8722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160223/456db999/attachment.bin>


More information about the llvm-commits mailing list