Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit ce285a7

Browse files
jkotasstephentoub
authored andcommitted
Move String to shared corelib partition (dotnet/coreclr#16749)
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
1 parent 542bd03 commit ce285a7

File tree

3 files changed

+772
-0
lines changed

3 files changed

+772
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
6+
using System.Runtime.InteropServices;
7+
8+
internal partial class Interop
9+
{
10+
internal partial class Kernel32
11+
{
12+
[DllImport(Libraries.Kernel32)]
13+
internal static extern unsafe int MultiByteToWideChar(
14+
uint CodePage, uint dwFlags,
15+
byte* lpMultiByteStr, int cbMultiByte,
16+
char* lpWideCharStr, int cchWideChar);
17+
18+
internal const uint MB_PRECOMPOSED = 0x00000001;
19+
}
20+
}

src/Common/src/CoreLib/System.Private.CoreLib.Shared.projitems

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@
492492
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.BinarySearch.cs" />
493493
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.Byte.cs" />
494494
<Compile Include="$(MSBuildThisFileDirectory)System\SpanHelpers.T.cs" />
495+
<Compile Include="$(MSBuildThisFileDirectory)System\String.cs" />
495496
<Compile Include="$(MSBuildThisFileDirectory)System\String.Manipulation.cs" />
496497
<Compile Include="$(MSBuildThisFileDirectory)System\String.Searching.cs" />
497498
<Compile Include="$(MSBuildThisFileDirectory)System\StackOverflowException.cs" />
@@ -686,6 +687,7 @@
686687
<Compile Include="$(MSBuildThisFileDirectory)Interop\Windows\Kernel32\Interop.Globalization.cs" Condition="'$(EnableDummyGlobalizationImplementation)' != 'true'" />
687688
<Compile Include="$(MSBuildThisFileDirectory)Interop\Windows\Kernel32\Interop.LockFile.cs" />
688689
<Compile Include="$(MSBuildThisFileDirectory)Interop\Windows\Kernel32\Interop.MAX_PATH.cs" />
690+
<Compile Include="$(MSBuildThisFileDirectory)Interop\Windows\Kernel32\Interop.MultiByteToWideChar.cs" />
689691
<Compile Include="$(MSBuildThisFileDirectory)Interop\Windows\Kernel32\Interop.OutputDebugString.cs" />
690692
<Compile Include="$(MSBuildThisFileDirectory)Interop\Windows\Kernel32\Interop.ReadFile_SafeHandle_IntPtr.cs" />
691693
<Compile Include="$(MSBuildThisFileDirectory)Interop\Windows\Kernel32\Interop.ReadFile_SafeHandle_NativeOverlapped.cs" />

0 commit comments

Comments
 (0)