This commit is contained in:
Andrei Alexandrescu 2009-04-06 05:44:56 +00:00
parent 36220eb549
commit 6ec5113812

View file

@ -13,7 +13,6 @@ private import std.windows.syserror;
private import std.utf; private import std.utf;
private import std.string; private import std.string;
/****************************************** /******************************************
* Converts the UTF-8 string s into a null-terminated string in a Windows * Converts the UTF-8 string s into a null-terminated string in a Windows
* 8-bit character set. * 8-bit character set.
@ -29,7 +28,7 @@ private import std.string;
* yaneurao, Walter Bright, Stewart Gordon * yaneurao, Walter Bright, Stewart Gordon
*/ */
const(char)* toMBSz(string s, uint codePage = 0) const(char)* toMBSz(in char[] s, uint codePage = 0)
{ {
// Only need to do this if any chars have the high bit set // Only need to do this if any chars have the high bit set
foreach (char c; s) foreach (char c; s)