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

Commit cbdc181

Browse files
jkotasstephentoub
authored andcommitted
Move String.Manipulation.cs to shared (dotnet/coreclr#16226)
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
1 parent 44abe08 commit cbdc181

File tree

4 files changed

+1878
-16
lines changed

4 files changed

+1878
-16
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@
487487
<Compile Include="$(MSBuildThisFileDirectory)System\Span.Fast.cs" />
488488
<Compile Include="$(MSBuildThisFileDirectory)System\SpanDebugView.cs" />
489489
<Compile Include="$(MSBuildThisFileDirectory)System\Span.NonGeneric.cs" />
490+
<Compile Include="$(MSBuildThisFileDirectory)System\String.Manipulation.cs" />
490491
<Compile Include="$(MSBuildThisFileDirectory)System\String.Searching.cs" />
491492
<Compile Include="$(MSBuildThisFileDirectory)System\StringSpanHelpers.cs" />
492493
<Compile Include="$(MSBuildThisFileDirectory)System\StackOverflowException.cs" />

src/Common/src/CoreLib/System/Char.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,14 +401,14 @@ public static char ToUpper(char c, CultureInfo culture)
401401
//
402402
public static char ToUpper(char c)
403403
{
404-
return ToUpper(c, CultureInfo.CurrentCulture);
404+
return CultureInfo.CurrentCulture.TextInfo.ToUpper(c);
405405
}
406406

407407

408408
// Converts a character to upper-case for invariant culture.
409409
public static char ToUpperInvariant(char c)
410410
{
411-
return ToUpper(c, CultureInfo.InvariantCulture);
411+
return CultureInfo.InvariantCulture.TextInfo.ToUpper(c);
412412
}
413413

414414

@@ -432,14 +432,14 @@ public static char ToLower(char c, CultureInfo culture)
432432
// Converts a character to lower-case for the default culture.
433433
public static char ToLower(char c)
434434
{
435-
return ToLower(c, CultureInfo.CurrentCulture);
435+
return CultureInfo.CurrentCulture.TextInfo.ToLower(c);
436436
}
437437

438438

439439
// Converts a character to lower-case for invariant culture.
440440
public static char ToLowerInvariant(char c)
441441
{
442-
return ToLower(c, CultureInfo.InvariantCulture);
442+
return CultureInfo.InvariantCulture.TextInfo.ToLower(c);
443443
}
444444

445445

0 commit comments

Comments
 (0)