<div dir="ltr">On Tue, Sep 10, 2013 at 5:31 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com" target="_blank">eli.friedman@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">On Tue, Sep 10, 2013 at 12:45 PM, Rui Ueyama <span dir="ltr"><<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>></span> wrote:</div>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">

+namespace sys {<br>
+namespace windows {<br>
+error_code UTF8ToUTF16(StringRef utf8,<br>
+                       SmallVectorImpl<wchar_t> &utf16);<br>
+error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,<br>
+                       SmallVectorImpl<char> &utf8);<br>
+} // end namespace windows<br>
+} // end namespace sys<br>
 } // end namespace llvm.><br><br></div></div>We already have include/llvm/Support/ConvertUTF.h; we shouldn't need Windows-specific version.<br></blockquote></div></div></div></blockquote><div><br></div><div>We don't have a wrapper equivalent to UTF8ToUTF16, and I didn't think it was worth adding one that would only be called on Windows.</div>
<div><br></div><div>Only the Windows Path wrappers really need to produce UTF16, so it makes sense to me that they hold the functionality.</div></div></div></div>