LanguageExtensionMethods
Utility class for language and language family and language region logic.
Properties
LinguisticRegions
#Enumerate over all linguistic geographic regions.
public static IEnumerable<(LanguageRegion primary, LanguageRegion secondary)> LinguisticRegions { get; }
Methods
Find the family which contains the given language.
Find the family which contains the given language.
Create the CultureInfo object associated with the specified language. Note: there is no culture information for the ordinal language.
Enumerate over all languages which belong to a specific family.
Enumerate over all languages which belong to a specific region.
Compare two strings using the language rules.
public static int StringComparison()
this Language
language,
Language rules.
a,
First text.
b,
Second text.
Options for comparison.
Returns: Comparison key.
Test two strings for equality using the language rules.
public static bool StringEquality()
this Language
language,
Language rules.
a,
First text.
b,
Second text.
Options for equality.
Returns: True if strings are equal.
Measure the number of final characters in a string. This method will count combining characters as one.
Lower case a string.
Create a sorting map for an array of strings.
Returns: Sorting map.
Upper case a string.
Gets the flag icon associated with a particular language. Not every language has a flag, either because it doesn't represent a nation state, or because it overlaps several states with competing flags.