-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS][non-icu] HybridGlobalization Get available locales (#93594)
Implements `GlobalizationNative_GetLocalesNative` for iOS hybrid globalization in order to return all of the available locales on the device. Fixes #93514 Contributes to #80689
- Loading branch information
Showing
7 changed files
with
138 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/libraries/System.Globalization/tests/CultureInfo/CultureInfoGetCultures.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Xunit; | ||
|
||
namespace System.Globalization.Tests | ||
{ | ||
public class CultureInfoGetCultures | ||
{ | ||
[Fact] | ||
public void GetSpecificCultures() | ||
{ | ||
var specificCultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures); | ||
Assert.True(specificCultures.Length > 0); | ||
Assert.All(specificCultures, c => Assert.True(c.IsNeutralCulture == false)); | ||
} | ||
|
||
[Fact] | ||
public void GetAllCultures() | ||
{ | ||
var allCultures = CultureInfo.GetCultures(CultureTypes.AllCultures); | ||
Assert.True(allCultures.Length > 0); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters