Method | Description | |
---|---|---|
ExtractLanguageCode ( string variant ) : string |
When Language is "qaa" we embed the language name as the first private-use element (after any initial x- or embedded -x-) in the variant. Extract this and return it.
|
|
IsVariantOf ( string langTag ) : bool |
Determines whether this subtag can be used with the specified lang tag.
|
|
VariantSubtag ( |
Initializes a new instance of the T:VariantSubtag class.
|
|
VariantSubtag ( string code, string name, bool isPrivateUse, IEnumerable |
Initializes a new instance of the T:VariantSubtag class.
|
Method | Description | |
---|---|---|
RemovePrivateLanguageName ( string code ) : string |
Assuming the input is a variant which is or contains a private language name, remove it and return the rest. Return an empty string if there is nothing else.
|
public static ExtractLanguageCode ( string variant ) : string | ||
variant | string | |
return | string |
public IsVariantOf ( string langTag ) : bool | ||
langTag | string | The lang tag. |
return | bool |
public VariantSubtag ( |
||
subtag | The subtag. | |
name | string | The name. |
return | System |
public VariantSubtag ( string code, string name, bool isPrivateUse, IEnumerable |
||
code | string | The code. |
name | string | The name. |
isPrivateUse | bool | if set to |
prefixes | IEnumerable |
The prefixes. |
return | System |