Class CultureInfoExtensions
Inheritance
System.Object
CultureInfoExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
public static class CultureInfoExtensions
Properties
Declaration
public static Dictionary<string, string> LegacyLanguageCodeMapping { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.String> |
|
Methods
Declaration
public static bool AreCompatible(CultureInfo c1, CultureInfo c2)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
c1 |
|
System.Globalization.CultureInfo |
c2 |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static CultureInfo GetCultureInfo(int lcid)
Parameters
Type |
Name |
Description |
System.Int32 |
lcid |
|
Returns
Type |
Description |
System.Globalization.CultureInfo |
|
Declaration
public static CultureInfo GetCultureInfo(int lcid, bool returnNullForUnknowns)
Parameters
Type |
Name |
Description |
System.Int32 |
lcid |
|
System.Boolean |
returnNullForUnknowns |
|
Returns
Type |
Description |
System.Globalization.CultureInfo |
|
Declaration
public static CultureInfo GetCultureInfo(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Globalization.CultureInfo |
|
Declaration
public static CultureInfo GetCultureInfo(string name, bool returnNullForUnknowns)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Boolean |
returnNullForUnknowns |
|
Returns
Type |
Description |
System.Globalization.CultureInfo |
|
Declaration
public static CultureInfoExtensions.LanguageGroupID GetLanguageGroupID(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Declaration
public static string GetLanguageGroupName(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static HashSet<string> GetLeadingClitics(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Collections.Generic.HashSet<System.String> |
|
Declaration
public static string GetMappedCultureCodeForLegacyCode(string legacyCode)
Parameters
Type |
Name |
Description |
System.String |
legacyCode |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static CultureInfo GetRegionNeutralCulture(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Globalization.CultureInfo |
|
Declaration
public static CultureInfo GetRegionQualifiedCulture(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Globalization.CultureInfo |
|
Declaration
public static string GetRegionQualifiedCulture(string cultureCode)
Parameters
Type |
Name |
Description |
System.String |
cultureCode |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static HashSet<string> GetTrailingClitics(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Collections.Generic.HashSet<System.String> |
|
Declaration
public static bool IsRomanceLanguage(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool UseBlankAsSentenceSeparator(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool UseBlankAsWordSeparator(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool UseFullWidth(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool UsesClitics(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool UsesDefaultDigits(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool UsesStandardNumberGrouping(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Boolean |
|