Method | Description | |
---|---|---|
GetLanguageSubtag ( string code ) : |
Gets the language subtag with the specified code.
|
|
GetRegionSubtag ( string code ) : |
Gets the region subtag with the specified code.
|
|
GetScriptSubtag ( string code ) : |
Gets the script subtag with the specified code.
|
|
GetSubtags ( string langTag, |
Gets the subtags of the specified language tag.
|
|
GetVariantSubtag ( string code ) : |
Gets the variant subtag with the specified code.
|
|
IsPrivateUseRegionCode ( string regionCode ) : bool | ||
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.
|
Method | Description | |
---|---|---|
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.
|
|
Version19LangTagUtils ( ) : System |
public static GetLanguageSubtag ( string code ) : |
||
code | string | The code. |
return |
public static GetRegionSubtag ( string code ) : |
||
code | string | The code. |
return |
public static GetScriptSubtag ( string code ) : |
||
code | string | The code. |
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 | The code. |
return |
public static IsPrivateUseRegionCode ( string regionCode ) : bool | ||
regionCode | string | |
return | bool |
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 |