mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
minor
This commit is contained in:
parent
36220eb549
commit
6ec5113812
1 changed files with 20 additions and 21 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue