Method | Description | |
---|---|---|
GetCodes ( string langTag, string &languageCode, string &scriptCode, string ®ionCode, string &variantCode ) : bool |
Gets the codes of the specified language tag.
|
|
GetLanguageSubtag ( string code ) : |
Gets the language subtag with the specified code.
|
|
GetPrivateUseAndStandardVariant ( string wholeVariant, string &standardVariant ) : string |
Standard way to split a Variant into the standard-variant part (before any -x-, or empty if it starts with x-) and the private-use part (after the x part, or empty if there is no x). Returns the private use part.
|
|
GetRegionSubtag ( string code ) : |
Gets the region subtag with the specified code.
|
|
GetRegionSubtag ( string code, string name ) : |
Get a region subtag with the specified code and name. If it is a standard region, the name passed in will be ignored, and the standard name used. If not, it will have the specified name and code, and be marked private use.
|
|
GetScriptSubtag ( string code ) : |
Gets the script subtag with the specified code.
|
|
GetScriptSubtag ( string code, string name ) : |
Gets the script subtag with the specified code. If it is not a known code, returns a private-use tag with the specified name and code; if it is known, the supplied name is ignored.
|
|
GetSubtags ( string langTag, |
Gets the subtags of the specified language tag.
|
|
GetVariantSubtag ( string code ) : |
Gets the variant subtag with the specified code.
|
|
GetVariantSubtag ( string code, string name, IEnumerable |
Gets the variant subtag with the specified code. If it is not a known (non-private-use) one, make a private-use one with the specified values. Insert 'x' or move it earlier if any leading parts are not standard.
|
|
IsLanguageCodeValid ( string code ) : bool |
Determines whether the specified language code is valid.
|
|
IsPrivateUseRegionCode ( string regionCode ) : bool |
Determines whether the specified region code is private use.
|
|
IsRegionCodeValid ( string code ) : bool |
Determines whether the specified region code is valid.
|
|
IsScriptCodeValid ( string code ) : bool |
Determines whether the specified script code is valid.
|
|
IsValid ( string langTag ) : bool |
Determines whether the specified language tag is valid.
|
|
IsVariantCodeValid ( string code ) : bool |
Determines whether the specified variant code is valid.
|
|
ToIcuLocale ( |
Generates an ICU locale from the specified language tag subtags.
|
|
ToIcuLocale ( string langTag ) : string |
Converts the specified language tag to an ICU locale.
|
|
ToIcuLocale ( string languageCode, string scriptCode, string regionCode, string variantCode ) : string |
Generates an ICU locale from the specified language tag codes.
|
|
ToLangTag ( |
Generates a language tag from the specified subtags.
|
|
ToLangTag ( string icuLocale ) : string |
Converts the specified ICU locale to a language tag. If the ICU locale is already a valid language tag, it will return it.
|
|
ToLangTag ( string languageCode, string scriptCode, string regionCode, string variantCode ) : string |
Generates a language tag from the specified codes.
|
Method | Description | |
---|---|---|
LangTagUtils ( ) : System | ||
NextSubTag ( string subTags, int &subTagIndex, bool &privateUsePrefix ) : string | ||
TranslateVariantCode ( string variantCode, string>.Func |
Translates standard variant codes to their expanded (semi-human-readable) format; all others are translated using the given function.
|
|
TreatAsCustomRegion ( string regionCode ) : bool | ||
TreatAsCustomScript ( string scriptCode ) : bool |
public static GetCodes ( string langTag, string &languageCode, string &scriptCode, string ®ionCode, string &variantCode ) : bool | ||
langTag | string | The lang tag. |
languageCode | string | The language code. |
scriptCode | string | The script code. |
regionCode | string | The region code. |
variantCode | string | The variant code. |
return | bool |
public static GetLanguageSubtag ( string code ) : |
||
code | string | The code. |
return |
public static GetPrivateUseAndStandardVariant ( string wholeVariant, string &standardVariant ) : string | ||
wholeVariant | string | |
standardVariant | string | |
return | string |
public static GetRegionSubtag ( string code ) : |
||
code | string | The code. |
return |
public static GetRegionSubtag ( string code, string name ) : |
||
code | string | |
name | string | |
return |
public static GetScriptSubtag ( string code ) : |
||
code | string | The code. |
return |
public static GetScriptSubtag ( string code, string name ) : |
||
code | string | |
name | string | |
return |
public static GetSubtags ( string langTag, |
||
langTag | string | The language tag. |
languageSubtag | The language subtag. | |
scriptSubtag | The script subtag. | |
regionSubtag | The region subtag. | |
variantSubtag | The variant subtag. | |
return | bool |
public static GetVariantSubtag ( string code ) : |
||
code | string | |
return |
public static GetVariantSubtag ( string code, string name, IEnumerable |
||
code | string | |
name | string | |
prefixes | IEnumerable |
|
return |
public static IsLanguageCodeValid ( string code ) : bool | ||
code | string | The language code. |
return | bool |
public static IsPrivateUseRegionCode ( string regionCode ) : bool | ||
regionCode | string | The region code. |
return | bool |
public static IsRegionCodeValid ( string code ) : bool | ||
code | string | The region code. |
return | bool |
public static IsScriptCodeValid ( string code ) : bool | ||
code | string | The script code. |
return | bool |
public static IsValid ( string langTag ) : bool | ||
langTag | string | The language tag. |
return | bool |
public static IsVariantCodeValid ( string code ) : bool | ||
code | string | The variant code. |
return | bool |
public static ToIcuLocale ( |
||
languageSubtag | The language subtag. | |
scriptSubtag | The script subtag. | |
regionSubtag | The region subtag. | |
variantSubtag | The variant subtag. | |
return | string |
public static ToIcuLocale ( string langTag ) : string | ||
langTag | string | The language tag. |
return | string |
public static ToIcuLocale ( string languageCode, string scriptCode, string regionCode, string variantCode ) : string | ||
languageCode | string | The language code. |
scriptCode | string | The script code. |
regionCode | string | The region code. |
variantCode | string | The variant code. |
return | string |
public static ToLangTag ( |
||
languageSubtag | The language subtag. | |
scriptSubtag | The script subtag. | |
regionSubtag | The region subtag. | |
variantSubtag | The variant subtag. | |
return | string |
public static ToLangTag ( string icuLocale ) : string | ||
icuLocale | string | The ICU locale. |
return | string |
public static ToLangTag ( string languageCode, string scriptCode, string regionCode, string variantCode ) : string | ||
languageCode | string | The language code. |
scriptCode | string | The script code. |
regionCode | string | The region code. |
variantCode | string | The variant code. |
return | string |